An open-source coding agent with a desktop app, a terminal UI, and a local web interface.
Open-source alternative to Claude Code
An open-source coding agent with a desktop app, a terminal UI, and a local web interface. You can use free or local models, or connect it to more than 200 providers, including Claude, GPT, and Gemini. It started as a terminal agent from Anomaly and now also ships apps for Windows, macOS, and Linux, so it can edit files and run commands in a folder you choose.
READMEanomalyco/opencode on GitHub
# YOLO
curl -fsSL https://opencode.ai/v2/install | bash
# Package managers
npm i -g @opencode/cli@latest # or bun/pnpm/yarn
brew install anomalyco/tap/opencode-v2 # macOS and Linux (recommended, always up to date)
brew install opencode # macOS and Linux (official brew formula, updated less)
sudo pacman -S opencode # Arch Linux (Stable)
paru -S opencode-beta # Arch Linux (Latest from AUR)
mise use -g opencode # Any OS
nix run github:anomalyco/opencode # Nix
Tip Remove versions older than 0.1.x before installing.
OpenCode is also available as a desktop application. Download it from opencode.ai/download.
| Platform | Download |
|---|---|
| macOS (Apple Silicon) | opencode-desktop-mac-arm64.dmg |
| macOS (Intel) | opencode-desktop-mac-x64.dmg |
| Windows | opencode-desktop-win-x64.exe |
| Linux | .deb, .rpm, or .AppImage |
# macOS (Homebrew)
brew install --cask opencode-desktop
The install script installs OpenCode to $HOME/.opencode/bin.
OpenCode includes two built-in agents you can switch between with the Tab key.
Also included is a general subagent for complex searches and multistep tasks.
This is used internally and can be invoked using @general in messages.
Learn more about agents.
For more info on how to configure OpenCode, head over to our docs.
If you're interested in contributing to OpenCode, please read our contributing docs before submitting a pull request.
If you are working on a project that's related to OpenCode and is using "opencode" as part of its name, for example "opencode-dashboard" or "opencode-mobile", please add a note to your README to clarify that it is not built by the OpenCode team and is not affiliated with us in any way.
With desktop installers for Windows, macOS and Linux, plus CLI binaries and a local web UI via `opencode pair`.
Last updated from GitHub: 2 hours ago
GitHub numbers are refreshed a few times a day.
The chart fills in as daily star counts are collected.
Every open-source alternative to Claude Code listed here, side by side. Click a column to sort.
Log in or create an account to comment.
No comments yet. Be the first.
Show it off: a live card with your rank and rating, updated by itself.
Prefer the small one? Add ?style=flat