Skip to main content

ACP-compatible agent for Claude Code (Python version)

Project description

Claude Code ACP (Python)

PyPI Python License

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

claude_code_acp-0.2.0.tar.gz (54.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

claude_code_acp-0.2.0-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

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

Hashes for claude_code_acp-0.2.0.tar.gz
Algorithm Hash digest
SHA256 1cd59dc7ca4c3586f6ebc13a4e7b7782505744a94f45be98290acb6e1f0dacdd
MD5 92171e075f644c5bafad5be32ed9f23b
BLAKE2b-256 742cc80570a880ea0798dd027c1f6dd7b28eb1a993277be7618d12d51413dc6a

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file claude_code_acp-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for claude_code_acp-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e9bb4dd3a09bad79969bcc562435f1f06b9136e782dfd302b766e11eb2dcd107
MD5 d5a7783cbf678ae791d7170322cdf133
BLAKE2b-256 be5887a05cdb926c8a9aa4dab66c1b6427c2abd309f5ef9c9291a203b46b61cc

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page