AI Skill MartBrowse skillsPromptsProgramsLearnWhat is a Skill?
← Back to list

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 --continuous sync, sync-status, and sync-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 marked publish: 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

  1. "Set up my Research vault on this server" → check ob sync-list-remote, then ob sync-setup --vault "Research" --path ~/vaults/research.
  2. "Keep it syncing automatically" → run ob sync --path ~/vaults/research --continuous as a background service.
  3. "Publish only the notes I flagged" → run ob publish --dry-run to review the diff, then --yes after 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)
  1. Download the ZIP with the button below.
  2. In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
  3. Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
↓ Download 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.

  1. Open a terminal and confirm Node.js 22 or later with node -v.
  2. Install the CLI: npm install -g obsidian-headless, then verify with ob --help.
  3. Clone the skills repo: git clone https://github.com/obsidianmd/obsidian-skills.git
  4. Copy the skill into place: mkdir -p ~/.claude/skills && cp -r obsidian-skills/plugins/obsidian/skills/obsidian-headless ~/.claude/skills/
  5. Restart Claude Code and ask something like "sync my Obsidian vault from the terminal" to trigger the skill.
  6. Before first use, run ob login yourself in your own terminal (never share your password with the AI) and back up your vault folder.