Bring your AI agents directly into Obsidian! This plugin lets you chat with Claude Code, Codex, Gemini CLI, and other AI agents right from your vault. Your AI assistant is now just a side panel away. ✨
Built on Agent Client Protocol (ACP) by Zed.
Screen-Now-20251022T124641.mp4
- 🔗 Direct Agent Integration: Chat with AI coding agents in a dedicated right-side panel
- 📝 Note Mention Support: Automatically include the active note in conversations, or manually use
@notenameto reference specific notes - ⚡ Slash Command Support: Use
/commands to browse and trigger actions provided by your current agent - 🔄 Multi-Agent Support: Switch between Claude Code, Codex, Gemini CLI, and custom agents
- 💻 Terminal Integration: Let your agent execute terminal commands and return the results in chat
- 🔐 Permission Management: Fine-grained control over agent actions
- Install the BRAT plugin from the Community Plugins browser.
- In Obsidian settings, go to Community Plugins → BRAT → Add Beta Plugin.
- Paste this repo URL:
https://github.com/RAIT-09/obsidian-agent-client - BRAT will download the latest release and keep it auto-updated.
- Enable Agent Client from the plugin list.
- Download the latest release files from GitHub Releases:
main.jsmanifest.jsonstyles.css
- Create plugin folder and place the files in:
VaultFolder/.obsidian/plugins/agent-client/ - Enable the plugin in Obsidian Settings → Community Plugins
-
For Claude Code:
npm install -g @zed-industries/claude-code-acp
-
For Codex:
npm install -g @zed-industries/codex-acp
-
For Gemini CLI:
npm install -g @google/gemini-cli
After installing the agents, you need to find their absolute paths:
On macOS/Linux:
# Find Node.js path
which node
# Example output: /usr/local/bin/node
# Find Claude Code path
which claude-code-acp
# Example output: /usr/local/bin/claude-code-acp
# Find Codex path
which codex-acp
# Example output: /usr/local/bin/codex-acp
# Find Gemini CLI path
which gemini
# Example output: /usr/local/bin/geminiOn Windows:
# Find Node.js path
where.exe node
# Example output: C:\Program Files\nodejs\node.exe
# Find Claude Code path
where.exe claude-code-acp
# Example output: C:\Users\Username\AppData\Roaming\npm\claude-code-acp.cmd
# Find Codex path
where.exe codex-acp
# Example output: C:\Users\Username\AppData\Roaming\npm\codex-acp.cmd
# Find Gemini CLI path
where.exe gemini
# Example output: C:\Users\Username\AppData\Roaming\npm\gemini.cmd- Open Settings → Agent Client
- Configure your node path:
- Node.js path: Enter the absolute path found above (e.g.,
/usr/local/bin/nodeorC:\Program Files\nodejs\node.exe)
- Node.js path: Enter the absolute path found above (e.g.,
- Configure your preferred agents:
- Claude Code:
- Path: Enter absolute path (e.g.,
/usr/local/bin/claude-code-acp) - API key: Optional if logged in to Anthropic account
- Path: Enter absolute path (e.g.,
- Codex
- Path: Enter absolute path (e.g.,
/usr/local/bin/codex-acp) - API key: Optional if logged in to OpenAI account
- Path: Enter absolute path (e.g.,
- Gemini CLI:
- Path: Enter absolute path (e.g.,
/usr/local/bin/gemini) - API key: Optional if logged in to Google account
- Path: Enter absolute path (e.g.,
- Custom Agents: Add any ACP-compatible agents
- Claude Code:
macOS/Linux Example:
Settings:
├── Node.js path: /usr/local/bin/node
Built-in agents:
├── Claude Code
│ ├── Path: /usr/local/bin/claude-code-acp
│ └── API key: (optional)
├── Codex
│ ├── Path: /usr/local/bin/codex-acp
│ └── API key: (optional)
└── Gemini CLI
├── Path: /usr/local/bin/gemini
└── API key: (optional)
Windows Example:
Settings:
├── Node.js path: C:\Program Files\nodejs\node.exe
Built-in agents:
├── Claude Code
│ ├── Path: C:\Users\Username\AppData\Roaming\npm\claude-code-acp.cmd
│ └── API key: (optional)
├── Codex
│ ├── Path: C:\Users\Username\AppData\Roaming\npm\codex-acp.cmd
│ └── API key: (optional)
└── Gemini CLI
├── Path: C:\Users\Username\AppData\Roaming\npm\gemini.cmd
└── API key: (optional)
- 🎯 Use the command palette: "Open agent chat"
- 🤖 Click the robot icon in the ribbon
- 💬 Chat with your configured agent in the right panel
- 📝 Reference notes using
@notenamesyntax - 🔄 Switch agents using the dropdown in plugin settings
npm install
npm run devFor production builds:
npm run buildCode formatting with Prettier:
# Check code formatting
npm run format:check
# Auto-fix formatting issues
npm run format- Model Switching Support: Change the active model for each agent directly from the chat interface
- Edit Tracking: Automatically follow the agent’s edits — open affected notes and move the cursor as they edit
- Chat History Access: Browse, search, and restore previous chat sessions with agents
Have ideas or feature requests? Feel free to open an issue on GitHub!
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
