Subscribe

Best free / open-source / bring-your-own-key

No subscription: you pay only for model usage, or nothing.

Preliminary · based on public info

Last updated

Short answer: pick Cline. Runner-up: Aider. On a budget: OpenCode. OpenCode is free and open source (MIT) and includes free models you can use without an account (OpenCode lists them as limited-time offers), or you can plug in your own API keys, local models, or an existing ChatGPT Plus/Pro or GitHub Copilot login. It replaced Gemini CLI as our budget pick because Google moved Gemini CLI's free Google login to Antigravity CLI on June 18, 2026.

Free PDF: the AI Coding Cost Cheat Sheet. Enter your email to download it, plus one email a week when picks or prices move.

Scored ranking

#ToolScore /100StatusPricing
1Cline79Preliminary · based on public infoFree and open source for individuals; pay for inference at cost or BYOK. Enterprise: contact sales. Price checked 2026-10-14
2Aider77Preliminary · based on public infoFree and open source (Apache 2.0); bring your own model API key or local model. Price checked 2026-10-14
3OpenCode76Preliminary · based on public infoFree and open source (MIT), any provider. Includes free models offered for a limited time, with no account needed (as of Nov 19, 2026 the docs list 12, including Hy4 flash Free, DeepSeek V4.1 Flash Free and Big Pickle; Pulse Alpha Free was retired Nov 6). Some free models may keep or train on your data, so check OpenCode's privacy list before you send private code, and you can log in with an existing ChatGPT Plus/Pro or GitHub Copilot subscription, or (since v2.2.3, Oct 30, 2026) use a built-in Claude Agent provider that runs on your own Claude Code login (Anthropic hasn't said whether that's allowed; its Agent SDK docs say that unless previously approved, third-party developers can't offer claude.ai login or rate limits for their products). Optional pay-as-you-go credits (formerly OpenCode Zen): a processing fee of 4.6% plus $0.31 is added to each credit purchase, or $1.23 on a $20 top-up (model usage billed per request at provider cost, no markup); refunds possible within 14 days of a charge if those credits are unused (contact OpenCode). Optional OpenCode Go subscription: $10/mo, Go Plus $40/mo with higher limits, or Go Teams $20 per member per month with a 2-member minimum (new Oct 30, 2026: each member gets their own limits, $5 a month higher than Go on every model), for a curated lineup of 30 models (including Kimi K3.1 Pro, Gemini 4 Argon, Claude Haiku 5.5, GPT 6 Luna); usable with OpenCode or any agent, cancel any time. Through Nov 22, 2026, GLM-5.3's monthly limit is raised to $500 on Go and $1,000 on Go Plus (limited time). Price checked 2026-11-04
4Kilo Code71Preliminary · based on public infoFree and open source (BYOK/local, $0); Kilo Gateway pay-as-you-go; Kilo Pass from $19/mo; Teams $15/user/mo; Enterprise custom. Price checked 2026-10-14
5Continue68Preliminary · based on public infoOpen-source codebase remains free; Continue has been acquired by Cursor and no paid plans are offered on continue.dev. Price checked 2026-10-14
6Gemini CLI61Preliminary · based on public infoOpen source (Apache 2.0, free to install). Since June 18, 2026 it no longer serves free Google-login (Gemini Code Assist for individuals) or Google AI Pro/Ultra accounts; Google moved those users to Antigravity CLI. Still works with paid Gemini API keys (pay as you go; Gemini 3.8 Flash is $0.75/$3.75 per 1M input/output tokens through Dec 31, 2026, doubling Jan 1, 2027), Vertex AI and Gemini Code Assist Standard/Enterprise licenses. Whether an unpaid API key still works in Gemini CLI is unconfirmed. Price checked 2026-10-25
For free / open-source / bring-your-own-key: Re-scored Oct 25, 2026 (73 → 61): since June 18, 2026 there's no free Google login (individuals and Google AI Pro/Ultra were moved to Antigravity CLI), a free API-key tier is unconfirmed, and since Oct 16 Google says Gemini CLI isn't optimized for its latest models and points to Antigravity CLI. It still ships weekly releases and works with paid Gemini API keys, Vertex AI and Code Assist Standard/Enterprise.

