Terminal coding agent
OpenCode
OpenCode is an open source terminal coding agent by Anomaly that works with 75+ model providers, local models included, and also ships as a desktop app and IDE extension.
Checked by CookiesForAI on : repository facts (stars, last push, archived) re-read from GitHub.
Written by
What OpenCode does
OpenCode is an open source coding agent with a terminal interface, a desktop app for macOS, Windows and Linux, and an extension for VS Code, Cursor, Zed and Windsurf. It has two main agents, Build for making changes and Plan for read-only planning, plus subagents for general work and code exploration. It loads language servers automatically, so the agent sees diagnostics as it edits.
OpenCode is not tied to one model vendor. It connects to 75+ providers through Models.dev, including local models, and you can sign in with a GitHub Copilot account or a ChatGPT Plus or Pro plan. Its maker, Anomaly, also sells two optional services: Zen, a pay-as-you-go model gateway, and Go, a subscription for open models.
OpenCode integrates with GitHub: mention /opencode or /oc in an issue or pull request comment and it runs in your GitHub Actions runner and opens a pull request. OpenCode is moving to a v2, and the classic and v2 docs currently describe slightly different config formats.
Who OpenCode is for
- Developers who want a free, MIT-licensed terminal agent they can use with any model provider
- People who already pay for GitHub Copilot or ChatGPT and want to use that login in a terminal agent
- Running local models, or switching between cheap open models and frontier models per task
- Teams that want an agent triggered from GitHub issue and pull request comments
Who should pick something else
- People who want one bundled subscription that covers the tool and the models with no setup; Cursor or GitHub Copilot do that
- Teams that need stable config right now: classic and v2 docs give different MCP config shapes during the v2 move
- Windows users who avoid WSL: the docs recommend WSL on Windows
OpenCode: one strength, one limit
Strength. OpenCode has 211,260 GitHub stars (), is MIT licensed, and works with 75+ model providers including local models, so the tool itself costs nothing.
Limit. OpenCode is mid-migration to v2, and its classic and v2 docs give different MCP config formats and install scripts, so guides you find may not match your version.
What OpenCode costs
Free and open source under MIT with your own provider key or local models; its maker also sells an optional model gateway and a subscription for open models.
| Plan | Price |
|---|---|
| Go | $10 per month |
| Go Plus | $40 per month |
Current prices: opencode.ai . Prices change, so check the maker's own page before you buy.
OpenCode with agent skills and MCP servers
Skills. OpenCode supports Agent Skills natively through a built-in skill tool. It reads project skills from .opencode/skills, .claude/skills and .agents/skills, searching up to the git worktree root, and global skills from ~/.config/opencode/skills, ~/.claude/skills and ~/.agents/skills. The docs do not give a date it was added. The open skills CLI installs OpenCode skills into .agents/skills.
MCP. OpenCode reads MCP servers from opencode.json under the mcp key: "type": "local" with a command array, or "type": "remote" with a url and headers; OAuth for remote servers is handled automatically and opencode mcp auth <name> logs in. The new v2 docs add a command, opencode mcp add <name> --url <url> or opencode mcp add <name> -- <command>, and nest servers under mcp.servers instead.
Browse all agent skills and MCP servers in the directory.
Questions people ask
Is OpenCode free?
Yes. OpenCode is free and open source under the MIT license; you pay only your model provider, or nothing with local models. Its maker sells optional services: Zen (pay as you go) and Go (a monthly subscription), read on opencode.ai on .
Can OpenCode use agent skills and MCP servers?
Yes. OpenCode reads Agent Skills from .opencode/skills, .claude/skills or .agents/skills, and connects MCP servers configured under the mcp key in opencode.json.
Alternatives to OpenCode
- Claude Code: Claude Code is a terminal coding agent by Anthropic that reads a codebase, edits files and runs commands, and also works in VS Code, JetBrains, a desktop app and the web.
- OpenAI Codex: OpenAI Codex is a coding agent by OpenAI that runs as an open source CLI on your machine and as a cloud agent in ChatGPT, editing code, running commands and opening pull requests.
- Kilo Code: Kilo Code is an open source coding agent by Kilo Code, Inc., acquired by Anaconda in 2026, that runs in VS Code, JetBrains IDEs, a CLI and cloud agents with 500+ models.
- Cline: Cline is an open source coding agent by Cline Bot Inc. that runs as a VS Code or JetBrains extension and a CLI, using your own model keys or local models.
- Goose: Goose is an open source AI agent, created by Block and now part of the Agentic AI Foundation at the Linux Foundation, that runs as a desktop app and CLI with any model provider.
Compare coding agents
| Tool | Type | Runs on | Free tier |
|---|---|---|---|
| OpenCode | Terminal coding agent | macOS · Windows · Linux · Desktop app · VS Code · Cursor · Zed · Windsurf · Web (opencode web) | Free |
| Aider | Terminal coding agent | macOS · Windows · Linux · Docker | Free |
| Amp | Terminal coding agent | macOS · Linux · Windows (WSL) · Web · macOS app · iOS · Slack | Free plan |
| Claude Code | Terminal coding agent | macOS · Windows · Linux · VS Code · JetBrains · Desktop app · Web · iOS · Android | Paid only |
| Cline | Editor extension | VS Code · Cursor · Windsurf · VSCodium · Antigravity · JetBrains · CLI · Desktop app (macOS, Windows) | Free plan |
More in Coding agents
Aider is an open source terminal coding agent from the Aider-AI project that edits files in your git repo with the model of your choice and commits each change automatically.Terminal coding agent
Amp
Amp is a coding agent by Amp Frontier Corporation, spun out of Sourcegraph, that runs in a terminal CLI, a web app and macOS and iOS apps, with per-thread cloud machines.Terminal coding agent
Claude Code
Claude Code is a terminal coding agent by Anthropic that reads a codebase, edits files and runs commands, and also works in VS Code, JetBrains, a desktop app and the web.Editor extension
Cline
Cline is an open source coding agent by Cline Bot Inc. that runs as a VS Code or JetBrains extension and a CLI, using your own model keys or local models.Editor extension
Continue
Continue is an open source coding agent for VS Code, JetBrains and the terminal by Continue Dev, Inc., which Cursor acquired; its GitHub repo is now read-only and no longer maintained.AI code editor
Cursor
Cursor is an AI code editor by Anysphere that pairs a desktop editor with an agent, a CLI and cloud agents, using models from several vendors plus its own Composer models.Cloud coding agent
Devin
Devin is a cloud coding agent by Cognition that works in its own virtual machines, takes tasks from Slack, GitHub, Linear or Jira, and also ships as a CLI and the Devin Desktop editor.Terminal coding agent
Gemini CLI
Gemini CLI is an open source terminal coding agent by Google that runs Gemini models from the command line, with MCP, agent skills, subagents and hooks, under the Apache-2.0 license.Editor extension
GitHub Copilot
GitHub Copilot is an AI coding assistant by GitHub that works in VS Code, JetBrains and other editors, in a CLI, and as a cloud agent that opens pull requests on GitHub.AI code editor
Google Antigravity
Google Antigravity is an agentic development platform by Google that runs coding agents in a desktop command center, a standalone IDE, a CLI called agy and extensions for other editors.Terminal coding agent
Goose
Goose is an open source AI agent, created by Block and now part of the Agentic AI Foundation at the Linux Foundation, that runs as a desktop app and CLI with any model provider.Personal AI agent
Hermes Agent
Hermes Agent is an open source personal AI agent by Nous Research that runs in the terminal, a desktop app and messaging apps, and writes new skills for itself from completed tasks.Terminal coding agent
Junie
Junie is a coding agent by JetBrains that runs as a CLI on macOS, Windows and Linux, inside JetBrains IDEs and in GitHub or GitLab pipelines, with any model you choose.Editor extension
Kilo Code
Kilo Code is an open source coding agent by Kilo Code, Inc., acquired by Anaconda in 2026, that runs in VS Code, JetBrains IDEs, a CLI and cloud agents with 500+ models.Terminal coding agent
OpenAI Codex
OpenAI Codex is a coding agent by OpenAI that runs as an open source CLI on your machine and as a cloud agent in ChatGPT, editing code, running commands and opening pull requests.Personal AI agent
OpenClaw
OpenClaw is an open source personal AI agent from the OpenClaw Foundation that runs on your own machine and takes tasks from WhatsApp, Telegram, Slack, Discord and other chat apps.Editor extension
Roo Code
Roo Code was an open source coding agent extension for VS Code by Roo Code, Inc.; the extension was shut down on and its GitHub repository is archived.AI code editor
Windsurf (now Devin Desktop)
Windsurf is an AI code editor by Cognition, renamed Devin Desktop on , that pairs a desktop editor and Tab completions with a local agent and handoff to Devin's cloud agents.AI code editor
Zed
Zed is an open source code editor by Zed Industries, written in Rust, with a built-in AI agent, edit predictions, external agents over ACP and real-time collaboration.