* docs: improve readability and remove internal technical details from user docs * docs: expand user-doc cleanup to remote instances, deployment, providers, MCP presets, my-tool, and add concept diagrams * docs: streamline root README and SECURITY guide for readability * docs: move Why nanobot before Start Here and highlight lightweight footprint and WebUI
5.8 KiB
Updating nanobot
Always update nanobot using the same method you used to install it. Do not switch package managers to work around an error.
Update from the WebUI
- Click the update notice in the sidebar, or open Settings → About → Update (opening the dialog only checks for updates—it does not install or restart anything).
- Review the target version and affected gateways. Active tasks must finish before shutdown.
- Click Update & restart. nanobot downloads and verifies the release, backs up affected profiles, installs the update, and restarts your background gateways (not your computer or browser).
- Wait for Update complete, then click Done to reload the interface.
In-app updates work for official-installer environments and supported uv tool installations running a background gateway. Other install methods display exact copy-and-run update commands in the dialog. Remote browsers require explicit package-install permission on the gateway.
Note
Automatic updates verify official release checksums before installing. If verification fails, stay on your current version, retry later, and report persistent errors rather than bypassing verification.
Stable and Preview
Settings → About → Receive preview updates is off by default. Turn it on if you want early access to new features (with a higher risk of bugs). It never downloads or installs updates automatically.
Turning it back off returns you to stable updates without downgrading—if your Preview build is newer than the latest stable release, nanobot stays on it until a newer stable release arrives.
Installation Owners
When in-app updating is unavailable, update on the gateway computer using the original installation method:
| Installation method | How to update |
|---|---|
| Official installer | Use WebUI Update & restart |
uv tool |
Use WebUI Update & restart, or run uv tool upgrade nanobot-ai in the original environment |
pipx |
Run pipx upgrade nanobot-ai (preserve any custom options or injected packages) |
Python virtual environment (pip) |
Run nanobot update or <venv-python> -m pip install --upgrade nanobot-ai (include any extras you originally installed) |
| Source checkout | Pull the latest branch in Git, preserve local changes, and follow CONTRIBUTING.md |
| Docker / Compose | Pull or rebuild the image and recreate the service with your existing data volumes |
For manual updates: stop nanobot, back up your config and workspace, run the update, restart, and verify the running version in Settings → About or nanobot --version.
Recover an Interrupted Update
Closing or refreshing your browser does not stop an in-progress update. If your connection drops, wait for it to reconnect and check status with Check again—do not start a second update while one is already running.
For official-installer environments, nanobot keeps a backup of the previous program before modifying packages. If installation fails, automatic recovery retries once or restores the previous version (without touching your config or conversations) and reports Previous version restored.
Standalone recovery
If automatic recovery fails, the WebUI displays a repair command with the saved job ID. Run it on the gateway computer as the original user (it only requires your base Python 3.11+):
macOS / Linux
python3 -I -S ~/.nanobot/updates/recover.py <job-id>
python3 -I -S ~/.nanobot/updates/recover.py <job-id> --repair
Windows PowerShell
python -I -S "$env:USERPROFILE\.nanobot\updates\recover.py" <job-id>
python -I -S "$env:USERPROFILE\.nanobot\updates\recover.py" <job-id> --repair
The first command inspects the saved job; --repair verifies the files and asks for confirmation before repairing (add --yes to skip the prompt).
Explicit recovery before package mutation
CLI plan inspection and pre-install retry
To inspect an update plan from the CLI without installing anything (plans expire after 15 minutes):
nanobot update --plan
nanobot update --plan --channel preview
If an update failed during shutdown before packages were modified, you can inspect and retry the saved job:
nanobot update --job <plan-id>
nanobot update --job <plan-id> --retry-handoff \
--previous-confirmation <execution-confirmation-id> --confirm-restart
If packages were already partially changed, use Standalone recovery instead.
Version Migration Notes
Upgrading from older JSONL installations (pre-0.4)
0.4.x releases automatically import legacy JSONL chat history and per-feature proxy settings; these importers are scheduled for removal in 0.5.0.
- Stop nanobot and back up your complete config directory and workspace.
- Upgrade to 0.4.x using your original installation method.
- Start nanobot, verify your conversations and shared proxy settings, and confirm a restart works cleanly before eventually upgrading to 0.5.0.
Standalone API service removal
Notes if you previously used nanobot serve or shared sessions
nanobot serveremoved: The standalone OpenAI-compatible/v1HTTP server (nanobot serveand thenanobot-apiCompose service) has been removed. The Gateway, WebUI, Python SDK, and OpenAI-compatible model connections remain supported. Stop any oldnanobot serveprocess ornanobot-apicontainer before upgrading. Oldapiconfig blocks are ignored, and old API sessions (api:...) remain readable via the Python SDK.- Shared sessions removed:
agents.defaults.unifiedSessionis no longer supported and is ignored.
For contributor details on the update protocol, see Update protocol.