> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mossx.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenCode

> Detect and use local opencode. The plugin only detects. It does not install for you.

OpenCode uses local `opencode`. Login and sessions follow OpenCode’s own config (usually `~/.config/opencode/opencode.json`).

Open **Settings → Provider management → CLI** and confirm OpenCode shows **Installed**. The plugin **does not** install it for you, and it does not edit `opencode.json`.

<img src="https://mintcdn.com/mossx-docs/kz4nt5KFSKzkAZwe/images/jetbrains/provider-cli.png?fit=max&auto=format&n=kz4nt5KFSKzkAZwe&q=85&s=eab9bf7003e5c4031402aa29cfb17c5a" alt="CLI detection page" width="100%" data-path="images/jetbrains/provider-cli.png" />

## Install

```bash theme={null}
curl -fsSL https://opencode.ai/install | bash
opencode --version
```

Alternative:

```bash theme={null}
npm install -g opencode-ai
```

Docs: [https://opencode.ai/docs/](https://opencode.ai/docs/)

After install, go back to the CLI page and click **Detect again**. If the command is not found, set `OPENCODE_BIN` / `OPENCODE_PATH` / `OPENCODE_CLI_PATH`, or add `~/.opencode/bin` to the system `PATH`.

## Capability differences

Compared with Claude Code:

* No plan mode
* MCP / Skills / some Settings pages are centered on Claude Code
* Stop ends the `opencode` child process
* History is isolated by runtime
* Prompt enhancer and Commit AI can use a one-shot CLI question

## If detection fails

See [Detect and install](/en/jetbrains/providers/cli).

## Next steps

* [Provider overview](/en/jetbrains/providers/overview)
* [Send the first message](/en/jetbrains/start/first-task)
