ACP Agent CLI & SDK 🚀
This project provides a friendly and intuitive CLI and SDK for the ACP Registry, enabling developers to quickly browse, search, run, and containerize ACP (Agent Client Protocol) agents.
Motivation 💡
The official ACP Registry provides an extensive list of agents. This project simplifies discovery and integration through three core pillars:
- Interactive Discovery: Browse and fuzzy-search the entire registry directly from your terminal.
- Seamless Execution: Run any agent locally with automatic environment setup, or integrate them into Python apps via the async SDK.
- Production Deployment: Automatically generate optimized Containerfiles to run agents in isolated environments or CI/CD pipelines.
Usage 🚀
There are three ways to use acp-agent:
1. CLI Usage
We recommend using uv to manage and run this project.
# List all agents
uvx acp-agent list
# Search for agents
uvx acp-agent search opencode
# Run an agent locally
uvx acp-agent run opencode
# Run with a specific working directory, environment variables, and extra arguments
# Any arguments after the options are passed directly to the agent
uvx acp-agent run opencode --cwd ./my-project -e DEBUG=true -- --help
Example Search Output
Search Results for 'opencode'
┏━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ ID ┃ Name ┃ Description ┃
┡━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ opencode │ OpenCode │ The open source coding agent │
└──────────┴──────────┴──────────────────────────────┘
2. SDK Usage
You can integrate acp-agent into your Python projects through ACPAgent.
import asyncio
from acp_agent import ACPAgent
async def main():
agent = ACPAgent("opencode")
# Run an agent and attach to its output (stdout/stderr)
# This will automatically handle downloading and environment setup
# returns the exit code of the agent
exit_code = await agent.run(attach=True)
print(f"Agent exited with code: {exit_code}")
if __name__ == "__main__":
asyncio.run(main())
The same instance can also generate a Containerfile and provide config paths:
import asyncio
from pathlib import Path
from acp_agent import ACPAgent
async def main():
agent = ACPAgent("opencode")
# Generate Containerfile content for 'opencode'
# This will inject the agent installation and CMD into your base image
content = await agent.format_containerfile(containerfile="FROM python:3.12-slim")
Path("Dockerfile").write_text(content)
if config := agent.config:
print(f"Config path: {config.config}")
print(f"Credential path: {config.credential}")
if __name__ == "__main__":
asyncio.run(main())
After starting your container, you can manually copy these files from your host to the container's expected locations (e.g., via docker cp) to fully replicate your host-side environment and authentication state within the isolated container.
License
Metadata
Release files for acp-agent 0.2.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| acp_agent-0.2.4.tar.gz | 11.4 kB | With provenance | Details for acp_agent-0.2.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| acp_agent-0.2.4-py3-none-any.whl | Python 3 | none | any | Details for acp_agent-0.2.4-py3-none-any.whl |
Total release size: 28.3 kB
Release files / acp_agent-0.2.4.tar.gz
| Download URL | acp_agent-0.2.4.tar.gz |
|---|---|
| Size | 11.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d97b4e676de398f27da24f0b20a9cf1cf8cd9f75b268df526a1b86974061d0f4
|
|
BLAKE2b-256 checksum How to use checksums |
6274ad8ea8d93d9028cc1a4027da4ea168e224ffc71a36039f3925f94cce1538
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 20, 2026.
Transparency logRelease files / acp_agent-0.2.4-py3-none-any.whl
| Download URL | acp_agent-0.2.4-py3-none-any.whl |
|---|---|
| Size | 16.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5d90e52a0b92dc1f7da50f2b3d8b7b8a31e7ef95f7b1b908fc94c62c2c2296a7
|
|
BLAKE2b-256 checksum How to use checksums |
728b2243ae54fd8eddc33e29807ac2bd6757cb89886c147bae001e1f40b296d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 20, 2026.
Transparency logSecurity for acp-agent 0.2.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for acp_agent-0.2.4.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 20, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.