pablo-mano/obsidian-cli-skill/obsidian-cli
Claude Code and agent skill by pablo-mano/obsidian-cli-skill
- community
Checking that the SKILL.md file is still in the repository.
Use this skill whenever the user wants Claude to directly interact with their Obsidian vault — reading a note or daily note, writing or appending content, searching vault contents, counting or listing notes, managing tasks, moving or renaming files, finding orphaned notes or broken links. Without this skill, Claude has no way to access vault data or execute vault operations. Treat any request that implies "go into my vault and do X" as a trigger — the user is asking Claude to act, not to explain. Also trigger for vault automation, CLI scripting, or cron-based workflows involving Obsidian, managing sync history, querying Bases, restoring file versions via history, managing bookmarks, or running JavaScript against the Obsidian API. Skip for pure conceptual questions: how Obsidian's GUI works, navigating settings menus, theme or plugin installation via the UI, iCloud/third-party sync conflicts, general Dataview query syntax, keyboard shortcuts, or parsing vault files with external scripts — anything where the user needs an explanation rather than Claude performing a vault operation.
Install
npx vskill@latest install pablo-mano/obsidian-cli-skill/obsidian-cliSKILL.md
Obsidian CLI
The official Obsidian CLI (released in v1.12, February 2026) lets you control every aspect of Obsidian from the terminal. It communicates with a running Obsidian desktop instance via IPC.
Readreferences/command-reference.mdwhen you need specific flags, output formats, orsubcommands for any command group. It covers all 130+ commands with full parameter tablesand has a table of contents at the top.
Prerequisites
| Requirement | Details | |
|---|---|---|
| Obsidian Desktop | v1.12.0+ | |
| CLI enabled | Settings → Command line interface → Toggle ON | |
| Obsidian running | The desktop app must be running for CLI to work (IPC) |
Platform Notes
- macOS / Linux: The
obsidianbinary is registered in PATH automatically when you enable CLI in settings. - Windows: Requires an
Obsidian.comredirector file placed alongsideObsidian.exe. Must run with normal user privileges — admin terminals produce silent failures. - If colon subcommands (
property:set,daily:append, etc.) with parameters return exit 127, check thatObsidian.comexists alongsideObsidian.exe. If missing, you have an outdated installer — download the latest from obsidian.md/download and reinstall. - Git Bash / MSYS2 users: Bash resolves
obsidiantoObsidian.exe(GUI) instead ofObsidian.com(CLI), causing colon+params to fail with exit 127 even whenObsidian.comis present. Create a wrapper script — see Troubleshooting. - Headless Linux: Use the
.debpackage (not snap). Run underxvfb. Prefix commands withDISPLAY=:5(or your xvfb display number). EnsurePrivateTmp=falseif running as a service.
Syntax
All parameters use `key=value` syntax. Quote values containing spaces.
Multi-Vault
Target a specific vault by making it the first argument:
If omitted, the CLI targets the most recently active vault.
Command Overview
The CLI provides 130+ commands across these groups:
| Group | Key Commands | Purpose | |
|---|---|---|---|
| files | read, create, append, prepend, move, rename, delete, files, folders, file, random | Note CRUD and file discovery | |
| daily | daily, daily:read, daily:append, daily:prepend, daily:path | Daily note operations | |
| search | search, search:context | Full-text search; search:context returns matching lines | |
| properties | properties, property:read, property:set, property:remove, aliases | Frontmatter/metadata management | |
| tags | tags, tag | Tag listing, counts, and filtering | |
| tasks | tasks, task | Task querying, filtering, and toggling | |
| links | backlinks, links, unresolved, orphans, deadends | Graph and link analysis | |
| bookmarks | bookmarks, bookmark | List and add bookmarks | |
| templates | templates, template:read, template:insert | Template listing, rendering, insertion | |
| plugins | plugins, plugin, plugin:enable, plugin:disable, plugin:install, plugin:uninstall, plugins:restrict | Plugin management | |
| sync | sync, sync:status, sync:history, sync:read, sync:restore, sync:deleted | Obsidian Sync operations | |
| themes | themes, theme, theme:set, theme:install, theme:uninstall | Theme management | |
| snippets | snippets, snippets:enabled, snippet:enable, snippet:disable | CSS snippet management | |
| commands | commands, command, hotkeys, hotkey | Execute Obsidian commands by ID; inspect hotkeys | |
| bases | bases, base:query, base:views, base:create | Obsidian Bases (v1.12+ database feature) | |
| history | history, history:list, history:read, history:restore | File version recovery (File Recovery plugin) | |
| workspace | workspace, tabs, tab:open | Workspace layout and tab management | |
| diff | diff | Compare local vs sync file versions | |
| dev | eval, dev:screenshot, dev:debug, dev:console, dev:errors, dev:css, dev:dom, devtools | Developer/debugging tools | |
| vault | vault, vaults, version, reload, restart | Vault info and app control | |
| other | outline, wordcount, recents | Utility commands |
Quick Reference — Most Common Commands
Reading & Writing Notes
Daily Notes
Search
Properties & Tags
Tasks
Developer & Automation
TUI Mode
Running obsidian with no arguments launches an interactive TUI (Terminal User Interface):
| Key | Action | |
|---|---|---|
↑↓ | Navigate files | |
Enter | Open file | |
/ | Search | |
n | Create new file | |
d | Delete file | |
r | Rename file | |
q | Quit |
Common Agent Patterns
Daily Journal Automation
Create Note from Template with Metadata
Vault Analytics Script
Search and Extract for AI Processing
Sync Management
Execute Obsidian Commands
Tips
- Paths are vault-relative — use
folder/note.md, not absolute filesystem paths. - `create` paths omit `.md` — the extension is added automatically.
- `move` requires full target path including
.mdextension. - Pipe-friendly — plain text output works with
grep,awk,sed,jq. - JSON output — use
format=jsononsearchfor a JSON array of file paths. Thefilescommand does not support JSON output. - Stderr noise — GPU/Electron warnings on headless are harmless; filter with
2>/dev/null. - `daily:prepend` inserts content after frontmatter, not at byte 0.
- Use `eval` to run arbitrary JavaScript against the Obsidian API (
app.*). - `template:insert` inserts into the currently active file in the Obsidian UI — it does not accept a
path=parameter. If no file is open, it returnsError: No active editor. Open a file first.To create a file from a template via CLI, useobsidian create path="..." template="..."instead. - `property:set` stores list values as strings —
value="tag1, tag2"writes a literal comma-separated string, not a YAML array. For proper array fields, edit the note's frontmatter directly (e.g. viaread→ modify →create --force) or useevalto call the Obsidian API. - `eval` requires single-line JavaScript — multiline JS passed inline fails with a token error. Write the script to a temp file instead:
``bash cat > /tmp/obs.js << 'JS' var files = app.vault.getMarkdownFiles(); files.length; JS obsidian eval code="$(cat /tmp/obs.js)" ``
- Multi-vault targeting may not work in all environments —
obsidian "My Vault" commandcan returnError: Command "My Vault" not foundon some setups. If this happens, omit the vault name (CLI targets the most recently active vault) and switch vaults manually in the Obsidian UI. - When colon subcommands are unavailable (e.g. Windows Git Bash without wrapper), prefer non-colon alternatives: use
propertiesinstead ofproperty:read, andobsidian daily:path+appendinstead ofdaily:append.
Troubleshooting
| Problem | Cause | Fix | |
|---|---|---|---|
| Empty output / hangs | Obsidian not running, or admin terminal (Windows) | Start Obsidian; use normal-privilege terminal | |
| Command not found | CLI not registered in PATH | Re-enable CLI in Settings; restart terminal | |
| Unicode errors | Fixed in v1.12.2+ | Update Obsidian | |
| Wrong vault targeted | Multi-vault ambiguity | Pass vault name as first arg | |
| IPC socket not found (Linux) | PrivateTmp=true in systemd | Set PrivateTmp=false | |
| Snap confinement issues | Snap restricts IPC | Use .deb package instead | |
Multi-vault "Name" command fails | Vault name matching issue | Omit vault name; target most recent vault | |
property:set list value is a string | CLI stores value as-is | Edit frontmatter directly or use eval | |
Colon+params exit 127 (missing .com) | Outdated installer — Obsidian.com absent | Reinstall from obsidian.md/download | |
| Colon+params exit 127 (Git Bash / MSYS2) | Bash resolves obsidian to .exe not .com | Create ~/bin/obsidian wrapper: #!/bin/bash / /c/path/to/Obsidian.com "$@" and add export PATH="$HOME/bin:$PATH" to ~/.bashrc |
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/obsidian-cli/SKILL.md
Popularity
- Repository stars
- 50
- Repository forks
- 6
- 7-day trend score
- 20
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 16 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/pablo-mano/obsidian-cli-skill/obsidian-cli)