Run Claude Code on Open-Source Models — Anthropic-Compatible API
Gonka Broker

Run your Claude Code agent on open source models

Claude Code is a great agent, wired to a single provider by default. Point it at Gonka Broker and the same workflow runs on open-source models: a prepaid USD balance, prices locked at top-up, and a free tier every month.

Why point your agent here

Agentic coding burns tokens like nothing else in your stack, which makes it exactly the workload worth moving to open-source rates.

Pay per token, not per seat

No subscription and no seat plans. You prepay a USD balance and spend it per token, with the rate locked in when you top up. An intense agent week can't surprise you with a new price.

Same workflow, different engine

Your Claude Code setup keeps working as-is: the terminal workflow, the agentic loop, tool use, streaming. Only the endpoint and the model change.

Free tokens every month

Every account includes a monthly free tier of at least 1M tokens of any model, spent before your paid balance. Try the switch without paying anything.

Verified end to end

The full agentic loop works over this endpoint, verified in real coding sessions:

  • Full agentic loop: multi-turn sessions with tool use and tool results
  • Streaming responses and thinking blocks
  • System prompts, stop sequences, and token counting
  • Real coding tasks completed end-to-end through this endpoint

Recommended model: MiniMax M2

MiniMax's open-source model, built for coding and agentic workloads with an emphasis on efficiency: quick responses, steady in long tool loops, a 200K context window, and long outputs. Prefer a bigger context window? Kimi K2 is verified too.

About MiniMax M2 on Gonka

The whole setup is three variables

Get a gnk-prx- key, export three environment variables, and start your agent as usual. Nothing to install, nothing to patch.

export ANTHROPIC_BASE_URL="https://proxy.gonkabroker.com"
export ANTHROPIC_AUTH_TOKEN="gnk-prx-YOUR_KEY_HERE"
export ANTHROPIC_MODEL="MiniMaxAI/MiniMax-M2.7"

claude

Protocol details are on the Anthropic-compatible API page; guides live in the docs.

What it costs

For reference, Claude-class API prices run several dollars per million tokens: $3 in, $15 out for Sonnet-class models at current list prices. Open-source models on Gonka are priced in cents per million, input and output at the same rate, and your USD rate is locked in when you top up.

Your free tier is spent first, so the switch costs nothing to try.

Using other Anthropic-native tools?

Anything that speaks the Anthropic protocol and lets you set a base URL connects the same way. Tools built on the OpenAI format work through our OpenAI-compatible surface too.

Browse the integrations catalog

Claude Code on open models FAQ

Is Claude Code free?

The CLI itself is a free install, but running it needs a paid subscription or API access. Pointing it at Gonka Broker lets your agent run on our monthly free tier: at least 1M tokens of any open-source model, renewed every month, no credit card.

Can Claude Code use open-source models?

Yes. The agent talks to whatever endpoint ANTHROPIC_BASE_URL points to. Point it at Gonka Broker's Anthropic-compatible API and it runs on open-source models like MiniMax M2 and Kimi K2, served on the decentralized Gonka network.

Do I need claude-code-router or a local proxy?

No. Routers and local proxies exist to translate between protocols. Gonka Broker speaks the Anthropic Messages protocol natively, so you set the base URL directly and there is nothing extra to install or keep running.

Do you serve Claude models?

No. Gonka Broker is an independent service serving open-source models over an Anthropic-compatible protocol. Claude Code is Anthropic's product; we are not affiliated with or endorsed by Anthropic.

Claude Code is a product of Anthropic. Gonka Broker is an independent service and is not affiliated with or endorsed by Anthropic.

Switch your agent to open models

Sign up, create a key, export three variables. Your first 1M+ tokens each month are free.

Get started

Already have an account? Sign in