Skip to content

OpenCode not working? What to check, in order

Four checks for OpenCode itself, then what each status and error card in AppuBot means.

By Sarthak Gupta · Updated

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.

The bot editor in AppuBot: name, look, job, instructions, model, permissions, computer use and memory
Every bot has its own job, instructions, model and memory.

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 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 seeWhat it meansWhat to do
Not installedAppuBot can’t find OpenCode on this computerPress Install. AppuBot downloads OpenCode itself, with no terminal
Ready, with "Free models"OpenCode works with its free models and no accountNothing. Press Log in only if you want your own provider’s models
A line in red under the rowOpenCode reported a problem when AppuBot checked itRead the line, fix what it names, then press the refresh button on the row
Update availableA newer OpenCode is outPress Update
"OpenCode (Off)" in the model pickerThe agent is switched offSwitch 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 with AppuBot. More about the pairing in OpenCode in AppuBot.

Sources

Facts about other products are from their makers’ pages as of 25 November 2026 and may have changed since. Product names are trademarks of their owners.

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.

Meet your first bot

An AI teammate that works on your Mac or in the cloud, and tells you on Telegram