feat(installer): add openclaw config-set installer with automatic rollback

This commit is contained in:
2026-02-25 23:04:14 +00:00
parent c912ceed79
commit 2f269c25b4
3 changed files with 164 additions and 1 deletions

View File

@@ -27,8 +27,30 @@ The script prints JSON for:
You can merge this snippet manually into your `openclaw.json`.
## Installer script (with rollback)
For production-like install with automatic rollback on error:
```bash
./scripts/install-whispergate-openclaw.sh
```
Environment overrides:
- `PLUGIN_PATH`
- `NO_REPLY_PROVIDER_ID`
- `NO_REPLY_MODEL_ID`
- `NO_REPLY_BASE_URL`
- `NO_REPLY_API_KEY`
- `BYPASS_USER_IDS_JSON`
- `END_SYMBOLS_JSON`
The script:
- writes via `openclaw config set ... --json`
- creates config backup first
- restores backup automatically if any step fails
## Notes
- This repo does not run config mutation commands.
- Keep no-reply API bound to loopback/private network.
- If you use API auth, set `AUTH_TOKEN` and align provider apiKey usage.