The open source coding agent.
open coreMITself-hostablefree
OpenCode is an open source (MIT) AI coding agent made by Anomaly, with a terminal UI, a desktop app for macOS, Windows and Linux, and mobile apps for starting, steering and approving sessions from a phone. It works with models from more than 200 providers through the Models.dev catalog, including local models through Ollama and LM Studio, and can sign in with a GitHub Copilot or ChatGPT Plus or Pro plan instead of an API key. It has build and plan agents, a general subagent, parallel sessions, AGENTS.md instructions, Agent Skills, MCP servers, plugins, custom commands, permissions and undo, an HTTP API and a TypeScript SDK, and it runs as an Agent Client Protocol agent in editors such as Zed. Anomaly also sells OpenCode Go, a monthly subscription to curated models, pay-as-you-go model access, and an Enterprise plan with SSO, SCIM, budgets and policies.
Ways to install
On your own server
Package managers
Problems it solves
- an open source coding agent like Claude Code that works with any model provider, not just one lab
- use my GitHub Copilot or ChatGPT Plus subscription in a terminal coding agent instead of paying for API keys
- run a coding agent against local models in Ollama or LM Studio so no code leaves my laptop
- switch between Claude, GPT, Gemini, DeepSeek and Kimi models in one coding agent without changing tools
- a terminal coding agent with a fast TUI that also works over SSH on a remote server
- a read-only planning mode so the AI can explore an unfamiliar codebase without editing files
- run several AI coding sessions in parallel on the same project and keep track of them in a desktop app
- approve or steer my coding agent from my phone while I am away from my desk
- drive a coding agent from my own scripts and CI jobs through an SDK or HTTP API
- use the same coding agent from Zed or another editor through the Agent Client Protocol
- reuse the AGENTS.md, CLAUDE.md and skills my repo already has for Claude Code in another coding agent
- extend a coding agent with my own plugins, custom commands and MCP servers
- a cheap flat monthly subscription to open coding models like GLM, Kimi and DeepSeek for my agent
- roll out an open source coding agent to our engineers with SAML SSO, SCIM and per-member budgets
- control which model providers, tools and MCP servers our developers’ coding agent may use
- try a coding agent with free models without creating an account
Features
- terminal UI that works in any shell, editor or remote server
- desktop app (beta) for macOS, Windows and Linux with sessions, tabs, diffs, a built-in browser and extensions
- mobile apps (TestFlight and Google Play) to start, steer and approve sessions
- build and plan agents switched with Tab, and a general subagent; custom agents
- parallel sessions on the same project
- 200+ LLM providers through Models.dev, custom providers and local discovery for Ollama, LM Studio and vLLM
- sign in with GitHub Copilot (GitHub.com or GitHub Enterprise) or a ChatGPT Plus or Pro plan
- AGENTS.md instructions (global, project and nested), with a CLAUDE.md fallback
- Agent Skills from .opencode/skills, .claude/skills and .agents/skills, or HTTP catalogs
- MCP servers, plugins, custom commands and permissions
View 6 more
- undo and redo of changes
- HTTP API with an OpenAPI 3.1 document, and a TypeScript SDK
- opencode acp: runs as an Agent Client Protocol agent in Zed and other ACP clients
- installs with a script, npm, Homebrew, pacman, mise or Nix
- OpenCode Go model subscription and pay-as-you-go model access with free models
- Enterprise: SAML 2.0 or OIDC SSO, SCIM 2.0, budgets and policies for providers, tools, MCP servers, skills and plugins
Capabilities
| Has an API | plan not known |
|---|---|
| Has a command line tool | plan not known |
| Takes plugins | plan not known |
| Has official SDKs | plan not known |
| Has single sign-on | Enterprise plan, priced by sales4 |
Alternatives
The same job
These do what OpenCode does.
- Codex Lightweight coding agent that runs in your terminal
- Kilo Code The open source coding agent for building with AI in VS Code, JetBrains, or the CLI
- Codewhale Open source terminal coding agent for any model
- DeepSeek Harness DeepSeek Harness: Everything is a Plugin.
- GitHub Copilot Move from a single task to a project spanning repositories without losing context.
- Claude Code An agentic coding tool that reads your codebase, edits files, runs commands, and integrates with your development tools
