Obsidian Headless (ob CLI)
Guides Claude to run Obsidian Sync and Publish from the command line — on servers, in CI, or in a terminal — without the desktop app.
AutomationIntermediate★ 53,680⑂ 3,821AI score 9/10Last updated: Nov 20, 2026
What it does
- Teaches Claude to drive the Obsidian Headless CLI (
ob) so Obsidian Sync and Obsidian Publish work headlessly on servers, CI runners, and sandboxes. - Covers the full sync workflow: login, listing remote/local vaults,
sync-setup, one-shot and--continuoussync,sync-status, andsync-unlink. - Explains configuration changes: sync mode (bidirectional / pull-only / mirror-remote), conflict strategy, excluded folders, attachment file types, and config dirs.
- Covers Publish: creating a site, previewing with
--dry-run, and publishing only notes markedpublish: true. - Builds in guardrails: never ask for the user's password, confirm vault/site/path before mutating remote state, and never mix desktop Sync with headless Sync on the same device.
Who it's for
- Anyone automating Obsidian vault sync or publishing on a server or CI pipeline.
- Terminal-only / SSH users who manage notes without a GUI.
- Obsidian Sync or Publish subscribers who want unattended jobs.
Prerequisites: Node.js 22+,
npm install -g obsidian-headless, and an active Sync/Publish subscription. The tool is in open beta.
Examples
- "Set up my Research vault on this server" → check
ob sync-list-remote, thenob sync-setup --vault "Research" --path ~/vaults/research. - "Keep it syncing automatically" → run
ob sync --path ~/vaults/research --continuousas a background service. - "Publish only the notes I flagged" → run
ob publish --dry-runto review the diff, then--yesafter approval.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/obsidianmd/obsidian-skills/HEAD/plugins/obsidian/skills/obsidian-headless/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on AI Skill Mart. Copy the plugins/obsidian/skills/obsidian-headless folder from the GitHub repo obsidianmd/obsidian-skills into my ~/.claude/skills/obsidian-headless/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/obsidianmd/obsidian-skills.git && mkdir -p ~/.claude/skills && cp -r obsidian-skills/plugins/obsidian/skills/obsidian-headless ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal and confirm Node.js 22 or later with
node -v. - Install the CLI:
npm install -g obsidian-headless, then verify withob --help. - Clone the skills repo:
git clone https://github.com/obsidianmd/obsidian-skills.git - Copy the skill into place:
mkdir -p ~/.claude/skills && cp -r obsidian-skills/plugins/obsidian/skills/obsidian-headless ~/.claude/skills/ - Restart Claude Code and ask something like "sync my Obsidian vault from the terminal" to trigger the skill.
- Before first use, run
ob loginyourself in your own terminal (never share your password with the AI) and back up your vault folder.
View source on GitHub ↗License: MIT