Skip to content
UsecaseBoard
← All use cases
dev.toDocuments

Use a phone to query a synced Obsidian vault through Claude Code

At a glance

A home-server user connected a synced notes vault to Claude Code Remote Control for questions and inbox capture from a phone. This workflow is listed under Documents, Coding.

Agents / tools
Claude, Obsidian

SourceBuilding a tool for these workflows? See weekly rates.

What they did

1) In the vault, create a rules note defining folders, frontmatter, no deletion or rewriting of the author's text, and a daily Claude work log; point CLAUDE.md at it. Add a profile and a one-line-per-note vault map. 2) On the server install obsidian-headless, run ob login and ob sync-setup with the vault name and local path, set sync to pull-only, run a sync and compare the file count with the existing vault before switching to bidirectional. Configure a systemd user service with ExecStart pointing to the full ob path and sync --continuous --path pointing to the vault; set Restart=always and enable user lingering. 3) In a separate agent folder, set CLAUDE.md to read the vault rules and configure .claude/settings.json with the vault as an additional directory, read/edit and search permissions, and denials for Bash, sensitive paths, agent rules and the vault's .obsidian directory. Use double slashes for absolute permission paths and test that denials work. 4) Run claude remote-control once interactively to accept its prompt, then use a systemd user service with that folder as WorkingDirectory and ExecStart set to claude remote-control --name Vault --permission-mode acceptEdits --spawn same-dir, using the full Claude executable path. Open the session under Code in the phone's Claude app to ask about past decisions or place an idea in the inbox.

How it went

The author reported that edits synced back to his phone and that the setup took one evening. He maintains independent nightly vault backups.

Worth knowing

The setup uses Obsidian Sync and a Claude subscription, grants automatic edits, and has no Obsidian app on the server. The author discovered that single-slash absolute deny rules did not match and corrected them after testing.

Save ideas in this browser. Upvotes count across the board.

Prompt excerpt

No prompt excerpt was provided by the source.

Sponsored

CodeBuddy

Tencent Cloud AI coding assistant for IDE and CLI.

Try CodeBuddy ↗
Explore all →