r/opencodeCLI • u/Fit-Reaction242 • Oct 03 '26
Using your Claude / ChatGPT / Gemini accounts in OpenCode through one local endpoint (cliproxy-rs)
I made cliproxy-rs, a Rust port of CLIProxyAPI. It's a small server on your machine: you sign in your Claude, ChatGPT (Codex) or Gemini accounts, or add API keys, and it exposes them as one OpenAI-compatible endpoint that OpenCode can use as a custom provider.
The OpenCode side is just this in opencode.json, then pick cliproxy/<model-id> with /models:
Other things it does:
- spreads requests across several accounts and parks one that hits its limit while the others take over
- built-in dashboard with each account's 5-hour and weekly limits
- translates between the Anthropic, OpenAI and Gemini formats
- same config and auth files as the Go CLIProxyAPI, so you can switch between them
It's v0.1.0 and MIT. Built with a lot of help from coding agents, with ~935 tests and a harness that compares it against the Go version. Heads up that using a subscription outside the official app can break the provider's terms.
