diff --git a/docs/configuration.md b/docs/configuration.md index 0485c4506..ca0622389 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -1016,10 +1016,14 @@ Requires full Gateway restart: To run multiple gateways on one host, isolate per-instance state + config and use unique ports: - `CLAWDBOT_CONFIG_PATH` (per-instance config) -- `CLAWDBOT_STATE_DIR` (sessions/creds/logs) +- `CLAWDBOT_STATE_DIR` (sessions/creds) - `agent.workspace` (memories) - `gateway.port` (unique per instance) +Convenience flags (CLI): +- `clawdbot --dev …` → uses `~/.clawdbot-dev` + shifts ports from base `19001` +- `clawdbot --profile …` → uses `~/.clawdbot-` (port via config/env/flags) + Example: ```bash CLAWDBOT_CONFIG_PATH=~/.clawdbot/a.json \ diff --git a/docs/gateway.md b/docs/gateway.md index d1ce8e9bc..f011c0c12 100644 --- a/docs/gateway.md +++ b/docs/gateway.md @@ -49,6 +49,27 @@ pnpm gateway:watch Supported if you isolate state + config and use unique ports. +### Dev profile (`--dev`) + +Fast path: run a fully-isolated dev instance (config/state/workspace) without touching your primary setup. + +```bash +clawdbot --dev setup +clawdbot --dev gateway --allow-unconfigured +# then target the dev instance: +clawdbot --dev status +clawdbot --dev health +``` + +Defaults (can be overridden via env/flags/config): +- `CLAWDBOT_STATE_DIR=~/.clawdbot-dev` +- `CLAWDBOT_CONFIG_PATH=~/.clawdbot-dev/clawdbot.json` +- `CLAWDBOT_GATEWAY_PORT=19001` (Gateway WS + HTTP) +- `bridge.port=19002` (derived: `gateway.port+1`) +- `browser.controlUrl=http://127.0.0.1:19003` (derived: `gateway.port+2`) +- `canvasHost.port=19005` (derived: `gateway.port+4`) +- `agent.workspace` default becomes `~/clawd-dev` when you run `setup`/`onboard` under `--dev`. + Checklist per instance: - unique `gateway.port` - unique `CLAWDBOT_CONFIG_PATH`