WSL2 is strongly recommended. opencode's TUI and tooling assume a Unix-like shell. The native Windows install works for most tasks, but a few features and many terminal emulators behave better inside WSL2 Ubuntu.
- Terminal: Windows Terminal (built-in on Win11). Inside it, prefer a WSL Ubuntu profile.
- WSL2 (recommended): open PowerShell as admin and run
wsl --install. Reboot, then launch Ubuntu and create a user. - git: inside WSL run
sudo apt install git -y; on native Windows install Git for Windows. - Node.js 20+ (only for the
npminstall path): inside WSL use nvm; on native Windows use Volta or the Node.js MSI.
Open your Ubuntu shell and follow the Linux instructions — universal installer is easiest:
curl -fsSL https://opencode.ai/install | bashOr:
npm install -g opencode-aiScoop:
scoop install opencodeChocolatey:
choco install opencodenpm:
npm install -g opencode-aiopencode --versionIf WSL says command not found, restart the shell so the updated PATH is picked up. On native Windows, open a new PowerShell window.
opencodeIn the TUI, connect to opencode zen to access free models:
- Type
/connectand pick opencode zen. - Complete the browser auth flow.
- Press
f2(or type/models) and select a free model —big-pickleis a good default. - Send a test prompt:
what files are in this folder?.
- Keybindings:
commands.md - Model comparison:
models.md - Slides:
../slides/opencode_session_one.md