docs/guides/deploy-nanobot-gateway.md
The nanobot gateway is the long-running self-hosted AI agent process that keeps WebUI sessions, chat apps, automations, local triggers, heartbeat jobs, Dream, and WebSocket delivery online.
Use this when nanobot should keep running after a single CLI turn. Chat apps, browser sessions, background automations, local triggers, and server-side integrations all depend on a live gateway.
python -m pip install nanobot-ai
nanobot onboard --wizard
nanobot status
nanobot agent -m "Hello!"
Run the gateway in the foreground:
nanobot gateway
For WebUI background usage:
nanobot webui --background
nanobot gateway status
nanobot gateway logs
config.json.18790,
WebUI/WebSocket defaults to 8765, and nanobot serve defaults to 8900.--config and --workspace flags for status checks and service
startup.docker compose logs, journalctl, LaunchAgent logs, or
nanobot gateway --verbose.