From 499d0e15887c7745beaf7664a5e7e50712dc7eef Mon Sep 17 00:00:00 2001 From: Xubin Ren Date: Tue, 17 Mar 2026 05:58:13 +0000 Subject: [PATCH] docs(readme): update multi-instance onboard examples --- README.md | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 57898c6..0410a35 100644 --- a/README.md +++ b/README.md @@ -1162,22 +1162,24 @@ MCP tools are automatically discovered and registered on startup. The LLM can us ## 🧩 Multiple Instances -Run multiple nanobot instances simultaneously with separate configs and runtime data. Use `--config` as the main entrypoint, and optionally use `--workspace` to override the workspace for a specific run. +Run multiple nanobot instances simultaneously with separate configs and runtime data. Use `--config` as the main entrypoint. Optionally pass `--workspace` during `onboard` when you want to initialize or update the saved workspace for a specific instance. ### Quick Start +If you want each instance to have its own dedicated workspace from the start, pass both `--config` and `--workspace` during onboarding. + **Initialize instances:** ```bash -# Create separate instance directories -nanobot onboard --dir ~/.nanobot-telegram -nanobot onboard --dir ~/.nanobot-discord -nanobot onboard --dir ~/.nanobot-feishu +# Create separate instance configs and workspaces +nanobot onboard --config ~/.nanobot-telegram/config.json --workspace ~/.nanobot-telegram/workspace +nanobot onboard --config ~/.nanobot-discord/config.json --workspace ~/.nanobot-discord/workspace +nanobot onboard --config ~/.nanobot-feishu/config.json --workspace ~/.nanobot-feishu/workspace ``` **Configure each instance:** -Edit `~/.nanobot-telegram/config.json`, `~/.nanobot-discord/config.json`, etc. with different channel settings and workspaces. +Edit `~/.nanobot-telegram/config.json`, `~/.nanobot-discord/config.json`, etc. with different channel settings. The workspace you passed during `onboard` is saved into each config as that instance's default workspace. **Run instances:** @@ -1281,7 +1283,7 @@ nanobot gateway --config ~/.nanobot-telegram/config.json --workspace /tmp/nanobo | Command | Description | |---------|-------------| | `nanobot onboard` | Initialize config & workspace at `~/.nanobot/` | -| `nanobot onboard --dir ` | Initialize config & workspace at custom directory | +| `nanobot onboard -c -w ` | Initialize or refresh a specific instance config and workspace | | `nanobot agent -m "..."` | Chat with the agent | | `nanobot agent -w ` | Chat against a specific workspace | | `nanobot agent -w -c ` | Chat against a specific workspace/config |