Scores are editorial estimates from vendor documentation and public reporting, applied using our rubric. A "partly hands-on tested" badge means some fixed tasks were run (see the tool's test log), but the score itself has not been re-derived from tests yet.

Listed, not scored yet

ToolStatusPricing
FreePi (free-pi)Not scored · hands-on test pendingFree daily allowance (size set by the server and not published; account age can affect it), paid for by terminal ads and training on your sessions; optional credit packs: $5 buys $4.00 of usage, $10 buys $8.00 (card or USDC via Stripe Checkout). CLI is open source (MIT). Price checked 2026-10-20
Caveat: Read before using: free-pi is paid for by terminal ads and by training on your sessions. Its consent terms say prompts, code, files and model responses are saved as traces, used to train models and may be shared or sold to third parties, with no opt-out after you accept (except where the law gives one); a third-party ad provider (Gravity) receives excerpts of your recent conversation to pick ads. Don't use it on secrets or code you aren't allowed to share. The makers call it an early experiment (alpha, no warranty or uptime guarantee).

These tools fit this use case but have no score: we only score after the hands-on suite runs or enough public evidence exists. They are not part of the ranking above.

FAQ

What is the best tool for free / open-source / bring-your-own-key?

Our current pick is Cline, with Aider as runner-up and OpenCode as the budget pick. These are preliminary picks from public information applied to our rubric; check the ranking table for scores and evidence status.

How much does Cline cost?

Free and open source for individuals; pay for inference at cost or BYOK. Enterprise: contact sales. (Checked against https://cline.bot/pricing on 2026-10-14.)

What is the cheapest good option for free / open-source / bring-your-own-key?

Our budget pick is OpenCode: Free and open source (MIT), any provider. Includes free models offered for a limited time, with no account needed (as of Nov 19, 2026 the docs list 12, including Hy4 flash Free, DeepSeek V4.1 Flash Free and Big Pickle; Pulse Alpha Free was retired Nov 6). Some free models may keep or train on your data, so check OpenCode's privacy list before you send private code, and you can log in with an existing ChatGPT Plus/Pro or GitHub Copilot subscription, or (since v2.2.3, Oct 30, 2026) use a built-in Claude Agent provider that runs on your own Claude Code login (Anthropic hasn't said whether that's allowed; its Agent SDK docs say that unless previously approved, third-party developers can't offer claude.ai login or rate limits for their products). Optional pay-as-you-go credits (formerly OpenCode Zen): a processing fee of 4.6% plus $0.31 is added to each credit purchase, or $1.23 on a $20 top-up (model usage billed per request at provider cost, no markup); refunds possible within 14 days of a charge if those credits are unused (contact OpenCode). Optional OpenCode Go subscription: $10/mo, Go Plus $40/mo with higher limits, or Go Teams $20 per member per month with a 2-member minimum (new Oct 30, 2026: each member gets their own limits, $5 a month higher than Go on every model), for a curated lineup of 30 models (including Kimi K3.1 Pro, Gemini 4 Argon, Claude Haiku 5.5, GPT 6 Luna); usable with OpenCode or any agent, cancel any time. Through Nov 22, 2026, GLM-5.3's monthly limit is raised to $500 on Go and $1,000 on Go Plus (limited time). OpenCode is free and open source (MIT) and includes free models you can use without an account (OpenCode lists them as limited-time offers), or you can plug in your own API keys, local models, or an existing ChatGPT Plus/Pro or GitHub Copilot login. It replaced Gemini CLI as our budget pick because Google moved Gemini CLI's free Google login to Antigravity CLI on June 18, 2026.

Which tools did you compare?

We ranked 6 tools: Cline (79), Aider (77), OpenCode (76), Kilo Code (71), Continue (68), Gemini CLI (61). Scores are out of 100.

Are these rankings based on hands-on tests?

Not yet. Every score here is preliminary, based on vendor documentation and public reporting. Hands-on results will be published with dated evidence logs.

Do affiliate commissions affect the ranking?

No. Affiliate status is recorded separately and is never a scoring input. See our disclosure page.

Next steps

Free: the AI Coding Cost Cheat Sheet (PDF)

What $0, about $20 and $100+ a month gets you across 22 AI coding tools, with prices copied from vendor pages when we wrote it; plans change often, so check each vendor's page before you buy. Enter your email to download it now. You'll also get our free weekly email: what shipped and which picks or prices moved, about a 2-minute read. Unsubscribe anytime.