Free AI models for coding. Ready in the agent, with no card and no API key. Auto Free picks one for each task.

No card, no API key

Sign in to MegaBrain once and the free models work in the agent: in the terminal, in VS Code, Cursor and Windsurf, in the JetBrains IDEs and in the Mac app.

Auto Free picks the model

Free models come and go as providers add and remove them. Auto Free sends each request to a free model, so you do not have to keep track. Or pick one yourself from the list below.

They never count against a limit

The free models work on every plan, Free included, and never count against a session or weekly limit. When a paid plan reaches its limit, they keep working.

More when a task needs it

Paid plans start at $8 a month (Plus) and go up to $200 (Ultra). They include GLM, Kimi, MiniMax, DeepSeek, Qwen, Grok and Auto with a session limit and a weekly limit you can always see; from Pro ($30) Claude, GPT and Gemini are paid from credits. Your own API keys and local models are free from us on every plan.

Free models today

Each costs $0 a token in MegaBrain. The list changes as providers add and remove free models.

ModelContextTerminal-Bench

Auto Free

mb-auto/free

256k—

StepFun: Step 3.7 Flash (free)

stepfun/step-3.7-flash:free

262k—

Cohere: North Mini Code (free)

cohere/north-mini-code:free

256k—

Crouton Alpha

stealth/crouton-alpha

1M—

Free Models Router

openrouter/free

200k—

LiquidAI: LFM2.5-2.6B (free)

liquid/lfm-2.5-2.6b:free

66k—

NVIDIA: Nemotron 3 Nano Omni (free)

nvidia/nemotron-3-nano-omni-30b-a3b-reasoning:free

256k—

NVIDIA: Nemotron 3 Ultra (free)

nvidia/nemotron-3-ultra-550b-a55b:free

1M—

NVIDIA: Nemotron 3.5 Content Safety (free)

nvidia/nemotron-3.5-content-safety:free

128k—

NVIDIA: Nemotron 3.5 Lightning (free)

nvidia/nemotron-3.5-lightning:free

1M—

NVIDIA: Nemotron 3.5 Super VL (free)

nvidia/nemotron-3.5-super-vl:free

1M—

Recursive: Flint (free)

recursive/flint-v1.0:free

262k—

XingChen: Xing4.0 29B A4B (free)

xingchen-agi/xing4.0-29b-a4b:free

262k—

Questions

Are there free AI models for coding?+

Yes. The Free plan of MegaBrain includes the free models listed on this page, with Auto Free to choose one for you. No card and no API key needed.

Do I need an API key for the free models?+

No. Sign in to MegaBrain once in the CLI, the editor extension, the JetBrains plugin or the Mac app, and the free models work.

Can I call the free models from my own code?+

MegaBrain is a coding agent, so its free models are used through the agent. To call models from your own code, use a provider’s API key; the agent takes those keys too, at no cost from us.

Which free model is best for coding?+

It changes as providers add and remove free models, which is why Auto Free picks one for each task. The list below shows each model’s context window and, where we have it, its Terminal-Bench score.

How do I start?+

Install the CLI with npm install -g @getmegabrain/cli, run megabrain in your project and sign in once. Or download MegaBrain for Mac (macOS 13 or later on Apple silicon (M1 or newer)).

More free AI coding tools

Try MegaBrain now.