docs/guides/secure-local-ai-agent.md
This guide covers the practical controls to review before letting a nanobot agent access files, shell commands, web fetch, chat apps, or remote users.
Use this before exposing nanobot to teammates, chat apps, public networks, broad web access, or unattended automations.
python -m pip install nanobot-ai
nanobot onboard --wizard
nanobot agent -m "Hello!"
Start with workspace restriction:
{
"tools": {
"restrictToWorkspace": true,
"exec": {
"enable": true,
"sandbox": "bwrap"
}
}
}
bwrap is Linux-only and requires bubblewrap. On macOS or Windows, keep
restrictToWorkspace enabled and review shell access carefully.
allowFrom lists only
when static allowlists are intentional, and keep group policy mention-only at
first.restrictToWorkspace is an application-level guard, not an OS sandbox.tools.exec.enable: false removes shell execution entirely.tools.ssrfWhitelist ranges increases exposure.allowFrom: ["*"] bypasses pairing and means anyone who can reach that
channel can talk to the bot.bwrap, check whether the command needs files
outside the sandbox.