OpenCode free models: what is really free, and how to set it up
On 6 November 2026, OpenCode lists 13 free models, but only the program itself is free for good. The models are free for a limited time, and some may use your data to improve themselves. Here is how to install OpenCode, what you get without paying, and where the free ride ends.
What OpenCode is, and what "free" means here
OpenCode is a coding agent: you type a request in plain language, and it reads your project files, proposes changes and can run commands. The program itself is open source under the MIT license (source code (opens in a new tab)). You do not pay for the program.
The thinking is done by an AI model hosted by someone else, and hosting costs money. So "free" can mean three things:
- Free software: the OpenCode program. Always free.
- Free models offered inside OpenCode: the team lists some models marked "Free", available for a limited time. They can appear and disappear.
- Free models you run yourself: local models through tools such as Ollama or LM Studio. No fee, but your own computer does the work.
Everything else (most strong models, or the same models with guaranteed availability) is paid, either per use or by subscription.
What is free today
OpenCode runs a gateway called OpenCode Console that serves models. Its models page (opens in a new tab) lists these as free on 6 November 2026: Big Pickle, Crouton Alpha Free, Pulse Alpha Free, GLM-5.3-Flash Free, DeepSeek V4.1 Flash Free, Beam Free, Flint 40B Free, MiMo-V2.6-Flash Free, three Nemotron free models and Jev 1.13 Free. The page says most are free "for a limited time". Treat this list as a snapshot: it will be different next month.
The real limits
- The docs give no numeric limit for the free models (no daily message count, no token cap). We could not verify any, so we will not invent one. Expect that a free model can slow down, change or be removed.
- The page says free chat models require OpenCode. You cannot call them from other tools.
- Models get retired. The same page keeps a table of deprecated models with dates, for example DeepSeek V4 Flash on 26 October 2026.
- The docs do not say clearly whether free models work before you sign in. Try it: if
/modelsshows a free model and it answers, good. If not, creating a Console account is the documented route.
What the free models do with your data
This is the part most beginners skip, and it matters. Per the same page, providers generally keep no data and do not train on it, but the free models have exceptions:
- Big Pickle, Pulse Alpha Free and MiMo-V2.6-Flash Free: collected data may be used to improve the model during the free period.
- Flint 40B Free: data kept for 30 days and may be used to improve the model.
- Beam Free and Crouton Alpha Free: data kept for 30 days, not used for training.
- The three models listed as Nemotron on the page: trial use only. The docs say not to submit personal or confidential data.
- GLM-5.3-Flash Free, DeepSeek V4.1 Flash Free and Jev 1.13 Free: the page lists no exception for them, so the general rule above applies.
Practical rule: with a free model, work only on code you would be fine showing a stranger, because every file the agent reads is sent to the model provider and, for some models, may be used to improve it.
Install OpenCode
You need a terminal and, per the docs, a modern terminal emulator. On Windows the docs recommend WSL (Linux inside Windows). The official page lists several ways to install; these three are the common ones.
Install script (macOS, Linux, WSL)
curl -fsSL https://opencode.ai/install | bashWith Node.js
npm install -g opencode-aiWith Homebrew
brew install anomalyco/tap/opencodeNote: the OpenCode docs and the GitHub page currently describe two major versions, with different install commands, and say both use the opencode command and cannot live side by side. The commands above are from the main docs page. If one fails, check the official install section (opens in a new tab) for the latest.
First run, step by step
Make or choose a small project folder. For a first try, use a copy or a throwaway folder, because the agent can edit files.
Open a terminal in that folder and start OpenCode:
opencodeInside OpenCode, list the models and pick one. Free ones are marked Free:
/modelsLet it learn the project. This creates an
AGENTS.mdfile with notes about your code:/initPress Tab to switch between Plan mode (it only suggests, changes nothing) and Build mode (it edits). Start in Plan mode until you trust it.
Ask for something small, such as "explain what this project does", before asking for changes.
Using your own key or a local model
OpenCode supports more than 75 providers through the AI SDK and Models.dev, including Anthropic, OpenAI, GitHub Copilot, Groq, Ollama and OpenRouter. Any OpenAI-compatible service can be added as a custom provider. For more free routes, see our guides on OpenRouter free models, Groq and running models locally with Ollama.
Inside OpenCode, run:
/connectChoose the provider and paste its API key. The key is saved in a local file,
~/.local/share/opencode/auth.json, so protect that file like a password.Check what is configured from the terminal:
opencode auth list
For local models, the docs say Ollama, LM Studio and llama.cpp are set up as a custom provider with a local baseURL. Nothing leaves your machine, but you need a capable computer. The docs mention one known snag: if tool calls fail with Ollama, try raising num_ctx.
If you would rather not see the free models at all, the docs describe an environment variable for that: OPENCODE_DISABLE_FREE_MODELS=1.
When you will have to pay
- Pay as you go: you add credits in the Console and are charged per request, with prices per 1M tokens that differ by model. The pricing page (opens in a new tab) states a processing fee of 4.6% + $0.31 on each credit purchase, and you can set monthly budgets.
- OpenCode Go: a subscription for tested open coding models. The Go page (opens in a new tab) shows Go at $10 per month, Go Plus at $40 and Go Teams at $20 per member, with limits per model that reset on 5-hour, weekly and monthly windows. When you hit your limit, the free models stay usable.
- Direct provider keys: you pay that provider (OpenAI, Anthropic and so on) under their own pricing.
Prices above are what the pages showed on 6 November 2026. Check the live page before paying.
OpenCode against other ways to code with AI
- OpenCode vs a vendor tool (a coding agent tied to one company): OpenCode lets you switch models and providers, even to a local model. A vendor tool is usually simpler and better tuned, but locks you to that vendor.
- OpenCode vs a chat website with copy and paste: OpenCode reads and edits your files directly, which saves time but also means mistakes land in your real project.
Who should skip the free models
- Anyone working on confidential or client code and planning to use a free hosted model. Use a paid plan with clear data terms, or a local model.
- People who need a guaranteed, stable setup. Free models are temporary, and quality varies.
- Complete beginners who have never opened a terminal. It is doable, but start with a throwaway folder.
What the agent can do on your machine
- The agent sends your prompts and the file contents it reads to the model provider. That is how it works.
- It can run commands with your permissions. Read what it proposes before approving, and use Plan mode first.
- Keep secrets out of the project folder, since the agent reads files and sends their contents to the provider. Your provider keys live in
~/.local/share/opencode/auth.json, so never share or commit that file. - Want a sealed environment where it only sees one folder? Follow our safe setup guide.
Common questions about OpenCode
Is OpenCode really free?
The program is. The models are free only when they are on the free list or run locally. Everything else costs money.
Why did my favourite free model disappear?
Free models are offered for a limited time and the docs keep a deprecation table. Run /models again and pick another.
Do I need a credit card?
For paid models and credits, yes: the Console asks for billing details. For the free models, the docs do not state it clearly, so we could not verify it.
Which free model is best?
We did not benchmark them, so we will not rank them. Try two on a small task and compare the answers yourself.
Where these facts come from (checked 2026-11-06)
Every model name, price and date above comes from these pages, fetched on 6 November 2026. They change often. Not verified: any numeric usage limit on the free models, and whether they work before sign-in.
Checked against the official docs on 6 November 2026. Free models and prices change often, so check the sources.