---
title: "OpenCode: open-source terminal coding agent, free tier and alternatives"
canonical_url: https://cookiesforai.app/coding-agents/opencode
markdown: https://cookiesforai.app/coding-agents/opencode.md
publisher: "CookiesForAI"
last_updated: 2026-10-17T01:12:15+02:00
facts_checked: 2026-11-10
type: tool
summary: "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."
related:
  - "https://cookiesforai.app/coding-agents/claude-code"
  - "https://cookiesforai.app/coding-agents/codex"
  - "https://cookiesforai.app/coding-agents/kilo-code"
  - "https://cookiesforai.app/coding-agents/cline"
  - "https://cookiesforai.app/coding-agents/goose"
---

> Full index of this site: https://cookiesforai.app/llms.txt  
> Checked by CookiesForAI on 10 NOV 2026: repository facts (stars, last push, archived) re-read from GitHub.

# 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.

## Facts

| Fact | Value |
|---|---|
| Made by | [Anomaly](https://anoma.ly) |
| Type | Terminal coding agent |
| License | MIT |
| Source | https://github.com/anomalyco/opencode |
| GitHub stars | 225,790 on 10 NOV 2026 |
| Runs on | macOS, Windows, Linux, Desktop app, VS Code, Cursor, Zed, Windsurf, Web (opencode web) |
| Free tier | Free |
| Website | https://opencode.ai |
| Page updated | 17 OCT 2026 |
| Facts checked | 10 NOV 2026 ([how](https://cookiesforai.app/method)) |

## What it 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 it 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

Strength: OpenCode has 211,260 GitHub stars (01 OCT 2026), 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 it costs

Free tier: Free. 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.

Prices as Anomaly showed them on 16 OCT 2026:

| Plan | Price |
|---|---|
| Go | $10 per month |
| Go Plus | $40 per month |

Current prices: https://opencode.ai/go. Prices change, so check the maker's own page before you buy.

## Agent skills and MCP

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](https://cookiesforai.app/skills) and [MCP servers](https://cookiesforai.app/mcp) 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 01 OCT 2026.

### 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](https://cookiesforai.app/coding-agents/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](https://cookiesforai.app/coding-agents/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](https://cookiesforai.app/coding-agents/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](https://cookiesforai.app/coding-agents/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](https://cookiesforai.app/coding-agents/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](https://cookiesforai.app/coding-agents/aider) | Terminal coding agent | macOS · Windows · Linux · Docker | Free |
| [Amp](https://cookiesforai.app/coding-agents/amp) | Terminal coding agent | macOS · Linux · Windows (WSL) · Web · macOS app · iOS · Slack | Free plan |
| [Claude Code](https://cookiesforai.app/coding-agents/claude-code) | Terminal coding agent | macOS · Windows · Linux · VS Code · JetBrains · Desktop app · Web · iOS · Android | Paid only |
| [Cline](https://cookiesforai.app/coding-agents/cline) | Editor extension | VS Code · Cursor · Windsurf · VSCodium · Antigravity · JetBrains · CLI · Desktop app (macOS, Windows) | Free plan |

[Compare all 20 →](https://cookiesforai.app/coding-agents)

## More in Coding agents

- [Aider](https://cookiesforai.app/coding-agents/aider): 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.
- [Amp](https://cookiesforai.app/coding-agents/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.
- [Claude Code](https://cookiesforai.app/coding-agents/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.
- [Cline](https://cookiesforai.app/coding-agents/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.
- [Continue](https://cookiesforai.app/coding-agents/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.
- [Cursor](https://cookiesforai.app/coding-agents/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.
- [Devin](https://cookiesforai.app/coding-agents/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.
- [Gemini CLI](https://cookiesforai.app/coding-agents/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.
- [GitHub Copilot](https://cookiesforai.app/coding-agents/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.
- [Google Antigravity](https://cookiesforai.app/coding-agents/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.
- [Goose](https://cookiesforai.app/coding-agents/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.
- [Hermes Agent](https://cookiesforai.app/coding-agents/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.
- [Junie](https://cookiesforai.app/coding-agents/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.
- [Kilo Code](https://cookiesforai.app/coding-agents/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.
- [OpenAI Codex](https://cookiesforai.app/coding-agents/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.
- [OpenClaw](https://cookiesforai.app/coding-agents/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.
- [Roo Code](https://cookiesforai.app/coding-agents/roo-code): Roo Code was an open source coding agent extension for VS Code by Roo Code, Inc.; the extension was shut down on 15 MAY 2026 and its GitHub repository is archived.
- [Windsurf (now Devin Desktop)](https://cookiesforai.app/coding-agents/windsurf): Windsurf is an AI code editor by Cognition, renamed Devin Desktop on 02 JUN 2026, that pairs a desktop editor and Tab completions with a local agent and handoff to Devin's cloud agents.
- [Zed](https://cookiesforai.app/coding-agents/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.
