Obsidian CLI knowledge
Interact with your Obsidian vault from the command line
Obsidian CLI (obsidian-cli) lets you search, read, and create notes in your Obsidian vault directly from the terminal. Ideal for AI agents that need to access a user’s personal knowledge base.
Features
- Full-text search across vault notes
- Read note contents as markdown
- Create and append to notes programmatically
- List notes by folder or tag
- Works with any Obsidian vault directory
Install
brew: brew install yakitrak/yakitrak/obsidian-cligo: go install github.com/Yakitrak/obsidian-cli@latest Commands
| Command | Syntax | Description |
|---|---|---|
search | obsidian-cli search <query> | Full-text search across vault notes |
read | obsidian-cli read <note-path> | Read a note's contents as markdown |
create | obsidian-cli create <note-path> | Create a new note with content from stdin |
Links
Agent Usage Example
Use cases:
- Retrieve relevant notes from a user's knowledge base
- Save conversation summaries or research results to Obsidian
- Search for prior context before answering questions
Example workflow:
obsidian-cli search 'project requirements' | head -5 && obsidian-cli read 'Projects/current-spec.md'