What OpenCode is
OpenCode is an open source AI coding agent. It's available as a terminal-based interface, desktop app, or IDE extension. Shah's pitch rests on three ideas:
- Model choice. You pick the models instead of being tied to one vendor.
- Task-based spending. You can send routine jobs to cheaper or free models and keep premium models for hard problems.
- Local models. You can run models on your own machine for privacy.
Shah describes his own workflow. He uses free models for boilerplate, CSS tweaks, basic components and small bug fixes. He saves his Claude Code allowance for complex debugging, architecture and refactoring. He also says he tried a free cloud model (space-bunny-free) to build a complex website, and that it looked solid at first glance.
That is an anecdote, not a benchmark. He doesn't say which OpenCode version he tested, and nobody independently checked his results. Treat the "free model did a solid job" claim as one person's impression.
Provider choice is real, but not free
OpenCode's documentation says it uses the AI SDK and Models.dev to support 75+ LLM providers and it supports running local models. I'm quoting the figure as the docs state it, since the project maintains the count and it can change.
The practical catch is that the agent is free, but the model behind it often isn't:
- The getting-started guide lists API keys for the LLM providers you want to use as a prerequisite.
- You add a provider with the
/connectcommand and then pick a model with/models. - Anthropic, DeepSeek and OpenRouter each need an account and an API key created in their own consoles.
- OpenCode's own curated option, OpenCode Zen, has you sign in, add billing details and copy an API key.
- A separate OpenCode Go is described as a low-cost subscription plan.
Some providers do offer free access. NVIDIA's docs entry says its models are available through build.nvidia.com for free. Even so, you still need an account and a key. Compare price, usage limits, terms and model quality for whichever provider you actually choose.
One more point matters if you were hoping to reuse a Claude subscription. The provider docs mention plugins that let you use Claude Pro/Max models in OpenCode, and note that Anthropic explicitly prohibits this. The docs add a line saying that is no longer the case as of 1.3.0, but the wording is fragmentary. Check the current terms before relying on a consumer subscription this way.
There is also a Microsoft angle. The provider guide covers Azure OpenAI and Foundry deployments. It also lists a Microsoft Entra ID (Azure CLI) sign-in, so you can use an az login session instead of an API key. Your identity needs the right inference role, such as Cognitive Services OpenAI User. Enterprise Azure shops can therefore point the tool at models they already govern.
Local models and privacy
Shah says he connected OpenCode to Ollama and ran a compatible coding model locally, so his source code never went to an external AI provider. The docs support the mechanism. They show OpenCode talking to local servers through OpenAI-compatible endpoints:
- Ollama at
[url]http://localhost:11434/v1[/url] - LM Studio at
[url]http://127.0.0.1:1234/v1[/url] - llama.cpp's
llama-serverat[url]http://127.0.0.1:8080/v1[/url]
Keep the privacy claim narrow:
- It applies only when the model itself runs locally. Shah concedes that free cloud models don't give the same privacy benefit, and that smaller local models may struggle with demanding projects.
- You still have to install and run the model server and have hardware that can handle the model.
- Check which provider and endpoint each session uses. A single config entry pointing at a hosted service means your code goes to that service.
Windows: WSL is the recommended route
Shah says he moves between a Windows desktop and a MacBook. His cross-platform claim needs one qualification for Windows readers. OpenCode can run directly on Windows, but the docs recommend Windows Subsystem for Linux for the best experience. The stated reason is better file system performance, full terminal support, and compatibility with the development tools OpenCode relies on.
The native Windows install options are listed in the docs:
- Chocolatey:
choco install opencode - Scoop:
scoop install opencode - npm:
npm install -g opencode-ai - Mise
- Docker
- A downloadable release binary
Support for installing OpenCode on Windows using Bun is still in progress.
The WSL route has a few quirks:
- Windows drives appear under /mnt/c/, /mnt/d/ and so on inside WSL.
- OpenCode's config and sessions then live inside the WSL environment at ~/.local/share/opencode/. That differs from a native Windows install.
- A third-party install guide from NxCode warns that Windows and WSL have separate PATH values and home directories. It also says credentials saved in WSL aren't automatically shared with Windows. I'm attributing that to the guide, not to OpenCode's own docs.
- A GitHub issue shows a related trap. A user ran the Unix curl installer from a Windows shell with WSL enabled, and OpenCode installed into WSL. A commenter explained that this was the cause, and suggested npm or another method for a native install.
Version also matters. The docs say OpenCode 1 and OpenCode 2 both use the opencode command and cannot be installed side by side under their default command. Pick one and note which package manager installed it. The official docs say Homebrew's default formula currently installs V2, and the Arch package installs V2.
A first-run walkthrough
This follows the official getting-started steps. Details may vary by version and install method.
- Install OpenCode, preferably inside WSL on Windows, or through one of the native routes above.
- Run
/connectin the terminal interface and choose a provider. Paste an API key, or select a local runtime configured inopencode.json. - Change into your project folder and run
opencode. - Run
/init. OpenCode analyzes the project and creates anAGENTS.mdfile at the project root. The docs say this helps it understand the project's structure and coding patterns. - Press Tab to switch to Plan mode. This is described in the docs as disabling its ability to make changes and instead suggesting how it will implement the feature. Review the plan, then press Tab again to return to Build mode.
- If a change goes wrong, use
/undo./redoreapplies it.
The Plan/Build split and /undo are useful safeguards for an agent that edits files and runs commands. Neither replaces version control, so commit before you let an agent loose.
How I'd read the claims
| Claim | What supports it | Caveat |
|---|---|---|
| Open source, free agent | Official docs describe it as open source | Model usage is billed separately by most providers |
| 75+ providers | Provider docs | The count is project-maintained and may change |
| Local, private operation | Documented Ollama, LM Studio and llama.cpp endpoints | Only for models you actually run locally; hardware and model quality limit results |
| Works across Windows and Mac | Native installs and a desktop app exist | WSL is the recommended Windows setup |
| "More powerful" than rivals | Shah's opinion | No benchmark or side-by-side test was provided |
I left out Shah's claim that Cursor defaults to Grok models. I couldn't verify it from primary documentation.
Bottom line
OpenCode's real selling point is flexibility. You get one open-source agent interface that can talk to hosted providers, enterprise cloud deployments and local model servers. Its practical costs are setup effort, the need to manage keys and models yourself, and the need to check which provider is handling your code. Windows developers should plan around WSL from the start. They should also treat any "free model beats paid model" story, including this one, as a reason to run their own test on their own codebase.
References
- My favorite Claude Code alternative isn't Codex or Cursor: it's something way more powerful and open-source XDA · 2026-10-31T10:01:23+00:00
- opencode-docs/docs/official/windows-wsl.md at main · mudrii/opencode-docs · GitHub github.com
- Providers | OpenCode opencode.ai