Skip to main content
Agent Client Protocol (ACP) standardizes communication between coding agents and code editors or IDEs. With the ACP protocol, you can make use of your custom deep agents with any ACP-compatible client, allowing your code editor to provide project context and receive rich updates.
ACP is designed for agent-editor integrations. If you want your agent to call tools hosted by external servers, see Model Context Protocol (MCP).

Quickstart

Install the ACP integration package:
pip install deepagents-acp
Then expose a Deep Agent over ACP. This starts an ACP server in stdio mode (it reads requests from stdin and writes responses to stdout). In practice, you usually run this as a command launched by an ACP client (for example, your editor), which then communicates with the server over stdio.
import asyncio

from acp import run_agent
from deepagents import create_deep_agent
from langgraph.checkpoint.memory import MemorySaver

from deepagents_acp.server import AgentServerACP


async def main() -> None:
    agent = create_deep_agent(
        # You can customize your Deep Agent here: set a custom prompt,
        # add your own tools, attach middleware, or compose subagents.
        system_prompt="You are a helpful coding assistant",
        checkpointer=MemorySaver(),
    )

    server = AgentServerACP(agent)
    await run_agent(server)


if __name__ == "__main__":
    asyncio.run(main())

Example coding agent

The deepagents-acp package includes an example coding agent with filesystem and shell that you can run out of the box.

Clients

Deep agents works anywhere you can run an ACP agent server. Some notable ACP clients include:

Zed

The deepagents repo includes a demo ACP entrypoint you can register with Zed:
  1. Clone the deepagents repo and install dependencies:
git clone https://github.com/langchain-ai/deepagents.git
cd deepagents/libs/acp
uv sync --all-groups
chmod +x run_demo_agent.sh
  1. Configure credentials for the demo agent:
cp .env.example .env
Then set ANTHROPIC_API_KEY in .env.
  1. Configure your ACP agent server command in Zed’s settings.json:
{
  "agent_servers": {
    "DeepAgents": {
      "type": "custom",
      "command": "/your/absolute/path/to/deepagents/libs/acp/run_demo_agent.sh"
    }
  }
}
  1. Open Zed’s Agents panel and start a DeepAgents thread.

Toad

If you want to run an ACP agent server as a local dev tool, you can use Toad to manage the process.
uv tool install -U batrachian-toad

toad acp "python path/to/your_server.py" .
# or
toad acp "uv run python path/to/your_server.py" .
See the upstream ACP docs for protocol details and editor support:

Connect these docs to Claude, VSCode, and more via MCP for real-time answers.