If you're paying for Claude Pro ($20/mo) or Max ($100-200/mo), you already have access to Opus, Sonnet, and Haiku. Why pay again for API access in your dev tools?
OCP (Open Claude Proxy) turns your subscription into a standard OpenAI-compatible API on localhost. Any tool that speaks the OpenAI protocol just works:
Cline ──┐
OpenCode ───┤
Aider ───┼──→ OCP :3456 ──→ Claude CLI ──→ Your subscription
Continue.dev ───┤
OpenClaw ───┘
Setup (60 seconds)
git clone https://github.com/dtzp555-max/ocp.git
cd ocp && node setup.mjs
Then in your IDE:
OPENAI_BASE_URL=http://127.0.0.1:3456/v1
That's it. Your IDE thinks it's talking to OpenAI. Claude CLI handles auth through your existing subscription.
Built-in Usage Monitoring
ocp usage shows your session/weekly utilization without opening the browser:
Plan Usage Limits
Current session 21% used (resets in 3h 12m)
Weekly (all models) 45% used (resets in 4d 2h)
Model Stats
opus 5 reqs avg 32s avg 42K prompt
sonnet 18 reqs avg 20s avg 36K prompt
What tools work?
Anything that accepts OPENAI_BASE_URL:
- Cline — VS Code AI assistant
- OpenCode — Terminal-based coding
- Aider — AI pair programming
- Continue.dev — IDE extension
- OpenClaw — Multi-agent orchestration
- Any OpenAI SDK client
I've been running 6 agents + 3 IDEs off a single Max subscription simultaneously for weeks. Zero API cost.
Key features
- Zero dependencies — single Node.js file, no npm install
- 8 concurrent requests — multiple tools share one subscription
-
Real-time monitoring —
ocp usage,ocp health,ocp settings - Runtime tuning — change timeouts, concurrency, prompt limits without restart
- Auto-start — launchd (macOS) / systemd (Linux)
- Prompt guard — auto-truncates runaway context at 150K chars
GitHub: github.com/dtzp555-max/ocp
Stable v3.0.0. Works on macOS, Linux, and Raspberry Pi.
Top comments (0)