OpenCode CLI
An open source coding agent for the terminal and desktop with build and plan modes
- 223,136 ★ on the repository
- Last commit
- MIT
Broad access
Why this level
- In build mode it edits files and runs shell commands
- Sends project code to the chosen model provider
Install
- Works in
In your terminal, with SkillFoxx CLI
npx skillfoxx add cli/opencodeDetects the agents on your machine, shows the access level and pins the version.
Other ways to install
Access and checks
How we reviewBroad accessThe tool can change data, run commands or handle secrets.
- In build mode it edits files and runs shell commands
- Sends project code to the chosen model provider
This is third-party code. Review the repository files before installing.
What it does
OpenCode runs in the terminal as an agent that reads and edits project code and runs commands. It has two built-in modes switched with Tab: build with full access for development, and read-only plan that does not edit files and asks before running commands. A general subagent handles complex searches and multi-step tasks. Besides the terminal UI there is a desktop app in beta.
Who it is for. For developers who want an open source terminal agent not tied to a single vendor.
Good fit when
- You want an open source coding agent
- You need to explore an unfamiliar codebase safely in read-only mode first
- You want the same agent in the terminal and a desktop app
Not a fit when
- You need an agent built into the IDE without a terminal
- You have no access to any model provider
Example request
Switch to plan mode, study the project structure and propose a refactoring plan for the auth moduleLimitations
The agent is free, but models are connected separately; providers and setup are covered in the docs. Whether it works without a VPN depends on the provider. Build mode gives the agent full file and command access by default. The desktop app is in beta. Versions older than 0.1.x must be removed before installing.
How to disable. Uninstall with the same package manager you used, e.g. npm uninstall -g opencode-ai or brew uninstall opencode.
FAQ
How does plan mode differ from build?
Plan only reads code: file edits are denied and the agent asks before running commands. Build has full access.
Is this the same as opencode-ai/opencode?
No, the old opencode-ai/opencode repository is archived and continued as Crush. This OpenCode previously lived at sst/opencode.
Discussion
No questions or reviews yet.
Related
CLI toolsOrchestrator plugin for OpenCode and Codex CLI: multiple agents, hooks, built-in MCPs, ultrawork mode and hash-anchored edits
An open coding agent for the terminal, browser and desktop that works with models from OpenAI and Claude to Ollama
A teaching terminal coding agent in Python, built as a "nanoGPT for agents": read it, take it apart and fork it
A local context store for coding agents that captures project knowledge and reuses it across Codex, Claude Code and OpenCode
OpenAI's coding agent that runs locally in your terminal, with IDE and desktop versions
A terminal coding agent built on Codex, tuned for low-cost open models like Kimi K3, DeepSeek and Qwen
Comparison with similar tools
Entries that share the main search query, and how they differ.
| Entry | Official | Repository stars | Main difference |
|---|---|---|---|
| OpenCode (this entry) | no | 223,136 | |
| Antigravity CLI | yes | 2,664 | google's terminal AI agent |
| OpenCode Telegram Bot | no | 1,297 | a Telegram bot for OpenCode |
| ForgeCode | no | 7,637 | a terminal coding agent |
README in short
The README lists install options: a script, npm, Homebrew, Scoop, Chocolatey, pacman, mise and Nix, plus desktop builds for macOS, Windows and Linux. It explains install directory resolution and the two built-in modes with the general subagent. Configuration lives in the docs at opencode.ai. The README is translated into about twenty languages, including Russian. MIT licensed.