OpenCode on Windows
Recommended: Use WSL
For the best experience on Windows, we recommend using Windows Subsystem for Linux (WSL). It provides better performance and full compatibility with OpenCode’s features.
Installation Methods on Windows
Recommended:
winget install --id SST.opencode --accept-source-agreements --accept-package-agreements
Refresh PATH afterwards (Machine + User). CLI id: SST.opencode. Desktop: SST.OpenCodeDesktop.
Using Chocolatey
Terminal window
choco install opencodeUsing Scoop
Terminal window
scoop install opencodeUsing NPM
Terminal window
npm install -g opencode-aiUsing Mise
Terminal window
mise use -g github:anomalyco/opencodeUsing Docker
Terminal window
docker run -it --rm ghcr.io/anomalyco/opencode
Support for installing OpenCode on Windows using Bun is currently in progress.
You can also grab the binary from the Releases.
Windows-Specific Considerations
While OpenCode can run on Windows, using WSL is recommended for:
- Better performance
- Full compatibility with all features
- Consistent Linux-like environment
- Access to Unix-based tools and utilities
If you choose to run OpenCode natively on Windows, be aware that some features may have limited functionality or require additional configuration.