Skip to content

Installation

Opencode is distributed as a single binary. It supports macOS, Linux, and Windows (via WSL2).

Official Install Script

The recommended way to install is via our shell script. It detects your OS and architecture, downloads the correct binary, and adds it to your PATH.

curl -sL opencode.ai/install | bash

Manual Installation

You can also download binaries directly from our GitHub Releases page.

macOS (Apple Silicon)

wget https://github.com/anomalyco/opencode/releases/latest/download/opencode-darwin-arm64
chmod +x opencode-darwin-arm64
mv opencode-darwin-arm64 /usr/local/bin/opencode

Docker

For sandboxed environments, you can run Opencode in a Docker container.

docker run -it -v $(pwd):/app anomalyco/opencode:latest