Skip to content
Comparisons

OpenCode alternatives in 2026: free, open-source and hosted options compared

Thirteen free alternatives to OpenCode, from agents with models included to open-source harnesses you run with your own key, with every limit checked against its source.

In short

  • Free, with models included: Freebuff, Kilo Code’s Auto Free, Google Antigravity, GitHub Copilot Free, OpenAI Codex on ChatGPT Free, free-pi and freecode. Freebuff publishes its daily allowance in hours; most of the others say only "limited".
  • Free and open source, with your own key: Pi, Goose, Cline, Aider and Qwen Code, plus OpenRouter’s free models (50 requests a day) or a local model.
  • No longer free: Gemini CLI moved its free use to Antigravity CLI on June 18, 2026, and Qwen Code’s free sign-in now needs a paid Qwen plan.

OpenCode is a popular open-source coding agent, and its free models make it an easy place to start. People look for alternatives when those limited-time models change, when they want a published daily limit, or when they want a different interface. This guide lists the main options in two groups: agents that include free models, and free harnesses that run on a key or a local model.

Every limit below comes from the product’s own pages, checked on November 23, 2026. Free tiers in this market change often, so each one links to its source.

At a glance

  • OpenCode: MIT; 11 free models "for a limited time", no account needed, no published limit; terminal, desktop and mobile.
  • Freebuff: Free with no card or API key; up to 30 hours a day in the US in hour-long sessions with unlimited messages; terminal, desktop, browser, iOS and Android; agents Apache-2.0.
  • Kilo Code: MIT; Auto Free routes to a few free models, 200 requests an hour per IP when signed out; VS Code, JetBrains, CLI and desktop.
  • Google Antigravity: Free plan with a weekly quota, no published number; app, CLI (agy) and IDE extensions.
  • GitHub Copilot Free: 2,000 completions a month plus limited chat and agent use; editors, CLI, GitHub.com and mobile.
  • OpenAI Codex: Included in ChatGPT Free on GPT-6 Luna in the desktop app, no published limit; CLI Apache-2.0.
  • free-pi: Free and ad-supported, daily allowance size unpublished; CLI and a Mac app; trains on sessions.
  • freecode: Free and sponsor-funded, daily limit size unpublished; web, desktop and CLI on Apple silicon Macs and Windows x64.
  • Pi: MIT; free harness, bring a key or subscription from 15+ providers; terminal.
  • Goose: Apache-2.0; free, bring a key or run a local model; desktop app and CLI.
  • Cline: Apache-2.0; free with your own key, plus limited-time free models up to an unpublished quota; desktop, editor extensions and CLI.
  • Crush: Source-available (FSL-1.1-MIT); free with your own key; terminal.
  • Aider: Apache-2.0; free with your own key or a local model; terminal.
  • Qwen Code: Apache-2.0; no free tier any more, free with your own key or a local model; terminal, desktop and editors.
  • OpenRouter free models: :free models at 20 requests a minute and 50 a day (1,000 after $10 of credits); works with Pi, Goose, Aider, Cline and Crush.

Free agents with models included

Freebuff

Freebuff is a free, ad-supported coding agent, live since February 2026 and backed by Y Combinator. A free account gets a daily allowance of hours that depends on the country: up to 30 a day in the US, 21 in countries such as Canada, the UK and Germany, 12 in France, Spain and Italy, and 5 elsewhere. Each session lasts an hour with unlimited messages inside it.

The free picker recommends DeepSeek V4.1 Flash, and right now Solar Mini 4 and Solar Pro 4 don’t use the allowance. It runs in the terminal (npm install -g freebuff), as desktop apps for Mac, Windows and Linux, in the browser with the web workspace, and on iOS and Android. Work is split across 9 specialized subagents, including a code reviewer, and the agents are Apache-2.0 on GitHub. Only models labeled "May use data for AI training" are used for training, and messages are used to personalize ads (privacy policy).

Kilo Code

Kilo Code is MIT-licensed and runs as a VS Code extension, a JetBrains plugin, a CLI (npm install -g @kilocode/cli) and Kilo Desktop for macOS, Windows and Linux. Its Auto Free option "routes to free models through Kilo Gateway where available" (pricing); three free models were listed on November 23, 2026. Signed-out users are limited to 200 requests an hour per IP address, and Kilo notes that Auto Free may route to providers that "log prompts and outputs".

With your own key, Kilo charges no markup on inference, and Kilo Pass starts at $19 a month. It can also run tasks in parallel, isolated worktrees.

Google Antigravity

Google’s Antigravity has a $0 plan that covers its app, its CLI (agy), IDE extensions and SDK, with a "baseline agent quota refreshed weekly" and no published number (pricing). Its free models are Gemini 3.8 Flash plus Claude Sonnet 4.6, Claude Opus 4.6 and GPT-OSS-120b, and Google lists the last three as removed on November 30, 2026. Gemini CLI no longer has a free tier: free use moved to Antigravity CLI on June 18, 2026.

GitHub Copilot Free

GitHub Copilot Free includes 2,000 code completions a month and "limited chat and agent usage" (plans), in editors, the Copilot CLI, GitHub.com and mobile. Models are chosen automatically, and the cloud agent and code review are paid features.

