2026-10-01 19:19:55 +00:00
2025-06-29 21:12:58 -04:00
2025-06-20 15:35:25 -05:00
2026-05-17 11:26:23 -05:00
2026-05-17 11:26:23 -05:00
2026-05-17 11:26:23 -05:00
2026-05-17 11:26:23 -05:00
2026-05-17 11:26:23 -05:00
2026-05-17 11:26:23 -05:00
2026-05-17 11:26:23 -05:00
2026-05-17 11:26:23 -05:00
2026-05-17 11:26:23 -05:00
2026-05-17 11:26:23 -05:00
2026-05-17 11:26:23 -05:00
2026-05-17 11:26:23 -05:00
2026-10-02 00:42:49 +00:00
2026-05-17 11:26:23 -05:00
2026-05-17 11:26:23 -05:00
2026-05-17 11:26:23 -05:00
2026-05-17 11:26:23 -05:00
2026-05-17 11:26:23 -05:00
2026-05-17 11:26:23 -05:00
2026-05-17 11:26:23 -05:00
2026-07-06 16:05:29 -05:00
2026-06-24 14:34:58 -04:00
2025-09-27 04:10:56 -04:00

OpenCode logo

The open source AI coding agent.

Discord npm Build status

English | 简体中文 | 繁體中文 | 한국어 | Deutsch | Español | Français | Italiano | Dansk | 日本語 | Polski | Русский | Bosanski | العربية | Norsk | Português (Brasil) | ไทย | Türkçe | Українська | বাংলা | Ελληνικά | Tiếng Việt

OpenCode Terminal UI


Installation

Choose one V2 installation method:

  • Install script: curl -fsSL https://opencode.ai/v2/install | bash
  • npm: npm install -g @opencode/cli
  • Bun: bun install -g --trust @opencode/cli
  • Homebrew: brew install anomalyco/tap/opencode-v2

Tip

Remove a package-managed V1 installation before installing V2; both use the opencode command.

Desktop App (BETA)

OpenCode V2 is also available as a desktop application. Find platform installers in the V2 download guide.

Platform Download
macOS (Apple Silicon) opencode-desktop-mac-arm64.dmg
macOS (Intel) opencode-desktop-mac-x64.dmg
Windows (x64) opencode-desktop-win-x64.exe
Linux .deb, .rpm, or .AppImage

Installation Directory

The V2 install script places the binary in $HOME/.opencode/bin. It does not use OPENCODE_INSTALL_DIR or XDG_BIN_DIR to change that location.

Agents

OpenCode includes two visible primary agents you can switch between with Shift+Tab.

  • build - Default coding agent. Tools are allowed by default; sensitive reads and external paths ask for approval.
  • plan - Explores and plans without editing normal project files. It can write plan files when asked; shell commands follow your configured permissions.

The general subagent handles research and multistep tasks in a child session.

Learn more about agents.

Documentation

For more info on how to configure OpenCode V2, head over to our docs.

Contributing

If you're interested in contributing to OpenCode, please read our contributing docs before submitting a pull request.

Building on OpenCode

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.


Join our community Discord | X.com

S
Description
The open source coding agent.
Readme MIT
573 MiB
0 Stars 1 Watchers 0 Forks
Languages
TypeScript 74.3%
MDX 22.4%
CSS 2.9%
HTML 0.1%
Astro 0.1%