Skip to content

RAIT-09/obsidian-agent-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ€– Agent Client Plugin for Obsidian

GitHub Downloads License GitHub release GitHub last commit

ζ—₯本θͺžγ―こけら

Buy Me A Coffee

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.

obsidian-agent-client-demo.mp4

✨ Features

  • πŸ”— 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 @notename to 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
  • πŸŽ›οΈ Mode & Model Switching: Change AI models (e.g., Sonnet, Haiku) and agent modes (e.g., Plan Mode) directly from the chat
  • πŸ’» Terminal Integration: Let your agent execute terminal commands and return the results in chat
  • πŸ” Permission Management: Fine-grained control over agent actions

πŸ“¦ Installation

πŸ§ͺ Install via BRAT

  1. Install the BRAT plugin from the Community Plugins browser.
  2. In Obsidian settings, go to Community Plugins β†’ BRAT β†’ Add Beta Plugin.
  3. Paste this repo URL:
    https://github.com/RAIT-09/obsidian-agent-client
    
  4. BRAT will download the latest release and keep it auto-updated.
  5. Enable Agent Client from the plugin list.

πŸ’» Manual Installation

  1. Download the latest release files from GitHub Releases:
    • main.js
    • manifest.json
    • styles.css
  2. Create plugin folder and place the files in: VaultFolder/.obsidian/plugins/agent-client/
  3. Enable the plugin in Obsidian Settings β†’ Community Plugins

βš™οΈ Configuration

Step 1: πŸ“¦ Install Required Dependencies

  • 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

Step 2: πŸ” Find Installation Paths

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/gemini

On 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

Step 3: πŸ› οΈ Configure Plugin Settings

  1. Open Settings β†’ Agent Client
  2. Configure your node path:
    • Node.js path: Enter the absolute path found above (e.g., /usr/local/bin/node or C:\Program Files\nodejs\node.exe)
  3. 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
    • Codex
      • Path: Enter absolute path (e.g., /usr/local/bin/codex-acp)
      • API key: Optional if logged in to OpenAI account
    • Gemini CLI:
      • Path: Enter absolute path (e.g., /usr/local/bin/gemini)
      • API key: Optional if logged in to Google account
    • Custom Agents: Add any ACP-compatible agents

πŸ“‹ Example Configuration

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 (Native):

πŸ’‘ If using WSL Mode, refer to the macOS/Linux example instead.

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)

πŸͺŸ WSL Mode (Recommended for Windows)

WSL Mode runs agents inside Windows Subsystem for Linux, providing better compatibility and a more Unix-like environment.

  1. Enable WSL Mode in Settings β†’ Agent Client
  2. Use Linux-style paths (e.g., /usr/local/bin/node, /usr/local/bin/claude-code-acp)
  3. Refer to the macOS/Linux examples above for path configuration

πŸš€ Usage

  • 🎯 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 @notename syntax
  • πŸ”„ Switch agents using the dropdown in plugin settings
  • πŸŽ›οΈ Change AI models and modes from the dropdowns below the input field

πŸ‘¨β€πŸ’» Development

npm install
npm run dev

For production builds:

npm run build

Code formatting with Prettier:

# Check code formatting
npm run format:check

# Auto-fix formatting issues
npm run format

πŸ—ΊοΈ Roadmap

  • Image Sending: Send images to agents directly from the chat
  • 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
  • Multi-Instance Support: Run multiple agents simultaneously in separate panels

Have ideas or feature requests? Feel free to open an issue on GitHub!

πŸ“„ License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

⭐️ Star History

Star History Chart