Best OpenCode Alternatives (2026)
The best OpenCode alternatives are the terminal coding agents developers say they moved to in blog posts and Hacker News threads, checked against independent hands-on reviews.
What we track: Price · Open source · GitHub stars · checked October 19
- Price:
- What you pay to use it. Most open-source agents are free and bill you only through your model provider.
- Open source:
- Whether the agent's code is public under an open-source license, so you can read it, fork it or run it offline with local models.
- GitHub stars:
- How many people starred the project on GitHub. Hype and marketing move it as much as quality.
These numbers inform the order but don’t set it: an editor ranks the picks, weighing them against what people who use them say, since stars and downloads also reflect hype and marketing.
Showing 14 of 14
- 1
Pi
The agent people name most often when they leave OpenCode. Federico Cervelli swapped an OpenCode config of more than 200 lines for three short files and found he could read Pi's whole system prompt on one screen. It ships without plan mode, sub-agents or permission prompts, and you add what you need as extensions. Cervelli says the first week hurt, and Hacker News user Havoc still misses plan mode.
- Price Free; pay your model provider or sign in with a subscription
- Open source Yes, MIT
- GitHub stars 116,275
- Models
- 15+ providers, including OpenRouter and local models through Ollama
- Platforms
- macOS, Linux, Windows
- Maker
- Earendil Inc.
Paste into Terminal to installcurl -fsSL https://pi.dev/install.sh | sh Felipe Fontoura left for OpenCode in May 2026, built twelve agents on open models, then came back, because a Claude subscription only covers Anthropic's own harness and open models at a similar price were the wrong trade. Pickuma's reviewer calls it the most polished of the terminal agents he ran. It is closed source and runs Claude models only, and Pedro Pinho notes its Bash sandbox is off until you turn it on.
- Price Pro $17/mo billed yearly or $20 monthly; Max from $100/mo
- Open source No, Anthropic's commercial terms
- GitHub stars 152,305
- Models
- Claude models, direct or through Bedrock, Agent Platform and Foundry
- Platforms
- macOS 13+, Windows 10+, Ubuntu, Debian and Alpine Linux
- Maker
- Anthropic
Paste into Terminal to installcurl -fsSL https://claude.ai/install.sh | bashPedro Pinho at Alongside makes it the default pick for most teams because it is safe before you configure anything: writes are limited to the workspace, network access is off and an operating-system sandbox enforces both. The client is Apache-2.0 and accepts custom model providers, but it is built for OpenAI models on a ChatGPT plan, and Plus is the lowest tier whose listing includes the CLI.
- Price ChatGPT Plus $20/mo; Pro from $100/mo; or pay per token with an API key
- Open source Yes, Apache-2.0 (the client)
- GitHub stars 129,841
- Models
- GPT-6.1 Sol and GPT-6 Luna on Plus; API key models otherwise
- Platforms
- macOS, Linux, Windows
- Maker
- OpenAI
Paste into Terminal to installcurl -fsSL https://chatgpt.com/codex/install.sh | shA fork of Pi with the missing pieces already built in: sub-agents, language-server and debugger tools, and more than 60 providers. Jonathan Reis moved to it from Claude Code, Cursor and OpenCode for that reason, and several Hacker News users rank it above both Pi and OpenCode. The catch is the reverse of Pi's. One commenter mocks its long system prompt, and another still found it unpolished.
- Price Free; pay your model provider
- Open source Yes, MIT
- GitHub stars 35,900
- Models
- 60+ providers
- Platforms
- macOS, Linux, Windows (native, no WSL)
- Maker
- Stencil Labs; a fork of Pi
Paste into Terminal to installcurl -fsSL https://omp.sh/install | shDeepSeek's own agent, MIT-licensed, with every part down to the agent loop built as a plugin you can swap. DeepakNess ran it on his OpenCode Go key with the same DeepSeek models he used in Pi, and calls its session timeline the most transparent agent UI he has used. It is a developer preview that warns of breaking changes, it opens in a browser or desktop app rather than the terminal, and its npx install failed for him.
- Price Free; pay your model provider
- Open source Yes, MIT
- GitHub stars 260,388
- Models
- DeepSeek and most major providers, plus any OpenAI-compatible API
- Platforms
- Desktop app for macOS (Apple silicon) and Windows; web UI with Node.js
- Maker
- DeepSeek
Paste into Terminal to installnpx @deepseek-ai/dsh webCline's terminal version runs the same agent as its VS Code extension and asks before each edit or command unless you turn on auto-approve. ITProTutorials ran it on four infrastructure jobs and called the Docker Compose refactor production-ready, though the approval prompts slowed an Ansible task. In February a stolen npm token let someone publish a Cline CLI release that installed OpenClaw for about eight hours, so pin your version.
- Price Free for individuals; pay for inference or bring your own key
- Open source Yes, Apache-2.0
- GitHub stars 70,533
- Models
- Anthropic, OpenAI, Gemini, OpenRouter, Bedrock, any OpenAI-compatible
- Platforms
- macOS, Linux, Windows (arm64 and x64)
- Maker
- Cline Bot Inc.
Paste into Terminal to installnpm i -g clineCharm builds terminal interface libraries that thousands of other apps use, and it shows here. Joe Rice-Jones at XDA says Crush pulled in his Claude Code config and shows the API cost of each step in the sidebar. It is a single Go program that switches models mid-session. Two catches: you can't sign in with a Claude, ChatGPT or Gemini subscription, and the FSL license bars competing products until each release turns MIT after two years.
- Price Free; pay a model provider or subscribe to Charm Hyper
- Open source No: FSL-1.1-MIT, source available
- GitHub stars 28,700
- Models
- Many providers plus any OpenAI- or Anthropic-compatible API; Ollama
- Platforms
- macOS, Linux, Windows, Android, FreeBSD, OpenBSD, NetBSD
- Maker
- Charm (Charmbracelet, Inc.)
Paste into Terminal to installnpm install -g @charmland/crushThe pick when you don't want one company in charge: goose is Apache-2.0, started at Block and now sits with the Agentic AI Foundation at the Linux Foundation. It has a CLI and a desktop app and can use a Claude, ChatGPT or Gemini subscription. Attila Macskásy got about 2,400 lines of correct code from it on a local model, then watched it loop for two hours on a vaguer task. By default it acts without asking.
- Price Free; pay your model provider or reuse a subscription
- Open source Yes, Apache-2.0
- GitHub stars 55,427
- Models
- 15+ providers, including Ollama and OpenRouter
- Platforms
- macOS, Linux, Windows; CLI and desktop app
- Maker
- Agentic AI Foundation (Linux Foundation); started at Block
Paste into Terminal to installcurl -fsSL https://github.com/aaif-goose/goose/releases/download/stable/download_cli.sh | bashGoogle's replacement for Gemini CLI, run as agy. Jessica Wachtel at The New Stack found it could edit files and run tests in scripted mode where Gemini CLI could not, and Sumit Patel uses it daily for small changes in existing code but got a poor result building from scratch. Unlike Gemini CLI it is closed source, and the free allowance is a weekly quota that reviewers report running out quickly.
- Price Free with weekly limits; Google AI Pro and Ultra raise them
- Open source No, closed source
- GitHub stars Closed source
- Models
- Gemini 3.5 Flash, Gemini 3.1 Pro, Claude Sonnet and Opus 4.6, gpt-oss-120b
- Platforms
- macOS, Linux, Windows
- Maker
Paste into Terminal to installcurl -fsSL https://antigravity.google/cli/install.sh | bash- 10
Aider
The oldest project here and the easiest to undo: every edit becomes a git commit you can revert. When kenimo49 ran the same twelve tasks through three agents on a local Qwen model, Aider finished all twelve with the smallest prompt, ahead of OpenCode and Qwen Code. The catch is upkeep. The repository has had no commits since May 22, 2026, and comparisons note it documents no MCP support.
- Price Free; pay your model provider or run local models
- Open source Yes, Apache-2.0
- GitHub stars 49,629
- Models
- Almost any LLM, including local models
- Platforms
- macOS, Linux, Windows
- Maker
- Aider AI
Paste into Terminal to installcurl -LsSf https://aider.chat/install.sh | sh Worth a look if you or your employer already pay for GitHub Copilot, because the CLI is included in every plan, the free one too. Hacker News user gwerbin describes it as a lot like OpenCode but stripped down, and one subscription reaches both Claude and GPT models. Quibblingeek, who moved from OpenCode to oh-my-pi, finds it more limiting. Usage draws on monthly AI credits, and the client is not open source.
- Price Free plan with limited use; Pro $10/mo, Pro+ $39/mo, Max $100/mo
- Open source No, GitHub Copilot CLI License
- GitHub stars 11,270
- Models
- Anthropic Claude and OpenAI GPT models, billed in AI credits
- Platforms
- Linux, macOS, Windows (PowerShell 6+)
- Maker
- GitHub
Paste into Terminal to installcurl -fsSL https://gh.io/copilot-install | bashQwen's team started from Gemini CLI and has developed it independently since, adding sub-agents, approval modes and support for OpenAI, Anthropic and Gemini style APIs. It suits people who run Qwen models. In kenimo49's local test it finished 10 of 12 tasks and took 45 minutes to set up, with a first prompt of about 19,400 tokens. Older guides promise 1,000 free requests a day, but that free tier ended on April 15, 2026.
- Price Free; pay a model provider or an Alibaba Cloud Coding Plan
- Open source Yes, Apache-2.0
- GitHub stars 28,571
- Models
- OpenAI, Anthropic, Gemini and Qwen APIs; local via Ollama or vLLM
- Platforms
- Linux, macOS, Windows
- Maker
- Qwen (Alibaba Cloud)
Paste into Terminal to installnpm install -g @qwen-code/qwen-code@latest- 13
Amp
Built around orbs, cloud machines Amp starts for each thread that keep working after you close the laptop, with the same threads in the terminal, the browser and the Mac app. Hacker News user cavoirom recommends it to people leaving Cursor and says you won't go back, though it can get expensive. The free Hobby tier runs on your own keys or a ChatGPT or Claude plan. It is closed source, and Windows needs WSL.
- Price Hobby free with your own keys or subscription; Megawatt $20/mo
- Open source No, proprietary
- GitHub stars Closed source
- Models
- GPT-5.6, Claude Fable 5.1 and fast models; ChatGPT or Claude plans
- Platforms
- macOS, Linux, Windows via WSL; web and macOS/iOS apps
Paste into Terminal to installcurl -fsSL https://ampcode.com/install.sh | bash - 14
Freebuff
Free to run with no API key, because text ads pay for the bundled models, among them GLM 5.3 Flash and DeepSeek V4.1 Flash. Dragos at Bitdoze had it build a four-page Astro site in about ten minutes, fixing its own build errors, but it missed the Tailwind import and he still had to add it. The price is data: Freebuff's README says it may analyze your messages and files to personalize ads.
- Price Free, funded by text ads; paid plans unlock more models
- Open source Yes, Apache-2.0 (models run on Freebuff's servers)
- GitHub stars 13,615
- Models
- MiMo v2.6 Flash, GLM 5.3 Flash, DeepSeek V4.1 Flash, GPT-6 Luna, more
- Platforms
- macOS, Windows, Linux
- Maker
- Codebuff
Paste into Terminal to installnpm install -g freebuff
How to choose
If OpenCode feels bloated, get Pi, or oh-my-pi if you want Pi with the tools already built in. If you want one vendor's best models at a flat monthly price, get Claude Code or Codex CLI. That is the real OpenCode vs Claude Code difference: Claude Code runs only Claude models, OpenCode any provider. Codex sandboxes commands by default. For open source with any model and no single company in charge, get goose. For the nicest terminal interface, Crush. For an agent that asks before every edit, Cline CLI. To pay nothing for models, Freebuff, which shows ads. For a desktop app that runs any model, DeepSeek Harness. If you pay for GitHub Copilot, its CLI is included. OpenCode Go, the $10 model plan, also works in Pi, Claude Code and Codex.
What the makers' pages won't tell you. On October 17, 2026 attackers broke into an older OpenCode system and reached provider keys saved in OpenCode Console, affecting 1.4% of Console users. TechCrunch reports charges above $1,000 on some accounts, and OpenCode's co-founder says the app and CLI were not affected. Revoke a saved key at the provider: deleting it in OpenCode doesn't stop a stolen copy. OpenCode 2 has a new plugin API, so OpenCode 1 plugins don't run on it. Crush grew out of an older Go project also called OpenCode, and its license is source-available, not open source. Gemini CLI stopped serving personal accounts on June 18, 2026; Antigravity CLI replaced it. Aider has had no commits since May 22, 2026. Kilo CLI is built on OpenCode, so switching to it changes little. A free agent still needs a model: you pay a provider per token or run one yourself.
The list is ordered by how many independent developers and reviewers recommend each agent, then by GitHub stars, then by price.
Prices checked October 24, 2026.
OpenCode 2: what changed before you switch
OpenCode 2 shipped on September 11, 2026 as its own install (curl -fsSL https://opencode.ai/v2/install | bash, or the npm package @opencode/cli), and it replaces OpenCode 1 instead of running beside it. Homebrew's brew install opencode now gets version 2.
Its migration guide names three breaking changes: a new plugin API, so OpenCode 1 plugins don't load until their makers port them; a new server API for tools built on it; and terminal settings moved into one cli.json file. Your opencode.json, agents, commands and skills keep working. One quieter change matters for safety: OpenCode 2 no longer asks before reading or editing files outside your project. Add an external_directory permission set to ask to get that back.
Hacker News user verdverm tried version 2 and moved to Pi, saying OpenCode is trying to be too much. If plugins keep you on OpenCode, check which ones load on version 2 in OpenCode plugins. If you move to Pi, its add-ons are in Pi extensions. Neither version was hit by the October breach, which reached keys saved in OpenCode Console.
How to install
Every pick installs from a terminal with the command on its card. Most use a one-line install script (curl … | sh); Crush, Cline CLI, Freebuff and Qwen Code install with npm, which needs Node.js. Then run the agent's command (pi, claude, codex, crush, goose, cline) inside your project folder and sign in or add a provider's API key. OpenCode plugins don't carry over to any of them. If you saved provider keys in OpenCode's hosted console, revoke and replace them with each provider first.
More lists like this
Best AI Harnesses (2026)
The best AI harness can matter as much as the model. On one model, Claude Sonnet 4.6, AIMultiple scored harnesses from 43% to 82%.
Best AI Coding Plans (2026)
The best AI coding plans give your coding agent a month of strong models for a flat fee, often a tenth of Claude Max.
Best OpenCode Plugins (2026): Which Work on OpenCode 2
The best OpenCode plugins for OpenCode 2 (v2), from DCP to Superpowers, ranked by independent picks and hands-on tests. OpenCode 1 plugins won't load on 2.
OpenClaw Alternatives (2026): Safer and Easier to Run
The best OpenClaw alternatives are other personal AI agents you message from a chat app, self-hosted or hosted.
Pi Extensions (2026): Best Add-ons for the Pi Coding Agent
The best Pi extensions for subagents, web search, plan mode and permissions, picked from the setups developers publish, each with its pi install command.
Best Local LLMs for Coding (2026)
The best local LLM for coding depends on how much memory your machine has. This list ranks open-weight models you can run yourself, by independent…








