agentclientprotocol/python-sdk

Python SDK for ACP clients and agents.

What it solves

Building communication bridges between AI agents and client applications requires handling data models and network transports. This SDK provides the Python tooling needed to implement the Agent Client Protocol easily.

How it works

It offers generated Pydantic data models and asynchronous transports over standard input/output (stdio), Streamable HTTP, and WebSockets. Developers can subclass provided classes to build custom agents or drive agents programmatically from Python code.

Who it’s for

Python developers who want to build AI agents or client applications compatible with the Agent Client Protocol, or connect agents to editors and tools like Zed, Toad, Lody, or T3 Code.

Highlights

  • Generated Pydantic models for safe data handling
  • Asynchronous transports supporting stdio, Streamable HTTP, and WebSockets
  • Support for building both agents and driving them as a client
  • Built-in handling for protocol versions, sessions, and prompts

Related

  • Project
  • Project
  • Project
  • Project
  • Project