OpenAI Codex

OpenAI includes Codex in ChatGPT Free, with GPT-6 Luna at standard speed in the Codex desktop app, "subject to rollout" (pricing). OpenAI lists the CLI, IDE extension and web from Plus up, and publishes no limit for Free. The Codex CLI is Apache-2.0 and also takes an OpenAI API key.

free-pi

free-pi is a free, ad-supported version of the Pi harness, with an MIT-licensed CLI (npx free-pi-cli@latest) and a Mac app for Apple silicon. It comes with "a free daily allowance" whose size it doesn’t publish, and past it requests run on "a slower lane". Its consent text says sessions are used to train models and "may be shared or sold to third parties", with no opt-out yet (ads and privacy).

freecode

freecode (freecode.sh) is a sponsor-funded agent with a web app, desktop apps for Apple silicon Macs and Windows x64, and a terminal CLI (npm install -g freecode-sh) on the same two platforms. It needs no key or card, and its daily limit resets at midnight UTC, with the size unpublished. Its default model is DeepSeek 4.1, alongside Gemini 3.8 Flash. Its terms let it license eligible coding sessions to partners for AI training, on by default in some locations once you accept (how it’s free). The CLI is not open source.

Free harnesses you run with your own key

Pi

Pi is a minimal, MIT-licensed terminal agent, now maintained by Earendil at pi.dev, and Pi 1.0 has shipped. It has no hosted models of its own: you connect an API key or a subscription from more than 15 providers, including OpenRouter, and Ollama for local models. By design it "skips features like sub-agents and plan mode", and you extend it with TypeScript.

Pi is the harness that free-pi is built on. Install with curl -fsSL https://pi.dev/install.sh | sh.

Goose

Goose is an Apache-2.0 agent with a desktop app for macOS, Linux and Windows and a full CLI. It is now part of the Agentic AI Foundation at the Linux Foundation (docs). It ships no hosted models, but supports more than 85 providers and can run local models itself, with no separate server. Recipes save a workflow as a reusable YAML file.

Cline

Cline is Apache-2.0 and runs as a desktop app, as extensions for VS Code, JetBrains and Cursor, and as a CLI (npm i -g cline). It is "free for individual developers", and you pay for inference with your own key (pricing). Signed-in users also get limited-time free model promotions up to an unpublished quota, and Cline says free usage "may be used to help improve model performance and quality". ClinePass costs $9.99 a month. Plan mode lets you agree on a strategy before it acts.

Crush

Crush, from Charm, is a terminal agent for macOS, Linux, Windows and even Android. It is free with your own key from Anthropic, OpenAI, Gemini, OpenRouter and others, and it uses language servers for extra context. Its license, FSL-1.1-MIT, makes it source-available rather than open source.

Aider

Aider is an Apache-2.0 terminal pair programmer that maps your codebase and commits each change to git (aider.chat). It is free with your own key or a local model. Its last GitHub release was in August 2025, so expect slower updates than the other tools here.

Qwen Code

Qwen Code is an Apache-2.0 terminal agent with a desktop app and editor integrations. Its free sign-in tier is gone: Qwen OAuth now needs a Plus or Pro subscription from chat.qwen.ai (auth docs). It still works free with your own key, or with a local model through Ollama or vLLM.

OpenRouter free models

OpenRouter’s :free models work with any bring-your-own-key agent, including Pi, Goose, Aider, Cline and Crush. They allow 20 requests a minute and 50 a day, or 1,000 a day once you have bought $10 of credits (limits). Check each free endpoint’s data policy, because some providers may store prompts and train on them.

How to pick

  • Free models and a published daily allowance, with no key: Freebuff.
  • Stay close to OpenCode in your editor or terminal: Kilo Code.
  • A small open-source harness you extend yourself: Pi.
  • A desktop app with local models: Goose.
  • Every change committed to git: Aider.
  • Gemini models for free: Google Antigravity.
  • Inside GitHub and your editor: GitHub Copilot Free.

Try Freebuff for free

No card, no API key. `npm install -g freebuff`

Get Freebuff

Questions

What is the best free alternative to OpenCode?
It depends on what you want to change. For a free agent with models included and a published daily allowance, Freebuff: up to 30 hours a day in the US in hour-long sessions with unlimited messages, in the terminal, on desktop, in the browser and on your phone. For a free open-source harness on your own key, Pi or Goose.
Is OpenCode still free?
Yes. OpenCode is MIT-licensed, and its Zen docs list 11 free models, each free for a limited time, with no published daily limit. OpenCode Go starts at $10 a month.
Which OpenCode alternatives are open source?
Kilo Code and Pi are MIT, and Goose, Cline, Aider, Qwen Code and the Codex CLI are Apache-2.0. Freebuff’s agents are Apache-2.0 on GitHub. Crush is source-available under FSL-1.1-MIT.
Does Gemini CLI still have a free tier?
No. Google moved free individual use to Antigravity CLI on June 18, 2026. Antigravity’s free plan has a weekly quota with no published number.
Can I use OpenCode alternatives with local models?
Yes. Pi, Goose, Aider, Cline, Qwen Code and Kilo Code all work with local models, for example through Ollama.