Run Claude Code in your Obsidian sidebar with automatic Obsidian context sharing.
- Embedded terminal – Full terminal in your Obsidian sidebar
- Auto-launches Claude - Claude Code starts automatically
- Multiple tabs – Run multiple Claude instances side by side
- Obsidian → Claude Code integration (optional) – Claude Code gets the current context from Obsidian (open file, selected lines) automatically over
/ideMCP integration (inspired by Claude Code plugin for Intellij IDEA) - Continue the last conversation (optional) – continue working with Claude Code from where you left off automatically
- macOS, Linux, or Windows
- Python 3
- Claude Code
In your vault folder, run:
curl -fsSL https://github.com/hlibkoval/vault-code/releases/latest/download/vault-code.tar.gz | tar -xzv -C .obsidian/plugins/Then in Obsidian: Settings → Community Plugins → Enable "Vault Code"
Windows: See Windows Setup below.
- Download
vault-code.tar.gzfrom the latest release - Extract to
<your-vault>/.obsidian/plugins/ - Reload Obsidian and enable the plugin in Settings → Community Plugins
Once approved, you'll be able to search for "Vault Code" in Community Plugins → Browse.
In your vault folder, run:
curl -fsSL https://github.com/hlibkoval/vault-code/releases/latest/download/vault-code.tar.gz | tar -xzv -C .obsidian/plugins/Then restart Obsidian or disable/re-enable the plugin.
demo.mp4
- Click the bot icon in the left ribbon to open Claude
- Use Command Palette (
Cmd+P) for:- Open Claude Code - Open or focus Claude panel
- New Claude Tab - Open additional Claude instance
- Close Claude Tab - Close current Claude tab (when focused)
- Toggle Focus: Editor ↔ Claude - Quick switch between editor and Claude
- Press
Shift+Enterfor multi-line input - Set your own hotkeys in Settings → Hotkeys
| Setting | Description |
|---|---|
| Send Obsidian context to Claude Code | Send current file and selection changes to Claude Code via IDE MCP integration (--ide flag). Enable "Send to Claude Code" context menu. |
| Continue the last conversation | Pass --continue flag to the first started Claude Code, resuming the previous conversation. |
| Platform | Status |
|---|---|
| macOS | ✅ Supported |
| Linux | ✅ Supported |
| Windows |
Windows requires additional dependencies:
- Install Python 3 from python.org
- Install pywinpty:
pip install pywinpty- Install the plugin (run from your vault folder in PowerShell):
$u="https://github.com/hlibkoval/vault-code/archive/main.zip"; Invoke-WebRequest $u -OutFile s.zip; Expand-Archive s.zip .obsidian\plugins -Force; Move-Item ".obsidian\plugins\vault-code-main" ".obsidian\plugins\vault-code" -Force; Remove-Item s.zipNote: Windows support is experimental. Performance may be slower than macOS/Linux due to ConPTY overhead.
- xterm.js for terminal emulation
- Python's built-in
ptymodule for pseudo-terminal support (macOS/Linux) - pywinpty for Windows PTY support
- Symbols Nerd Font for terminal icons (MIT License, © Ryan L McIntyre)
The PTY scripts (terminal_pty.py for Unix, terminal_win.py for Windows) are embedded as base64 in main.js for Obsidian plugin directory compatibility. To rebuild after modifying:
npm install
npm run buildIssues and PRs welcome at github.com/hlibkoval/vault-code
Fork maintained by Hlib Koval.
Originally built by Derek Larson.
MIT
