Repository navigation
Releases: adolfousier/cc-max-proxy
Releases · adolfousier/cc-max-proxy
Release list
v0.1.1
Full Changelog: v0.1.0...v0.1.1
v0.1.0
cc-max-proxy v0.1.0
Drop-in replacement for api.anthropic.com that routes requests through the claude CLI on your machine.
No API key, no SDK, no per-token costs. If claude works in your terminal, the proxy works.
Your Tool ──POST /v1/messages──▶ cc-max-proxy ──▶ claude CLI ──▶ Max subscription
│
Anthropic SSE ◀── NDJSON stdout
Install
cargo install cc-max-proxy
cc-max-proxyOr download a binary from the assets below.
Features
- CLI-based — spawns the
claudebinary already on your machine. No API key, no SDK, no direct API calls - Single binary — no Node.js, no Bun, no runtime dependencies
- Incremental streaming — true character-by-character SSE streaming via
--include-partial-messages - Extended thinking —
thinkingcontent blocks passed through as SSE events - Streaming + non-streaming — both
stream: true(SSE) andstream: false(buffered JSON) - Model mapping —
*opus*→ opus,*haiku*→ haiku, default → sonnet - Secure — prompts piped via stdin (not visible in
ps aux) - Environment isolation — strips
CLAUDECODEenv vars to prevent nested session errors - Working directory aware —
X-Working-Dirheader sets CLI cwd per-request; falls back to~/ - Full filesystem access —
--add-dir /+--permission-mode bypassPermissionsfor unattended operation --debugflag — verbose logging for troubleshooting- Health endpoint —
GET /returns proxy status - 28 unit tests — types, NDJSON→SSE translation, CLI spawn logic
Quick Start
# Set your tool's base URL
ANTHROPIC_BASE_URL=http://127.0.0.1:3456 your-toolThe proxy accepts and ignores any API key your tool sends.
Compatibility
| Tool | Config |
|---|---|
| OpenCrabs | base_url = "http://127.0.0.1:3456" in config.toml |
| aider | ANTHROPIC_BASE_URL=http://127.0.0.1:3456 aider |
| continue.dev | Set apiBase in config |
| Cursor | Set base URL in provider settings |
Configuration
| Variable | Default | Description |
|---|---|---|
PORT |
3456 |
Listen port |
HOST |
127.0.0.1 |
Listen address |
CLAUDE_PATH |
auto-detect | Path to claude binary |
MAX_CONCURRENT |
1 |
Max parallel CLI spawns |
Credits
Inspired by opencode-claude-max-proxy by @rynfar.
License: MIT