Espelho do repositório github do OpenCode
Find a file
2026-10-02 00:42:49 +00:00
.github chore(ci): remove unused ffmpeg install (#52547) 2026-10-01 23:38:06 +05:30
.husky refactor: restrict reflective access (#48860) 2026-09-13 17:08:43 -04:00
.opencode refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
.vscode docs(contributing): Add "Setting up a Debugger" section (#4421) 2025-11-17 14:28:06 -06:00
.zed app: refactor server management backend (#13813) 2026-02-18 23:03:24 +08:00
artifacts fix(session-ui): group file tool diffs (#48932) 2026-09-14 15:37:56 +08:00
github refactor(sdk): remove local legacy package 2026-07-26 02:47:43 -04:00
infra feat(app): configure initial servers and add QR pairing (#47799) 2026-09-08 14:32:17 +08:00
nix chore: update nix node_modules hashes 2026-10-01 19:19:55 +00:00
packages fix(ai): isolate Groq and Vertex metadata keys (#52598) 2026-10-01 19:24:08 -05:00
patches fix(core): install git plugins from branch subdirectories (#50754) 2026-09-23 04:21:36 +05:30
perf Skip git setup for processor tool test (#28406) 2026-05-19 18:09:15 -04:00
script refactor(app): move GUI features into built-in extensions (#52369) 2026-10-01 15:17:55 +10:00
sdks/vscode sync release versions for v2.0.21 2026-09-30 23:02:16 +00:00
services docs(websearch): include TinyFish provider (#52604) 2026-10-01 19:34:42 -05:00
specs/v2 feat(core): identify the client on Console requests (#50896) 2026-09-23 07:09:19 -05:00
.dockerignore feat: initial datalake and stats site (#28666) 2026-05-25 17:34:04 -05:00
.editorconfig chore: add .editorconfig (#536) 2025-06-29 21:12:58 -04:00
.gitattributes test(ci): register omitted V2 unit suites (#45970) 2026-08-28 21:58:54 +00:00
.gitignore feat(release): add interactive review 2026-09-13 22:22:27 -04:00
.gitleaksignore Add native LLM core foundation (#24712) 2026-05-08 16:56:20 -04:00
.oxlintrc.json refactor(app): move GUI features into built-in extensions (#52369) 2026-10-01 15:17:55 +10:00
.prettierignore fix(client): exclude generated files from formatting (#33832) 2026-06-25 07:53:00 -04:00
AGENTS.md refactor(core): cleanup session compaction (#51447) 2026-09-26 00:00:11 -05:00
bun.lock chore(acp): bump @agentclientprotocol/sdk to 1.6.0 (#52559) 2026-10-02 00:38:00 +05:30
bunfig.toml refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
CONTRIBUTING.md docs: update contributing guide 2026-08-14 20:54:35 -04:00
flake.lock chore(nix): update nixpkgs for Bun 1.4 (#50221) 2026-09-27 21:34:52 -05:00
flake.nix fix(nix): drop x86_64-darwin target and unblock flake eval on nixpkgs 26.11 (#52129) 2026-10-01 01:55:00 -05:00
install fix(install): use latest release channel (#49261) 2026-09-15 21:30:38 -05:00
LICENSE docs: cleanup casing 2025-06-20 15:35:25 -05:00
package.json refactor(app): move GUI features into built-in extensions (#52369) 2026-10-01 15:17:55 +10:00
README.ar.md ignore: cleanup readme (#28049) 2026-05-17 11:26:23 -05:00
README.bn.md ignore: cleanup readme (#28049) 2026-05-17 11:26:23 -05:00
README.br.md ignore: cleanup readme (#28049) 2026-05-17 11:26:23 -05:00
README.bs.md ignore: cleanup readme (#28049) 2026-05-17 11:26:23 -05:00
README.da.md ignore: cleanup readme (#28049) 2026-05-17 11:26:23 -05:00
README.de.md ignore: cleanup readme (#28049) 2026-05-17 11:26:23 -05:00
README.es.md ignore: cleanup readme (#28049) 2026-05-17 11:26:23 -05:00
README.fr.md ignore: cleanup readme (#28049) 2026-05-17 11:26:23 -05:00
README.gr.md ignore: cleanup readme (#28049) 2026-05-17 11:26:23 -05:00
README.it.md ignore: cleanup readme (#28049) 2026-05-17 11:26:23 -05:00
README.ja.md ignore: cleanup readme (#28049) 2026-05-17 11:26:23 -05:00
README.ko.md ignore: cleanup readme (#28049) 2026-05-17 11:26:23 -05:00
README.md docs: point v2 readme to v2 installs 2026-10-02 00:42:49 +00:00
README.no.md ignore: cleanup readme (#28049) 2026-05-17 11:26:23 -05:00
README.pl.md ignore: cleanup readme (#28049) 2026-05-17 11:26:23 -05:00
README.ru.md ignore: cleanup readme (#28049) 2026-05-17 11:26:23 -05:00
README.th.md ignore: cleanup readme (#28049) 2026-05-17 11:26:23 -05:00
README.tr.md ignore: cleanup readme (#28049) 2026-05-17 11:26:23 -05:00
README.uk.md ignore: cleanup readme (#28049) 2026-05-17 11:26:23 -05:00
README.vi.md ignore: cleanup readme (#28049) 2026-05-17 11:26:23 -05:00
README.zh.md chore: merge dev into v2 (#35591) 2026-07-06 16:05:29 -05:00
README.zht.md chore: merge dev into v2 (#35591) 2026-07-06 16:05:29 -05:00
screenshot-uk.png feat(i18n): add Ukrainian (uk) locale support (#28061) 2026-05-19 14:45:39 +08:00
SECURITY.md docs: add policy about AI-generated security reports 2026-02-18 09:15:18 -05:00
sst-env.d.ts zen: track model tier in stats 2026-06-24 14:34:58 -04:00
sst.config.ts feat(infra): deploy beta web app with SST (#46086) 2026-08-29 14:51:22 +10:00
STATS.md ignore: update download stats 2026-01-29 2026-01-29 12:07:50 +00:00
tsconfig.json sync 2025-09-27 04:10:56 -04:00
turbo.json fix(cli): reuse core declarations during typecheck (#51165) 2026-09-24 13:16:46 -04:00
V2_HTTP_API_AUDIT.md feat(server): expose server info endpoint 2026-09-16 21:43:58 -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