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
CLIEditors’ pick

Broad access

Why this level

  • In build mode it edits files and runs shell commands
  • Sends project code to the chosen model provider
All reasons and checks

anomalyco/opencode

Install

Works in

In your terminal, with SkillFoxx CLI

npx skillfoxx add cli/opencode

Detects the agents on your machine, shows the access level and pins the version.

Other ways to install

Access and checks

How we review

Broad 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 module

Limitations

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.

CLI tools

Orchestrator plugin for OpenCode and Codex CLI: multiple agents, hooks, built-in MCPs, ultrawork mode and hash-anchored edits

PluginBroad access70.5KRepository stars

An open coding agent for the terminal, browser and desktop that works with models from OpenAI and Claude to Ollama

CLIBroad access359Repository stars

A teaching terminal coding agent in Python, built as a "nanoGPT for agents": read it, take it apart and fork it

CLIBroad access1.9KRepository stars

A local context store for coding agents that captures project knowledge and reuses it across Codex, Claude Code and OpenCode

CLIExtended access1.3KRepository stars
Editors’ pick

OpenAI's coding agent that runs locally in your terminal, with IDE and desktop versions

CLIBroad access131.6KRepository stars

A terminal coding agent built on Codex, tuned for low-cost open models like Kimi K3, DeepSeek and Qwen

CLIExtended access68.7KRepository stars

Comparison with similar tools

Entries that share the main search query, and how they differ.

EntryOfficialRepository starsMain difference
OpenCode (this entry)no223,136
Antigravity CLIyes2,664google's terminal AI agent
OpenCode Telegram Botno1,297a Telegram bot for OpenCode
ForgeCodeno7,637a 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.

README badge

Report a problem

Foxx AIOpenCode
Foxx AI

I am Foxx AI and I have already vetted this tool. Ask about install, setup or anything else, and I will keep it simple.