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.1.0.tar.gz (52.0 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.1.0-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file claude_code_acp-0.1.0.tar.gz.

File metadata

  • Download URL: claude_code_acp-0.1.0.tar.gz
  • Upload date:
  • Size: 52.0 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.1.0.tar.gz
Algorithm Hash digest
SHA256 64234574eb0f95e3f0331f42bc973743f8658f6ef6e06341295fe98a72d38d6c
MD5 1faaf473465932768011f08f3a223fac
BLAKE2b-256 64a959d0f0b3e3702f6085c483926389e2b8514c8f811042f8445362d57aafe4

See more details on using hashes here.

Provenance

The following attestation bundles were made for claude_code_acp-0.1.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.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for claude_code_acp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 48e05aa37f33e4a66ccb159e21c963d76ee87300f4845f1137e8ef218cc07d1c
MD5 a2ac9edac3d3fe68220f2db5883c912e
BLAKE2b-256 d923a13f94862b320387e49c4c346f38d0b134e0303f6edf827d7875078f0296

See more details on using hashes here.

Provenance

The following attestation bundles were made for claude_code_acp-0.1.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