agentclientprotocol/claude-agent-acp
Use Claude Agent SDK from any ACP client
What it solves
Claude Agent SDK is powerful, but its interface is tightly coupled to Claude Code's own tools. This project solves that by acting as a bridge: it exposes the SDK as an Agent Client Protocol (ACP) agent, so any ACP-compatible client can drive Claude Code sessions without being locked into one frontend.
How it works
The adapter translates between the ACP wire protocol and the Claude Agent SDK's control API. On protocol version 1, it maps ACP requests onto SDK calls, and it extends that surface with negotiated AIR extensions for things like diff patches, goals, permission presentation, and session failure reporting. For protocol version 2 (still experimental), it runs a dedicated v2 agent that talks to Claude Code directly instead of translating, and it adds v2 features like session fork, resume, plans, and subagents. A config flag (CLAUDE_AGENT_ACP_PROTOCOL) lets operators force one version or serve both automatically.
The project ships as an npm package and as standalone executable archives (Linux, macOS, Windows) that bundle the Claude CLI, so users can run it without installing Node.js. It supports context @-mentions, images, tool calls with permission requests, compact file changes via the AIR diff patch extension, nested subagent transcripts, interactive terminals, custom slash commands, client MCP servers, and MCP server status commands (via /mcp in chat).
Who it's for
Developers building ACP-compatible clients who want to leverage Claude Code's agent capabilities without reimplementing them, and teams that want a consistent interface to Claude Code from different UIs or editor integrations (for example, JetBrains AIR clients). It is also useful for users who want a lightweight way to run Claude Agent SDK sessions from any ACP client, with optional packaged binaries for machines without Node.js.
Highlights
- Implements the full ACP agent contract on top of the official Claude Agent SDK
- Supports v1 and draft v2 of the ACP protocol, with automatic negotiation or explicit forcing
- Bundled standalone executables for Linux, macOS, and Windows (x64/arm64) — no Node.js required
- Extends ACP with JetBrains AIR extensions: diff patches, goals, permission presentation, session failure handling, and recommended config values
- Includes practical conveniences like interactive terminals, custom slash commands, client MCP servers, and nested subagent transcripts
- Preview channel on npm lets users test unreleased main-branch changes
Related
- Project
- Dispatch
- Dispatch
- Project
- Project