docs: document --dev/--profile

This commit is contained in:
Peter Steinberger
2026-01-05 01:25:42 +01:00
parent c6de1b1f7d
commit 54ad1ead80
2 changed files with 26 additions and 1 deletions

View File

@@ -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`