OpenCode Deployment Guide
| Resource | URL |
|---|---|
| Official docs | OpenCode Docs |
| Windows WSL | OpenCode Windows WSL |
OpenCode is a terminal-based AI coding tool. Running opencode starts its TUI for code reading, editing, and project automation.
macOS / Linux
Official install script:
sh
curl -fsSL https://opencode.ai/install | bashUsing npm:
sh
npm install -g opencode-aiUsing Homebrew:
sh
brew install anomalyco/tap/opencodeArch Linux:
sh
sudo pacman -S opencode
paru -S opencode-binWindows
OpenCode recommends WSL on Windows. After installing WSL, run this in the WSL terminal:
sh
curl -fsSL https://opencode.ai/install | bashFor native Windows installs, choose one of these paths:
powershell
choco install opencode
scoop install opencode
npm install -g opencode-aiVerify And Start
sh
opencode --version
cd /path/to/your/project
opencodeOnce inside the TUI, initialize the project with:
txt
/initThis lets OpenCode analyze the project and create a project instruction file for future sessions.