The open-source Claude Code alternative — terminal-native, multi-provider, and BYOK from day one.
OpenCode is 100% BYOK — every token you use is on your invoice. It supports parallel subagents, full-codebase context, autonomous loops. A real day = same 2-5M token spend as Claude Code.
Sign up (free, no card), then generate an sk-cc-… key from your dashboard.
In ~/.opencode/config.json or via 'opencode auth login'.
{
"providers": {
"anthropic": {
"baseURL": "https://claudeapi.cheap/api/proxy",
"apiKey": "sk-cc-your-key-here"
},
"openai": {
"baseURL": "https://claudeapi.cheap/api/proxy/v1",
"apiKey": "sk-cc-your-key-here"
}
}
}OpenCode keeps every feature. Only the API endpoint changed — your prompts, tools, and behaviour are unchanged.
OpenCode's recommended workhorse
Architecture, hard reasoning
Cross-validation, second-opinion runs
Yes — OpenCode is BYOK by design and exposes baseURL in its provider config. Anthropic, OpenAI, and Google providers all accept the override.
Yes. OpenCode lets you switch models mid-session and run subagents on different providers. With our proxy, all three (Claude, GPT, Gemini) use the same sk-cc-... key — no juggling.
None we know of. Streaming, tool calls, prompt caching, vision (where supported) all forward through. If you find an edge case, email support@claudeapi.cheap.
Free Basic plan, $19 lifetime Pro. Crypto only. No subscription.
Get an API key — free