Tested on Ubuntu 22.04+, Fedora 39+, and Arch.
- Terminal: any modern emulator works (GNOME Terminal, Konsole, WezTerm, Alacritty, Ghostty, Kitty).
- git:
git --version. Install via your package manager (sudo apt install git,sudo dnf install git,sudo pacman -S git). - Node.js 20+ (only needed for the
npminstall path):node --version. Install via nvm for the smoothest experience across distros.
Pick one of the following.
Universal installer (recommended):
curl -fsSL https://opencode.ai/install | bashThe script downloads a native binary, places it in ~/.local/bin (or similar), and patches your shell config. Restart your shell or source ~/.bashrc / ~/.zshrc after installation.
Arch (AUR):
paru -S opencode-bin # or yay -S opencode-binHomebrew on Linux:
brew install anomalyco/tap/opencodenpm (any distro):
npm install -g opencode-aiopencode --versionIf you see command not found, make sure ~/.local/bin is on your PATH (the installer adds this for most shells — restart the terminal).
opencodeIn the TUI, connect to opencode zen so you can use the free model tier:
- Type
/connectand select opencode zen. - Complete the browser auth flow.
- Press
f2(or type/models) and pick a free model —big-pickleis a solid default. - Send a test prompt:
list the largest files in this folder.
- Keybindings:
commands.md - Model comparison:
models.md - Slides:
../slides/opencode_session_one.md