Skip to content

Installation

OpenCode has a terminal interface, a desktop version, and extensions for different IDEs, although it is recommended to use the terminal version as it is more optimized than the other versions

Desktop Installation (Beta Version)

Download directly from their website according to your operating system.

Terminal Version (TUI) Installation

For the terminal version, if you use Linux or MacOS then it is pretty straightforward, but in case you use Windows, you need to have npm or bun.

Run this command for npm

npm i -g opencode-ai

Run this command for bun

bun add -g opencode-ai

Run this command on your terminal

curl -fsSL https://opencode.ai/install | bash

Run this command on your terminal

curl -fsSL https://opencode.ai/install | bash

After successful installation run this to open OpenCode

opencode

Video Reference for Windows TUI Installation (using npm)