Launch Claude CLI directly from Obsidian with your current note automatically loaded.
- One-command launch - Open Claude from the command palette
- Automatic context - Claude starts with your note already loaded
- Vault exploration - Terminal opens in your note's directory for easy wiki-link navigation
- Zero configuration - Detects Claude CLI automatically
- New tab behavior - Opens in new Terminal tab instead of new window
- macOS (uses Terminal.app and AppleScript)
- Claude CLI installed (installation guide)
- Obsidian desktop app v0.15.0+
- Download
main.jsandmanifest.jsonfrom releases - Create plugin folder in your vault:
mkdir -p /path/to/vault/.obsidian/plugins/obsidian-claude-code-plugin
- Copy both files to the plugin folder
- In Obsidian: Settings → Community Plugins → Refresh
- Enable "Claude Code Launcher"
Initial setup:
git clone <repo-url>
cd obsidian-claude-code-plugin
npm installOption 1: Symlink (recommended for active development)
ln -s $(pwd) /path/to/test-vault/.obsidian/plugins/obsidian-claude-code-plugin
npm run dev # Auto-rebuilds on file changesEdit code → save → reload plugin in Obsidian to see changes.
Option 2: Deploy script (for production vaults)
npm run build
./deploy.sh /path/to/vaultThen reload the plugin in Obsidian.
- Open any markdown note in Obsidian
- Open command palette (Cmd+P on macOS)
- Search for "Open in Claude Code"
- Press Enter
A new Terminal tab will open with Claude Code running, with your note already loaded.
The plugin:
- Detects the active note's file path
- Finds your Claude Code CLI installation
- Launches Terminal.app in the note's directory
- Starts Claude Code with the note loaded into context (using
@prefix)
The note is immediately available in Claude's context window, and Claude Code can explore your vault structure via wiki links and relative paths.
The plugin searches for both claude-code and claude binaries in:
/usr/local/bin/~/.local/bin//opt/homebrew/bin/- Your system PATH
Solution: Install the Claude CLI from https://docs.anthropic.com/claude-code
Solution: Open and focus a note before running the command.
Solution: The plugin only works with .md files. Other file types are not supported.
Possible causes:
- Terminal.app not found (should be default on macOS)
- System Events permissions not granted
- Special characters in file paths causing escaping issues
Solution:
- Verify Terminal.app exists in
/Applications/Utilities/ - Grant Obsidian accessibility permissions: System Settings → Privacy & Security → Accessibility
- Try renaming the file to avoid special characters
Possible causes:
- Claude CLI not in PATH
- Claude CLI requires authentication
Solution:
- Run
which claudeorwhich claude-codein Terminal to verify installation - Try running Claude CLI manually first to complete any setup/authentication
- macOS only - Uses Terminal.app and AppleScript (no Windows/Linux support)
- Markdown only - Only works with
.mdfiles - Terminal.app only - No iTerm2 or other terminal emulator support
- Saved state - Make sure to save your note before launching (unsaved changes won't be visible to Claude)
How it works:
- Detects active markdown file in Obsidian
- Locates Claude CLI binary (
claude-codeorclaude) - Generates shell command:
cd [note-directory] && claude "@[note-path]" - Uses AppleScript to create new Terminal tab and execute command
- Terminal opens in note's directory with the note loaded into Claude's context
Security:
- Paths are escaped to prevent shell injection
- Only operates on files within your vault
- Uses system Terminal.app (no external dependencies)
MIT License - see LICENSE file for details.