// guides · 04

Troubleshooting

The first command when something's off is okami doctor — it checks providers, keys, connectivity, toolchain, SQLite FTS5, the embedder and the sandbox. Here are the…

Install and PATH

symptomcause · fix
okami not foundPATH doesn't have the binary yet → reopen the terminal
Windows long-pathrunning from source without uv → use a short venv, e.g. C:\okv
no Pythonnot needed: the installer uses uv, which downloads Python 3.11+

Provider authentication

symptomfix
claude_cli not readyinstall and log in to the official claude CLI
codex not authedrun okami login codex (device flow)
minimax not authedrun okami login minimax
mimo missing keyset MIMO_API_KEY in .env
"missing auth" in doctorokami auth list shows kind/status/where the credential lives

Memory and embeddings

symptombehavior · fix
SQLite FTS5 missingmemory falls back to LIKE → use a Python with FTS5
embedder offlinedegrades to BM25 automatically (fine, won't break)
honcho offlineokami memory list warns about the degraded layer

Sandbox and shell

Chat, gateway and API

symptomfix
TUI won't openfalls back to the REPL automatically; force with --no-tui
gateway "already running"okami gateway --stop then boot again
bot answers no onedeny-by-default → set channels.telegram.allow_chats
API refuses (no token)okami config set OKAMI_API_TOKEN <token>
off doesn't allow alloff mode is fail-closed: no prompt = deny the sensitive action

Skills

Structured diagnostics

okami doctor          # human-readable diagnosis
okami doctor --fix    # stale lock, .env perms, temp files
okami doctor --json   # report for CI/monitoring
okami doctor --lint   # security-posture lint

Open this page in the interactive docs