Skip to main content
Augent + Obsidian Claude Code and Codex can already edit files inside your Obsidian vault. The bottleneck is macOS: it prevents you from setting Obsidian as the default opener for .txt and .md files. The problems:
  • macOS prevents setting Obsidian as the default opener for .txt and .md files
  • Files outside your vault don’t show up in Obsidian at all
  • External edits from Claude or Codex can go stale without a background watcher
What this setup fixes:
  • Every .txt and .md on your Mac opens directly in Obsidian
  • External files are hard-linked into your vault automatically
  • A background service keeps everything in sync and auto-restarts if it stops

augent-obsidian

Source code, setup script, and full docs. Open source, auditable, runs locally.
Two ways to give Claude or Codex files:
  • Drag and drop files or folders directly into the Claude Code or Codex prompt
  • Copy the path from Obsidian: right-click a file’s tab or sidebar entry > Copy path > from system root

Setup

Two steps: configure Obsidian (manual), then install (pick one of two options). Requirements: macOS and Obsidian with at least one vault. The setup script handles everything else automatically.

Step 1: Configure Obsidian

Do this before running either install option. 1. Enable community plugins:
  • Settings (gear icon) > Community plugins > Turn on community plugins
2. Install “Custom File Extensions” plugin (required): 3. Install “Local REST API” plugin (recommended):
  • Click here to open it in Obsidian, or search “Local REST API” by Adam Coddington in Community plugins
  • Click Install, then Enable
  • Adds REST endpoints for searching, reading, and automating your vault. Not required, but valuable for power users.
The screenshot shows both plugins installed and enabled. Custom File Extensions is required. Local REST API is recommended but not necessary:
Community plugins: Custom File Extensions and Local REST API installed and enabled
4. Enable “Detect all file extensions”:
  • Settings > Files & Links > toggle Detect all file extensions ON
Files and links: Detect all file extensions toggled ON
5. Restart Obsidian (quit fully and reopen).

Step 2: Install

Two options. Both produce the same result. One command. Auto-detects your vault, compiles two native macOS apps from source, registers file handlers, and installs a background service that keeps everything running.
Or clone and run manually:

Option B: Paste into Claude Code

Only works on Claude Code CLI (Claude Code in your terminal).
If you prefer not to clone a repo, expand the section below, copy the full snippet, paste it into Claude Code, and say “Run this setup”.
Copy the entire text below, paste it into Claude Code, and say “Run this setup”.

What It Does

  • Double-click any .txt or .md file anywhere on your Mac and it opens in Obsidian
  • Files outside your vault are linked in automatically (no manual copying)
  • Claude Code edits land on disk and Obsidian picks them up automatically
  • No dock icon flash, no dialogs, opens near-instantly
  • Survives file moves within Obsidian

How It Works

The system has 6 pieces, all installed locally on your Mac:
These themes pair well with Augent’s note styles, especially highlight and eye-candy which use callouts, tables, and blockquotes heavily. Install from Settings → Appearance → Themes → Manage in Obsidian.

Security and Privacy

Everything runs locally. Nothing leaves your machine.
  • No network requests leave localhost. Zero telemetry, zero analytics, zero tracking.
  • All source code is open and auditable. The setup script compiles from source on your machine.
  • Full uninstall available with one command. Cleanly removes everything.

Troubleshooting


Uninstall

Or if you still have the cloned repo, run bash uninstall.sh from inside it. This removes:
  • Both apps from /Applications/
  • File handler registrations (restores TextEdit for .txt, Obsidian for .md)
  • File Watcher launchd agent
This does NOT touch:
  • Your Obsidian vault or any files in it
  • Your Obsidian plugins or settings