opencode at least once to confirm OpenCode starts correctly.
Environment setup
OpenCode CLI installation
Install OpenCode CLI
OpenCode CLI requires Node.js and npm. After installation, run
If version numbers appear, Node.js and npm are installed.
If Node.js is not installed, refer to the Node.js installation guide, then run the checks again.
Check the installed version:
If the OpenCode chat UI, model information, or command hints appear, the installation succeeded.
