Docs · Guide

Free models in Claude Code, Codex and other agents

Some providers serve models free, some with no key at all. magpie lists them in the same picker as every other model, an agent asks for provider/model, and free ones are marked.

Free models with no key

  1. OpenCode Zen.Its free models (ids ending in -free, and big-pickle) need no key. Zen serves its free tier to OpenCode alone, and magpie asks for them as OpenCode does.
  2. Kilo Gateway.Its free models (marked free, ids ending in :free) need no key. With none, a caller counts as anonymous, by IP, at 200 requests an hour.
Terminal
magpie provider add opencode-zen
magpie provider add kilo
magpie models

Once added, the free models are in every agent's picker:

Terminal
magpie claude opencode-zen/big-pickle
magpie codex kilo/:free

For their paid models, add a key; the free ones keep working:

Terminal
magpie provider key opencode-zen 
magpie provider key kilo 

The free mark in pickers

A model a provider prices at 0 on all four counts (input, output, cache read, cache write) is marked free beside it in the pickers: OpenRouter's :free models, OpenCode Zen's -free ones, NVIDIA NIM's free models.

Terminal
magpie model price relay-a/some-model 0,0,0,0

Free models first, paid as fallback

Free models are often rate-limited. Put a free model and a paid one in a routing group, the free one first: when it is limited or fails, the group's next member answers. See Round robin and failover across accounts, keys and providers.

Notes

FAQ

Are there free models I can use in Claude Code with no key?

Yes. OpenCode Zen's free models (ending in -free, and big-pickle) and Kilo Gateway's free models (ending in :free) need no key: add them with magpie provider add opencode-zen or magpie provider add kilo.

What is the limit on Kilo Gateway with no key?

With no key, a caller counts as anonymous, by IP, at 200 requests an hour. A Kilo key reaches its paid models too.

Where does the free mark in the pickers come from?

A provider pricing a model at 0 on all four counts. It is that provider's price alone; a model its maker gives away, or a plan's $0 price list, doesn't count.

What if a free model is rate-limited?

Put it in a routing group with a paid model, the free one first. When it is limited or fails, the group's next member answers.

Related: NVIDIA NIM in Claude Code, Codex and other agents, OpenRouter in Claude Code, Codex, Gemini CLI and OpenCode. If something fails, see Fixing common errors: 401, 429, 502, 504 and more or ask on Discord.