anomalyco/opencode
The open source coding agent.
What it is
OpenCode is an open-source AI coding agent — a tool that helps you write and work with code using AI, designed to run in your terminal. It's distributed as a command-line tool and also has a desktop app in beta.
How to install
The README lists several ways to get it:
- One-line script ("YOLO" method):
curl -fsSL https://opencode.ai/v2/install | bash— this installs to$HOME/.opencode/bin - Package managers: npm (
@opencode/cli), Homebrew (two options: a recommended always-up-to-date tap and an official formula), Arch Linux's pacman and AUR,mise, and Nix - Desktop app (beta): downloadable from opencode.ai/download for macOS (Apple Silicon and Intel), Windows, and Linux (.deb, .rpm, or .AppImage). macOS users can also
brew install --cask opencode-desktop
A tip in the README suggests removing versions older than 0.1.x before installing.
Built-in agents
OpenCode ships with two agents you can switch between using the Tab key:
- build — the default, full-access agent for development work
- plan — a read-only agent for analysis and exploration. It denies file edits by default and asks permission before running bash commands, making it good for exploring unfamiliar codebases or planning changes
There's also a general subagent used internally for complex searches and multistep tasks, which you can invoke by typing @general in messages.
Documentation & contributing
- Full configuration docs live at opencode.ai/docs
- Contributors should read
CONTRIBUTING.mdbefore submitting a pull request - The README includes a branding note: if you build a project using "opencode" in its name (e.g., "opencode-dashboard"), you should add a note to your README clarifying it's not built by or affiliated with the OpenCode team
Community
The project links to a Discord server and an X.com account for community discussion.
Related
- Project
- Project
- Project
- Project
- Project