Skip to content

Releases: adolfousier/cc-max-proxy

Release list

v0.1.1

Choose a tag to compare

@github-actions github-actions released this 21 Mar 01:44

Full Changelog: v0.1.0...v0.1.1

v0.1.0

Choose a tag to compare

@github-actions github-actions released this 20 Mar 19:51

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-proxy

Or download a binary from the assets below.

Features

  • CLI-based — spawns the claude binary 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 — thinking content blocks passed through as SSE events
  • Streaming + non-streaming — both stream: true (SSE) and stream: false (buffered JSON)
  • Model mapping — *opus* → opus, *haiku* → haiku, default → sonnet
  • Secure — prompts piped via stdin (not visible in ps aux)
  • Environment isolation — strips CLAUDECODE env vars to prevent nested session errors
  • Working directory aware — X-Working-Dir header sets CLI cwd per-request; falls back to ~/
  • Full filesystem access — --add-dir / + --permission-mode bypassPermissions for unattended operation
  • --debug flag — 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-tool

The 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