Welcome to the Python SDK for the Agent Client Protocol (ACP). The package ships ready-to-use transports, typed protocol models, and examples that stream messages to ACP-aware clients such as Zed.
- Fully typed dataclasses generated from the upstream ACP schema (
acp.schema) - Async agent base class and stdio helpers to spin up an agent in a few lines
- Examples that demonstrate streaming updates and tool execution over ACP
- Install the package:
pip install agent-client-protocol
- Launch the provided echo agent to verify your setup:
python examples/echo_agent.py
- Point your ACP-capable client at the running process (for Zed, configure an Agent Server entry). The SDK takes care of JSON-RPC framing and lifecycle transitions.
Prefer a guided tour? Head to the Quickstart for step-by-step instructions, including how to run the agent from an editor or terminal.
- Quickstart: install, run, and extend the echo agent
- Mini SWE Agent guide: bridge mini-swe-agent over ACP, including duet launcher and Textual client
Source code lives under src/acp/, while tests and additional examples are available in tests/ and examples/. If you plan to contribute, see the repository README for the development workflow.