github dtzp555-max/ocp v3.0.0
v3.0.0 — Use your Claude Pro/Max subscription to power all your AI IDEs — $0 API cost

latest releases: v3.16.2, v3.16.1, v3.16.0...
one month ago

One subscription. Multiple IDEs. All models. $0 extra.

OCP turns your Claude Pro/Max subscription into a standard OpenAI-compatible API on localhost. Any tool that speaks the OpenAI protocol can use it:

OpenClaw · OpenCode · Cline · Continue.dev · Aider · and any tool that accepts an OpenAI base URL

OpenClaw Agent (Sonnet) ──┐
OpenCode (Opus)        ───┤
Cline (Haiku)          ───┼──→ OCP :3456 ──→ claude CLI ──→ Your subscription
Aider (Sonnet)         ───┤
Continue.dev (Sonnet)  ───┘

What's New

/ocp CLI + Gateway Plugin

10 commands from terminal, Telegram, or Discord:

ocp usage       Session/weekly limits & per-model stats
ocp status      Quick health overview
ocp settings    View/update runtime parameters (no restart)
ocp health      Full proxy diagnostics
ocp logs        Recent error logs
ocp models / sessions / clear / restart

Real-Time Usage Monitoring

$ ocp usage
Plan Usage Limits
─────────────────────────────────────
  Current session       3% used  (resets in 4h 32m)
  Weekly (all models)   3% used  (resets in 6d 6h)

Model Stats
Model          Req   OK  Er  AvgT  MaxT  AvgP  MaxP
haiku            1    1   0    6s    6s     0K    0K
opus             2    2   0   20s   26s   42K   43K
sonnet           2    2   0   24s   24s   41K   41K

Runtime Settings (no restart)

ocp settings maxPromptChars 200000
ocp settings tiers.opus.base 180000

Safety & Reliability

  • Prompt truncation at 150K chars
  • Circuit breaker removed (caused cascading failures)
  • Timeout increases: Opus 150s, Sonnet 120s, Haiku 45s
  • New endpoints: /usage, /status, /settings, /logs

Upgrade

cd ~/.openclaw/projects/claude-proxy && git pull
launchctl kickstart -k gui/501/ai.openclaw.proxy

dev.to article · Discussion

Don't miss a new ocp release

NewReleases is sending notifications on new releases.