docs/guides/build-a-personal-ai-agent.md
This guide builds a personal AI agent you can run locally, talk to from the terminal or browser, and later connect to chat apps, memory, tools, and automations.
Use this when you want a personal AI agent that you control rather than a hosted chat-only interface. nanobot is useful when the agent needs local workspace access, tool calls, session history, memory, scheduled work, or chat app delivery.
python -m pip install nanobot-ai
nanobot onboard --wizard
The wizard creates ~/.nanobot/config.json and helps you choose a provider and
model. If terminals and config files are new to you, use
Start Without Technical Background
instead.
First prove the runtime can answer:
nanobot agent -m "Hello!"
Then open the browser workbench:
nanobot webui
The WebUI starts the local gateway, opens a browser, and keeps persistent chat sessions for longer work.
modelPresets when you want stable names for fast, deep, local, or
fallback models.nanobot gateway running for WebUI, chat apps, automations, and the
WebSocket channel.allowFrom only for static
allowlists, and keep those lists narrow.nanobot status shows the config path, workspace path, and active model.nanobot agent -m "Hello!" fails, fix provider setup before opening the
WebUI or chat apps.