ACP-compatible agent for Claude Code (Python version)
Project description
Claude Code ACP (Python)
ACP-compatible agent for Claude Code using the Python SDK.
This package bridges the Claude Agent SDK with the Agent Client Protocol (ACP), allowing Claude Code to work with any ACP-compatible client like Zed, Neovim, JetBrains IDEs, etc.
Features
- Full ACP protocol support
- Bidirectional communication (permission requests, tool calls)
- Uses your Claude CLI subscription (no API key needed)
- Session management (create, fork, resume, list)
- Multiple permission modes (default, acceptEdits, plan, bypassPermissions)
Installation
pip install claude-code-acp
Or with uv:
uv add claude-code-acp
Requirements
- Python 3.10+
- Claude CLI installed and authenticated (
claude /login)
Usage
As a standalone ACP server
claude-code-acp
With Zed Editor
Add to your Zed settings.json:
{
"agent_servers": {
"Claude Code Python": {
"type": "custom",
"command": "claude-code-acp",
"args": [],
"env": {}
}
}
}
Then open the Agent Panel (Ctrl+?) and select "Claude Code Python" from the + menu.
As a library
import asyncio
from claude_code_acp import ClaudeAcpAgent
from acp import run_agent
async def main():
agent = ClaudeAcpAgent()
await run_agent(agent)
asyncio.run(main())
How it works
┌─────────────┐ ACP ┌──────────────────┐ SDK ┌─────────────┐
│ Zed/IDE │ ◄──────────► │ claude-code-acp │ ◄────────► │ Claude CLI │
│ (ACP Client)│ (stdio) │ (This package) │ │(Subscription)│
└─────────────┘ └──────────────────┘ └─────────────┘
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file claude_code_acp-0.2.0.tar.gz.
File metadata
- Download URL: claude_code_acp-0.2.0.tar.gz
- Upload date:
- Size: 54.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1cd59dc7ca4c3586f6ebc13a4e7b7782505744a94f45be98290acb6e1f0dacdd
|
|
| MD5 |
92171e075f644c5bafad5be32ed9f23b
|
|
| BLAKE2b-256 |
742cc80570a880ea0798dd027c1f6dd7b28eb1a993277be7618d12d51413dc6a
|
Provenance
The following attestation bundles were made for claude_code_acp-0.2.0.tar.gz:
Publisher:
publish.yml on yazelin/claude-code-acp-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
claude_code_acp-0.2.0.tar.gz -
Subject digest:
1cd59dc7ca4c3586f6ebc13a4e7b7782505744a94f45be98290acb6e1f0dacdd - Sigstore transparency entry: 909894308
- Sigstore integration time:
-
Permalink:
yazelin/claude-code-acp-py@50755e201f3429a88787d21d331aebbb876cefb5 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/yazelin
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@50755e201f3429a88787d21d331aebbb876cefb5 -
Trigger Event:
release
-
Statement type:
File details
Details for the file claude_code_acp-0.2.0-py3-none-any.whl.
File metadata
- Download URL: claude_code_acp-0.2.0-py3-none-any.whl
- Upload date:
- Size: 11.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9bb4dd3a09bad79969bcc562435f1f06b9136e782dfd302b766e11eb2dcd107
|
|
| MD5 |
d5a7783cbf678ae791d7170322cdf133
|
|
| BLAKE2b-256 |
be5887a05cdb926c8a9aa4dab66c1b6427c2abd309f5ef9c9291a203b46b61cc
|
Provenance
The following attestation bundles were made for claude_code_acp-0.2.0-py3-none-any.whl:
Publisher:
publish.yml on yazelin/claude-code-acp-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
claude_code_acp-0.2.0-py3-none-any.whl -
Subject digest:
e9bb4dd3a09bad79969bcc562435f1f06b9136e782dfd302b766e11eb2dcd107 - Sigstore transparency entry: 909894313
- Sigstore integration time:
-
Permalink:
yazelin/claude-code-acp-py@50755e201f3429a88787d21d331aebbb876cefb5 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/yazelin
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@50755e201f3429a88787d21d331aebbb876cefb5 -
Trigger Event:
release
-
Statement type: