OpenCode

How to fix OpenCode command not found

Confirm the CLI is installed, then check that the current terminal can find it.

Start with these checks

The terminal cannot find the OpenCode CLI.

  • opencode --version returns command not found.
  • OpenCode is not installed
  • Install OpenCode using its official docs
command not found

01

Separate missing installation from PATH

A command not found message cannot be detected or fixed by this page; install OpenCode using its official method first.

02

Reload the terminal environment

Open a new terminal after installation and run the version command so the new PATH is loaded.

  1. 1Install OpenCode using its official docs
  2. 2Close and reopen the terminal

03

Return to setup

Once a version appears, continue to model configuration. If it still fails, record the install method and shell.

  1. 1Close and reopen the terminal
  2. 2Run opencode --version again

If it is still not fixed

Sources

Reconfigure

Return to the integration center and continue the setup steps.

Return to the related setup step