# Troubleshooting

| What happened | What to do |
| --- | --- |
| "No provider available" | `openprogram providers` lists stored credentials. `openprogram providers discover` finds Claude Code, Codex and Gemini CLI logins and `env:` keys to adopt. Not logged in: `openprogram providers login <provider>`, or log in to the external CLI. Key set in another shell: adopt it, see [FAQ](https://fzkuji.github.io/OpenProgram/docs/start/faq.html#no-provider). Expired token: log in again; `openprogram providers doctor` checks expiry, refresh and conflicts. |
| "command not found: openprogram" | Run the installer again, then put `~/.local/bin` on `PATH` (below) |
| Web UI port in use | `export OPENPROGRAM_WEB_PORT=8101` before starting, or persist with `openprogram ports --port 8101` |
| Worker does not start, or starts on the wrong port | `openprogram doctor`, then `openprogram rescue`, which prints the fix commands. An App or terminal install checks the Node.js, terminal UI and Web UI it ships and, if one is missing, says to reinstall; npm build commands appear only in a source checkout. Read their output before opening an issue |
| `import openprogram` raises `ModuleNotFoundError` | Product installs use a private Python on purpose. In a source checkout, `uv sync --locked`, then `uv run --project /path/to/OpenProgram python ...`, or activate its `.venv` |

```
curl -fsSL https://fzkuji.github.io/OpenProgram/install | sh
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc
```

**What `openprogram doctor` checks**

Python, Node and git; skill and plugin loading; provider credentials; MCP servers; disk cache; whether the worker is listening on 18100.

The command shell, whether it is sandboxed, and one test command that must return UTF-8 text and its exit code (a failure is advice and blocks nothing).

On Windows, also long-path configuration and a read-only Defender performance advisory. It never changes the registry, Defender exclusions or file ACLs.

**Developing from source**

- Set up with `uv sync --locked --extra dev`. External harness development: [Installing programs](https://fzkuji.github.io/OpenProgram/docs/capabilities/installing-programs.html).
- Some tests skip on bare CI because they need a configured provider in `$HOME`, so a Mac with credentials runs more. Search for `pytest.mark.skipif`.

[Getting started](https://fzkuji.github.io/OpenProgram/docs/start/GETTING_STARTED.html)
