🚀 Bring the power of Claude Code directly to your Zed editor! This bridge server seamlessly integrates Claude Code's advanced AI capabilities with Zed through the Agent Client Protocol (ACP), giving you an intelligent coding assistant right in your favorite editor.
Already available:
- 🛠️ Full Claude Code tool suite (Glob, Grep, LS, Read, Write, Edit, MultiEdit, and more)
- 📋 Interactive todo list management with visual progress tracking
- 📁 Comprehensive file operations and intelligent code analysis
- 🖼️ Rich content support (text, images, resources, and resource links)
- 💭 Thinking blocks
- ⚡ Session cancellation and interruption support
- 🔒 Flexible permission mode configuration
- ✏️ Native Zed diff integration - See exactly what changes are being applied with beautiful, native diffs for all edits and writes
Coming soon:
- 🎛️ Granular permissions management - Fine-tuned control over what Claude can and cannot do
- 🎵 Audio content block support
- 📊 Session load and restore operations
- ⚡ Enhanced performance optimizations
- 🔐 Authentication and security improvements
- Bun - JavaScript runtime and package manager
- Claude Code installed and visible on PATH and already logged in
- Download the latest release from the releases page.
- Place the
ccacp-arm64binary in a directory on your PATH. - Add the following configuration to your Zed settings (
~/.config/zed/settings.json):{ "agent_servers": { "claudecode": { "command": "ccacp-arm64", "args": ["--permission-mode", "acceptEdits"] } } }
-
Clone this repository:
git clone https://github.com/szhongren/claude-code-acp.git cd claude-code-acp -
Install dependencies:
bun install
-
Add the following configuration to your Zed settings (
~/.config/zed/settings.json):{ "agent_servers": { "claudecode": { "command": "bun", "args": [ "/path/to/claude-code-acp/server.ts", "--permission-mode", "acceptEdits" ] } } }
-
Build the server:
bun run build
-
Add the following configuration to your Zed settings:
{ "agent_servers": { "claudecode": { "command": "/path/to/claude-code-acp/dist/ccacp", "args": ["--permission-mode", "acceptEdits"] } } }
bun run dev- Start the development serverbun run test- Run testsbun run build- Build the server binary
The server supports flexible permission management through the --permission-mode flag:
acceptEdits- Automatically accept all edit operationsbypassPermissions- Bypass all permission promptsdefault- Use Claude Code's default permission behaviorplan- Use planning mode
Configure permissions at startup to match your workflow preferences. Granular permission management with runtime controls is coming soon!
The server supports debug logging and permission configuration with command-line flags:
--debug- Enable debug logging to stderr--log-file <path>- Write logs to specified file
Example with debugging enabled:
{
"agent_servers": {
"claudecode": {
"command": "bun",
"args": [
"/path/to/claude-code-acp/server.ts",
"--debug",
"--log-file",
"/path/to/claude-code-acp/server.log"
]
}
}
}Once configured in Zed, you can access Claude Code functionality through the agent interface in your editor.
