This file contains quick steps to install the OpenCode terminal UI (TUI) and the OpenCode VS Code GUI extension for VS Code Insiders.
Run the automated install script (works on macOS, Debian/Ubuntu, Fedora/RHEL):
./scripts/install-opencode.shThe script will:
- Detect your OS and install/verify prerequisites (Homebrew on macOS, Docker, VS Code Insiders)
- Install the OpenCode TUI
- Install the OpenCode VS Code GUI extension
- Update your shell configuration
Then reload your shell:
exec zsh -lVerify the installation:
opencode --versionPrerequisites
- Docker (optional for other workflows)
- VS Code Insiders (for the GUI extension)
- Homebrew (recommended on macOS) or apt/dnf for Linux
Run the official installer (this downloads the CLI and installs it):
curl -fsSL https://opencode.ai/install | bashAfter install, verify:
opencode --version
opencode --helpOption A — from VS Code UI:
- Open Extensions (Cmd+Shift+X)
- Search for "OpenCode" or use the extension id
tanishqkancharla.opencode-vscode - Click Install
Option B — from the command line (VS Code Insiders):
# install via CLI (use `code-insiders` for VS Code Insiders)
code-insiders --install-extension tanishqkancharla.opencode-vscode --forceAfter the TUI install, reload your shell so opencode is on your PATH:
exec zsh -l
# or just open a new terminal tab- Open your project in VS Code Insiders
- Launch the OpenCode TUI in your terminal:
opencode- Use the OpenCode GUI sidebar/commands in VS Code to start sessions, or run the TUI and keep the IDE for editing.
- If you host models locally (Ollama), configure OpenCode to point at the local endpoint in
~/.config/opencode/configor via environment variables (see https://opencode.ai/docs). - The devcontainer in this repo already lists the GUI extension under
.devcontainer/devcontainer.jsonso the extension will be recommended when opening in a container. - The
scripts/install-opencode.shautomates the entire setup and works cross-platform (macOS, Debian/Ubuntu, Fedora/RHEL).