OpenCode
OpenCode is a free, open-source coding agent that runs in the terminal; there is also a desktop app and a web app. You pick the model: Claude, GPT, Gemini and dozens of others through an API, or a local one; you pay only the model provider. Modes: Build edits code, Plan only plans and does not change files. It reads project rules from AGENTS.md, and the /init command creates that file from the repo.
Frequently asked questions
What is OpenCode?
A free open-source coding agent in the terminal, with a desktop app and a web app too. You pick the model and pay only its provider.Which models work in OpenCode?
Claude, GPT, Gemini and dozens of others through an API, as well as a local model on your computer.How do you install OpenCode?
On macOS and Linux:curl -fsSL https://opencode.ai/v2/install | bash; with Homebrew: brew install anomalyco/tap/opencode-v2; with npm: npm install -g @opencode/cli. On Windows package managers are not supported: download the binary from the OpenCode site.How much does OpenCode cost, and is there a free way?
The agent itself is free; you pay only for the model. There is the OpenCode Go subscription at $10 a month and OpenCode Console with pay-per-token pricing; Console has free models, some for a limited time. A local model on your computer also works for free.How is OpenCode different from Claude Code?
They are built the same way: both read the project, edit files and run commands. OpenCode is open source and works with any model, Claude Code only with Claude models.Read more: Claude Code, Codex, Cursor and Hermes Agent: which to pick
Where it appears · 6
- Claude Code not available in your country · Harness
- Codex CLI not available in your country · Harness
- Claude Code · Harness
- Cursor rules vs AGENTS.md · Specs and context
- Codex vs Claude Code, which to pick, and when Cursor or Hermes Agent fits · Harness
More 1
- What are AGENTS.md and CLAUDE.md and how they differ from spec.md · Specs and context