`tools.exec.sandbox` only supported bubblewrap, which depends on Linux kernel namespaces, so macOS had no process-level isolation for shell commands: SECURITY.md told macOS users the sandbox was simply unavailable. Add a `seatbelt` backend that generates an SBPL profile for sandbox-exec(1) with the same policy bwrap applies. The workspace is read-write, the media directory is read-only, the workspace's parent is unreadable so config.json and its API keys stay hidden, and everything else is denied by default. Two macOS details the profile has to get right, both found by running the generated command rather than by reading the SBPL reference: - sh(1) reads `/` while resolving a path, and `(subpath "/usr")` does not cover the root itself. Without `(literal "/")` every wrapped command aborts during shell startup. - Denying the parent directory also blocks traversal into the workspace, so commands fail with ENOTDIR before they run. The ancestors of every allowed path are therefore re-allowed for `file-read-metadata` only: they stay searchable, but the config directory still cannot be listed or read. Paths are SBPL-escaped so a quote or backslash in a workspace path cannot terminate a literal early and widen the rules that follow it. Network access stays unrestricted to match bwrap, which does not pass `--unshare-net`. Windows keeps its existing warn-and-run-unsandboxed path, and selecting `seatbelt` on Linux fails loudly on the missing sandbox-exec(1) exactly as selecting `bwrap` does on macOS today. Verified on macOS 26.6.2 against the real sandbox-exec(1): workspace writes, media reads and /tmp scratch succeed, while writing media, reading config.json, listing the config directory, writing outside the workspace and reading ~/.ssh are all denied. Refs #1448 Refs #2569
nanobot Documentation
Use these docs to get a working agent first, then open a task guide only when you need the next capability. Source-level design and extension details are kept in the contributor section.
Repository docs follow the current source tree and can be newer than the latest package release. For published release docs, visit nanobot.wiki.
Start Here
| Your situation | Read this | You are done when... |
|---|---|---|
| Terminals, Python, or API keys are new to you | Beginner walkthrough | The browser can send Hello! and receive a reply |
| You are comfortable running commands | Install and Quick Start | nanobot status is healthy and the WebUI or CLI can get one reply |
| Something already failed | Troubleshooting | You have isolated the problem to install, config, model, gateway, channel, or tool access |
The recommended first-run path is:
- Install nanobot.
- Let the installer open
nanobot webuion a fresh local desktop. - Configure a provider and model in Settings → Models.
- Send
Hello!before configuring anything else.
Most people do not need to edit JSON for the first run. The WebUI handles the initial provider, model, and local browser settings. SSH, headless, existing-config, and older-release installs retain nanobot onboard --wizard as a terminal fallback. After the WebUI opens, use Settings for models and built-in capabilities, Settings → Channels for chat apps, and Apps for Agent Plugins, CLI Apps, and MCP integrations.
Add One Capability
Pick the row that matches what you want to accomplish next:
| Goal | Guide |
|---|---|
| Learn the browser workbench | WebUI |
| Connect Telegram, Discord, Slack, Feishu, WeChat, Email, or another chat app | Chat Apps |
| Choose a hosted, OAuth, company, or local model | Provider Cookbook |
| Add model fallbacks | Configure Model Fallback |
| Enable web search | Configure Web Search |
| Manage Agent Plugins, CLI Apps, or MCP integrations | WebUI Apps |
| Add an MCP tool server | Configure MCP Tools |
| Generate images | Image Generation |
| Schedule work or create a local trigger | Automations |
| Understand and manage long-term memory | Memory |
| Run nanobot continuously | Deployment |
| Run separate bots or workspaces | Multiple Instances |
| Call nanobot from Python | Python SDK |
| Expose an OpenAI-compatible endpoint | OpenAI-Compatible API |
For shorter, outcome-focused walkthroughs, browse the task guide index.
Operate nanobot
| Need | Read |
|---|---|
| Commands and flags | CLI Reference |
| In-chat slash commands | In-Chat Commands |
| Config, workspace, gateway, sessions, tools, and memory in plain language | Concepts |
| Provider/model matching and selection | Providers and Models |
| Setup and runtime diagnosis | Troubleshooting |
| Older development highlights | Release Archive |
Reference
Use reference pages to look up an exact option after you know what you are trying to configure:
| Area | Reference |
|---|---|
| Every configuration field and default | Configuration |
| Provider and model behavior | Providers and Models |
| Chat channel prerequisites and manual JSON | Chat Apps |
| WebSocket authentication and wire protocol | WebSocket |
| Python SDK classes, events, sessions, and hooks | Python SDK |
| OpenAI-compatible HTTP routes and payloads | OpenAI-Compatible API |
| Runtime self-inspection and tuning | My Tool |
Configuration examples are usually snippets to merge into ~/.nanobot/config.json, not complete replacement files. The docs use camelCase because nanobot writes config that way. Keep real API keys, bot tokens, and passwords out of issues and public logs.
Extend or Contribute
These pages explain implementation and extension points. You do not need them to install or operate nanobot.
| Goal | Read |
|---|---|
| Understand source ownership and runtime flow | Architecture |
| Set up a development environment | Development and CONTRIBUTING.md |
| Add a channel package | Channel Package Guide |
| Build the WebUI source | WebUI Development |
If a command or screen no longer matches these docs, please open an issue with your nanobot version, operating system, and the page that needs correction.