anomalyco/opencode
opencode
The open source coding agent.
GitHub metrics
- Stars
- 229K
- +2.4K this week
- Forks
- 31K
- 30-day growth
- —
- Open issues
- 2.8K
| Day | GitHub stars |
|---|---|
| 2026-11-13 | 226224 |
| 2026-11-23 | 228652 |
What it does
OpenCode is an open source coding agent that works on your code from a terminal interface, a desktop app or a web app. It is MIT-licensed, written mostly in TypeScript, and published by the anomalyco organization on GitHub.
The agent does not come with one fixed model. OpenCode carries a provider and model catalog from models.dev: you run /connect, pick a provider, enter its credentials, then choose a model with /models. The provider docs cover signing in with a ChatGPT Plus or Pro plan, GitHub Copilot through device OAuth, custom OpenAI-compatible endpoints, and local models served by Ollama, which OpenCode finds without an account connection. Two paid options from the same team are optional: OpenCode Console, and OpenCode Go at $10 per month.
Work happens through agents. Build is the default and may use tools and reach outside the workspace. Plan explores and plans without editing normal project files. Two subagents, General and Explore, handle research and code search in child sessions. You can add your own agents as Markdown files that hold a system prompt, a model preference and permission rules, then extend the setup with plugins, MCP servers and custom commands. The README labels the desktop app as beta.
Why it matters
OpenCode keeps the agent and the model separate. One tool can run against a ChatGPT plan, a GitHub Copilot seat, credentials for a catalog provider, a custom OpenAI-compatible endpoint or a local Ollama server, and `/models` switches between them. Permissions are explicit as well: each agent carries allow, ask and deny rules for actions such as edits and shell commands, so a read-only reviewer and a full-access builder can sit side by side in one project.
Main features
- Terminal interface, desktop app (beta) and a web interface opened with `opencode pair`
- Built-in Build and Plan agents, switched with the Tab key
- General and Explore subagents that run in child sessions
- Custom agents defined in Markdown or JSONC with per-agent permissions
- Provider and model catalog from models.dev, connected with `/connect`
- Ollama models on the local machine are discovered without an account
- Plugins, MCP servers and custom commands
- Docker images published with versioned tags
Who it's for
- Developers who want a terminal coding agent that is not tied to one model provider
- People who already pay for ChatGPT Plus or Pro, or have GitHub Copilot access, and want to use that plan
- Developers running local models through Ollama
- Teams that want project-level agents with their own permission rules
Strengths
- Built-in support for many LLM providers, plus custom OpenAI-compatible endpoints
- Can run against local Ollama models without an account connection
- Permission rules per agent: allow, ask or deny by action and resource
- Frequent releases: 36 in the 90 days before 2026-11-12
Limitations
- The desktop app is labeled beta
- Windows package managers are not supported; the docs offer standalone Windows binaries
- The default Build agent allows tools and access outside the workspace unless you change its permissions
- ChatGPT plan sign-ins cap the context window below each model's real limit by default
Getting started
The README lists an install script and several package managers; the script puts OpenCode in $HOME/.opencode/bin, and the README recommends the project's own Homebrew tap over the official formula because it is always up to date. The desktop app installs separately, as the Homebrew cask in the last line.
curl -fsSL https://opencode.ai/v2/install | bash
npm i -g @opencode/cli@latest
brew install anomalyco/tap/opencode-v2
brew install opencode
brew install --cask opencode-desktop
Requirements: macOS, Linux or Windows (the docs offer standalone binaries for each); credentials for a model provider or a local Ollama server. The docs do not state minimum OS versions or hardware.
Always follow the official instructions in the README on GitHub. This overview is our summary, not a copy.
Sources
- anomalyco/opencodeRepositoryPrimarygithub.com
- OpenCode | The open source coding agent for any modelOfficial sitePrimaryopencode.ai
- opencode.ai/docsWeb
- raw.githubusercontent.com/anomalyco/opencode/dev/LICENSEWeb
- opencode.ai/docs/providersWeb
- opencode.ai/docs/agentsWeb


