anomalyco /
opencode
Open source AI coding agent for your terminal, with a beta desktop app
- 220.3k stars
- 8.9k stars since 3 Oct
- TypeScript
- Updated today
- Beginner friendly
- Coding agents & dev tools
OpenCode is an AI coding agent. You talk to it in a terminal interface, and it helps with development work such as reading code, planning changes and running commands. A desktop app is also available as a beta.
It ships with two built-in agents you switch between with the Tab key. The build agent has full access and is the default. The plan agent is read-only. It denies file edits by default and asks before running bash commands, which suits exploring code you don't know yet.
There is also a general subagent for complex searches and multistep tasks. OpenCode uses it internally, and you can call it with @general in a message. The README doesn't compare OpenCode with other coding agents. It leaves configuration, such as model providers, to the separate docs site.
What it does
Build and plan agents
Build is the default agent with full access for development work. Plan is read-only and asks permission before running bash commands. Press Tab to switch.
General subagent
A helper for complex searches and multistep tasks. You can invoke it with @general in your messages.
Many ways to install
Use an install script, npm, bun, pnpm, yarn, Homebrew, Scoop, Chocolatey, pacman, mise or nix. The script lets you choose the install directory.
Desktop app (beta)
Downloads exist for macOS (Apple Silicon and Intel), Windows and Linux (.deb, .rpm, .AppImage).
What you could build
- Explore an unfamiliar codebase safely with the read-only plan agent.
- Plan a change to a project before letting an agent edit any files.
- Hand everyday development tasks to the build agent from your terminal.
- Delegate complex searches across a codebase to the general subagent.
Get started
Install it with the script or your preferred package manager, then run it inside a project folder. Start with the plan agent if you want to look around before allowing edits. Check the docs site for configuration.
curl -fsSL https://opencode.ai/install | bashnpm i -g opencode-ai@latestbrew install anomalyco/tap/opencodeCommands are copied from the project's README. Read it on GitHub for the full setup.
Anything better than opencode?
OpenCode is the strongest pick for a provider-neutral, open-source terminal coding agent, with the most stars and strong momentum. Look elsewhere if you want a vendor-backed agent tied to one subscription (Codex, Claude Code) or a minimal, hackable core (Pi).
-
codexAlternative Pick it if you already pay for ChatGPT and want OpenAI's own agent, sandboxing and updates, with sign-in using your plan. Trade-off: It is built around OpenAI models and has less provider freedom than OpenCode.
-
claude-codeAlternative Pick it if you use Claude models and want the vendor's agent, with IDE integrations and @claude on GitHub. Trade-off: It is tied to Anthropic models and accounts, and is not fully open source.
-
piAlternative Pick it if you want a small core agent you reshape yourself with extensions, skills and themes instead of built-in features. Trade-off: It needs more setup and tinkering, and is aimed at intermediate users.
-
t3codeUse alongside Use both to control OpenCode alongside other agents like Claude Code or Codex from one desktop, web or phone interface. Trade-off: It adds another layer on top of your agents and is less mature.
More in Coding agents & dev tools
rea
MCP server that lets AI agents reverse engineer apps, binaries and websites locally