# OpenCode not working? What to check, in order

Source: https://appubot.com/guides/opencode-not-working
By Sarthak Gupta. Published 2026-11-25, updated 2026-11-25.

**The short answer:** When OpenCode doesn’t work, check four things in order: that it is installed and prints a version, that its background service is running, that a model provider is connected, and that the model you picked still answers. OpenCode’s own troubleshooting page gives the service commands and the log file. In AppuBot, the OpenCode row in Settings › Agents says which of these is wrong and has a button to fix it.

## Check OpenCode itself first

1. Run opencode --version in a terminal. If nothing answers, OpenCode isn’t installed or isn’t on your PATH; [OpenCode’s docs](https://opencode.ai/docs) have the install commands.
2. Run opencode service status. If the service isn’t running, opencode service restart starts it again.
3. Read the log. OpenCode’s page gives its path as ~/.local/share/opencode/log/opencode.log.
4. Leave the service files and the database alone. OpenCode’s page says not to delete or edit them while troubleshooting.
5. If you report a bug to OpenCode, include the output of the first two commands, as its page asks.

_The service commands, the log path and the warning are from OpenCode’s troubleshooting page for its current version, on the date under Sources. Earlier versions have their own page in OpenCode’s docs._

## Connect a model provider

OpenCode needs a model to talk to. Its docs say to run /connect in OpenCode, choose a provider and enter its credentials, then run /models to pick one of its models. They also describe using a ChatGPT Plus or Pro plan instead of an OpenAI API key, and signing in to GitHub Copilot with a device code.

## If OpenCode isn’t working in AppuBot

Open Settings › Agents and look at the OpenCode row. Its status tells you where the problem is.

| What you see | What it means | What to do |
| --- | --- | --- |
| Not installed | AppuBot can’t find OpenCode on this computer | Press Install. AppuBot downloads OpenCode itself, with no terminal |
| Ready, with "Free models" | OpenCode works with its free models and no account | Nothing. Press Log in only if you want your own provider’s models |
| A line in red under the row | OpenCode reported a problem when AppuBot checked it | Read the line, fix what it names, then press the refresh button on the row |
| Update available | A newer OpenCode is out | Press Update |
| "OpenCode (Off)" in the model picker | The agent is switched off | Switch it on in Settings › Agents |

## When a chat fails

A message that fails in AppuBot becomes a card that says what happened and offers the way out. The agent’s own words stay under the card, which helps when you search for the exact error.

- **"OpenCode isn’t installed on this computer".** Press "Install it".
- **"OpenCode needs you to sign in".** Press "Sign in", or pick another AI for the bot.
- **"That model can’t answer right now".** Pick another model for the bot, then try again. OpenCode’s free models change over time: when one is retired, AppuBot moves the bot to another free model and sends your message again by itself.
- **"OpenCode has reached its limit".** It comes back when the limit resets. Until then, another model or AI can carry on.
- **"OpenCode stopped before it finished".** It starts again with your next message.

## Signing in to your own provider from AppuBot

Press **Log in** on the OpenCode row. A terminal window opens where OpenCode asks which provider to connect. Finish there and AppuBot notices when you are done.

For a model server of your own, such as Ollama, LM Studio or any OpenAI-compatible endpoint, press **Add custom** on the same page. Its models then show in OpenCode’s model list.

## Still stuck?

Two logs help. OpenCode’s is the file named above. AppuBot keeps one of its own for when something goes wrong, and Settings › Storage says how long logs are kept. With the error from either, OpenCode’s maintainers can help with OpenCode, and [we can help](mailto:sarthak@appubot.com) with AppuBot. More about the pairing in [OpenCode in AppuBot](https://appubot.com/agents/opencode).

## Questions

### Why does OpenCode list no models?

The model list in AppuBot is whatever OpenCode offers. If it is empty, press the refresh button on the OpenCode row in Settings › Agents, and use Log in to connect a provider if you want more than the free models.

### Do I need an account to use OpenCode in AppuBot?

No. AppuBot shows OpenCode as ready with free models and no account. You sign in only for your own providers’ models.

### Does OpenCode work on Windows?

OpenCode publishes Windows builds for x64 and Arm, and AppuBot installs OpenCode on Windows, macOS and Linux with the same Install button.

### How do I update OpenCode?

In AppuBot, press Update on the OpenCode row when it shows "Update available", or "Check for updates" at the top of Settings › Agents. A copy you installed another way is updated the way you installed it.

## Sources

Facts about other products as of 2026-11-25.

- [OpenCode docs: troubleshooting](https://opencode.ai/docs/troubleshooting)
- [OpenCode docs: providers](https://opencode.ai/docs/providers)
- [OpenCode docs: intro and install](https://opencode.ai/docs)
