docs/guides/long-running-ai-agent.md
nanobot can keep agent work alive across turns through sustained goals, persistent sessions, scheduled automations, local triggers, and a gateway process that stays running.
Use this when the task is not a one-shot answer: project work, recurring checks, scheduled summaries, file maintenance, multi-step research, or local triggers from scripts and build jobs.
python -m pip install nanobot-ai
nanobot onboard --wizard
nanobot agent -m "Hello!"
Start a gateway:
nanobot gateway
From the WebUI or a chat session, start a sustained goal:
/goal Review this workspace, identify missing tests, and propose the smallest next fix.
For scheduled or trigger-based runs, create the automation from the target chat so nanobot can link it to the correct session and workspace.