clawmacdo 0.26.0 → 0.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +52 -2
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -5,8 +5,10 @@
|
|
|
5
5
|
|
|
6
6
|
Rust CLI tool for deploying [OpenClaw](https://openclaw.ai) to **DigitalOcean**, **AWS Lightsail**, **Tencent Cloud**, **Microsoft Azure**, or **BytePlus Cloud** — with Claude Code, Codex, and Gemini CLI pre-installed.
|
|
7
7
|
|
|
8
|
-
## ✨ What's New in v0.
|
|
8
|
+
## ✨ What's New in v0.27.0
|
|
9
9
|
|
|
10
|
+
- **`update-model` subcommand** — change the AI model on a running OpenClaw instance without redeploying (updates API keys, provider config, model settings, and restarts the gateway)
|
|
11
|
+
- **Snapshot/restore progress tracking** — snapshot and restore operations are now async with step-by-step progress via SSE; the frontend can display real-time progress bars using `GET /api/deploy/{operation_id}/events`
|
|
10
12
|
- **`do-snapshot` subcommand** — create a named DigitalOcean snapshot from an existing droplet by ID, with optional `--power-off` flag for clean shutdown/snapshot/power-on cycle
|
|
11
13
|
- **BytePlus EIP cost reduction** — switched from pay-by-bandwidth to pay-by-traffic billing, reduced default bandwidth from 10 Mbps to 5 Mbps, and EIP is now created inline with the instance (`ReleaseWithInstance: true`) so it auto-releases on destroy
|
|
12
14
|
- **BytePlus spot instances** — new `--spot` flag on deploy enables `SpotAsPriceGo` strategy for up to ~80% compute cost savings
|
|
@@ -287,6 +289,30 @@ clawmacdo deploy --provider do --customer-email "user@example.com" \
|
|
|
287
289
|
| Google Gemini | `gemini` | `google/gemini-2.5-flash` | `--gemini-key` |
|
|
288
290
|
| BytePlus ARK | `byteplus` | `byteplus/ark-code-latest` | `--byteplus-ark-api-key` |
|
|
289
291
|
|
|
292
|
+
### Update AI Model on a Running Instance
|
|
293
|
+
|
|
294
|
+
Change the primary AI model or failover chain on a deployed OpenClaw instance without redeploying.
|
|
295
|
+
|
|
296
|
+
```bash
|
|
297
|
+
# Switch to OpenAI as primary
|
|
298
|
+
clawmacdo update-model --instance <deploy-id> \
|
|
299
|
+
--primary-model openai --openai-key "$OPENAI_API_KEY"
|
|
300
|
+
|
|
301
|
+
# Switch to BytePlus ARK with Anthropic failover
|
|
302
|
+
clawmacdo update-model --instance <deploy-id> \
|
|
303
|
+
--primary-model byteplus --failover-1 anthropic \
|
|
304
|
+
--byteplus-ark-api-key "$BYTEPLUS_ARK_API_KEY" \
|
|
305
|
+
--anthropic-key "$ANTHROPIC_API_KEY"
|
|
306
|
+
|
|
307
|
+
# Multi-model failover chain
|
|
308
|
+
clawmacdo update-model --instance <deploy-id> \
|
|
309
|
+
--primary-model anthropic --failover-1 openai --failover-2 gemini \
|
|
310
|
+
--anthropic-key "$ANTHROPIC_API_KEY" \
|
|
311
|
+
--openai-key "$OPENAI_API_KEY" --gemini-key "$GEMINI_API_KEY"
|
|
312
|
+
```
|
|
313
|
+
|
|
314
|
+
The command updates API keys in `.env`, configures provider settings (BytePlus `openclaw.json`), sets the model via `openclaw models set`, adds failovers, and restarts the gateway service. API keys are optional — if omitted, the existing key on the instance is preserved.
|
|
315
|
+
|
|
290
316
|
### ARK API Key Management
|
|
291
317
|
|
|
292
318
|
Generate temporary BytePlus ARK API keys or list available endpoints.
|
|
@@ -443,6 +469,30 @@ clawmacdo destroy \
|
|
|
443
469
|
--name "openclaw-abc123"
|
|
444
470
|
```
|
|
445
471
|
|
|
472
|
+
### Snapshot/Restore Progress Tracking
|
|
473
|
+
|
|
474
|
+
Snapshot and restore operations return an `operation_id` immediately and run asynchronously. Track progress via SSE:
|
|
475
|
+
|
|
476
|
+
```bash
|
|
477
|
+
# Start a snapshot (returns operation_id immediately)
|
|
478
|
+
curl -X POST http://localhost:3456/api/deployments/{id}/snapshot \
|
|
479
|
+
-H 'Content-Type: application/json' \
|
|
480
|
+
-d '{"snapshot_name": "my-backup", "do_token": "$DO_TOKEN"}'
|
|
481
|
+
# Response: {"ok": true, "message": "Snapshot operation started.", "operation_id": "abc-123"}
|
|
482
|
+
|
|
483
|
+
# Start a restore (returns operation_id immediately)
|
|
484
|
+
curl -X POST http://localhost:3456/api/snapshots/restore \
|
|
485
|
+
-H 'Content-Type: application/json' \
|
|
486
|
+
-d '{"provider": "digitalocean", "snapshot_name": "my-backup", "do_token": "$DO_TOKEN"}'
|
|
487
|
+
# Response: {"ok": true, "message": "Restore operation started.", "operation_id": "def-456"}
|
|
488
|
+
|
|
489
|
+
# Stream progress via SSE
|
|
490
|
+
curl -N http://localhost:3456/api/deploy/{operation_id}/events
|
|
491
|
+
# SSE messages include [Step N/T] for progress bars
|
|
492
|
+
# Terminal: SNAPSHOT_COMPLETE_JSON:{...} or RESTORE_COMPLETE_JSON:{...}
|
|
493
|
+
# Error: SNAPSHOT_ERROR:... or RESTORE_ERROR:...
|
|
494
|
+
```
|
|
495
|
+
|
|
446
496
|
### Track Deploy Progress
|
|
447
497
|
|
|
448
498
|
```bash
|
|
@@ -663,5 +713,5 @@ See [CHANGELOG.md](CHANGELOG.md) for version history and breaking changes.
|
|
|
663
713
|
---
|
|
664
714
|
|
|
665
715
|
**Last updated:** March 19, 2026
|
|
666
|
-
**Current version:** 0.
|
|
716
|
+
**Current version:** 0.27.0
|
|
667
717
|
**Architecture version:** 2.0 (modular workspace)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clawmacdo",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.27.0",
|
|
4
4
|
"description": "CLI tool for deploying OpenClaw to multiple cloud providers with pre-installed AI dev tools",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"openclaw",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"node": ">=16"
|
|
31
31
|
},
|
|
32
32
|
"optionalDependencies": {
|
|
33
|
-
"@clawmacdo/darwin-arm64": "0.
|
|
34
|
-
"@clawmacdo/linux-x64": "0.
|
|
35
|
-
"@clawmacdo/win32-x64": "0.
|
|
33
|
+
"@clawmacdo/darwin-arm64": "0.27.0",
|
|
34
|
+
"@clawmacdo/linux-x64": "0.27.0",
|
|
35
|
+
"@clawmacdo/win32-x64": "0.27.0"
|
|
36
36
|
}
|
|
37
37
|
}
|