claude-code-acp-rs
A Rust implementation of Claude Code ACP Agent. Use Claude Code from any ACP-compatible client such as Zed!
This is an alternative to the official TypeScript implementation (@zed-industries/claude-code-acp).
Installation
From Cargo
# Install the rust toolchain first: https://www.rust-lang.org/tools/install
From Source
With OpenTelemetry Support
To enable distributed tracing with OpenTelemetry:
# Install with otel feature
# Or from source
Usage
Command Line
# Show help
# Run with diagnostic mode (logs to file)
# Run with verbose logging
With Zed Editor
Configure Zed to use this agent by specifying claude-code-acp-rs as the agent command.
Environment Variables
ANTHROPIC_BASE_URL: Custom API base URLANTHROPIC_AUTH_TOKEN: Authentication tokenANTHROPIC_MODEL: Model to use (default: claude-sonnet-4-20250514)ANTHROPIC_SMALL_FAST_MODEL: Model for fast operations
OpenTelemetry Tracing
When compiled with the otel feature, you can enable distributed tracing to debug and monitor the agent:
# Send traces to Jaeger (default OTLP endpoint)
# With custom service name
# Or use environment variable
OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4317
Jaeger Quick Start
# Start Jaeger with Docker
# Run the agent with tracing
# View traces at http://localhost:16686
Coexistence with npm Version
This Rust implementation uses the command name claude-code-acp-rs to avoid conflicts with the npm package @zed-industries/claude-code-acp (which uses claude-code-acp).
Both versions can be installed and used on the same system:
claude-code-acp→ npm version (TypeScript)claude-code-acp-rs→ Rust version (this project)