mirror of
https://github.com/hanzoai/bot.git
synced 2026-10-30 17:24:26 +00:00
2.1 KiB
2.1 KiB
summary, read_when, title
| summary | read_when | title | ||
|---|---|---|---|---|
| CLI reference for `hanzo-bot doctor` (health checks + guided repairs) |
|
doctor |
hanzo-bot doctor
Health checks + quick fixes for the gateway and channels.
Related:
- Troubleshooting: Troubleshooting
- Security audit: Security
Examples
hanzo-bot doctor
hanzo-bot doctor --repair
hanzo-bot doctor --deep
Notes:
- Interactive prompts (like keychain/OAuth fixes) only run when stdin is a TTY and
--non-interactiveis not set. Headless runs (cron, Telegram, no terminal) will skip prompts. --fix(alias for--repair) writes a backup to~/.bot/bot.json.bakand drops unknown config keys, listing each removal.- State integrity checks now detect orphan transcript files in the sessions directory and can archive them as
.deleted.<timestamp>to reclaim space safely. - Doctor includes a memory-search readiness check and can recommend
hanzo-bot configure --section modelwhen embedding credentials are missing. - If sandbox mode is enabled but Docker is unavailable, doctor reports a high-signal warning with remediation (
install Dockerorhanzo-bot config set agents.defaults.sandbox.mode off). - If an OpenClaw install is present (
$OPENCLAW_STATE_DIR,~/.openclawor a Clawdbot-era~/.clawdbot), doctor points athanzo-bot migrate openclawand warns when OpenClaw's gateway service is still installed. It does this before abot.jsonexists, too. A gateway service that runs OpenClaw is listed as OpenClaw's and never removed, even under a Clawdbot-era label. See Migrate from OpenClaw.
macOS: launchctl env overrides
If you previously ran launchctl setenv BOT_GATEWAY_TOKEN ... (or ...PASSWORD), that value overrides your config file and can cause persistent “unauthorized” errors.
launchctl getenv BOT_GATEWAY_TOKEN
launchctl getenv BOT_GATEWAY_PASSWORD
launchctl unsetenv BOT_GATEWAY_TOKEN
launchctl unsetenv BOT_GATEWAY_PASSWORD