Skip to content

Commit 84a0c6e

Browse files
authored
docs(gateway): document the Daytona cloud-worker provider (#130282)
Crabbox already ships a Daytona backend; add the profile example and provider-specific notes (no crabbox login step, default snapshot ships Node, default machine class) confirmed by a live lease-and-exec proof.
1 parent 4eea0d3 commit 84a0c6e

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

‎docs/gateway/cloud-workers.md‎

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,37 @@ printf '%s' "$CRABBOX_COORDINATOR_TOKEN" | crabbox login \
8080

8181
Keep the token out of repository config and shell arguments.
8282

83+
### Daytona
84+
85+
The bundled Crabbox provider can also lease [Daytona](https://www.daytona.io) sandboxes as cloud workers (`settings.provider: "daytona"`). Unlike AWS, Daytona needs no separate `crabbox login` step: export `DAYTONA_API_KEY` (from the [Daytona dashboard](https://app.daytona.io/dashboard/keys)) in the Gateway process's environment before Crabbox allocates a lease. Verify it without provisioning anything:
86+
87+
```bash
88+
DAYTONA_API_KEY=<key> crabbox doctor --provider daytona --json
89+
```
90+
91+
A `daytona-fallback auth=ready control_plane=ready inventory=ready` finding confirms the key authenticates; `mutation=false` means the check is read-only. Daytona leases are Linux-only (`target: linux`) and reachable over SSH like any other Crabbox `ssh-lease` provider. Crabbox's default Daytona snapshot already ships Node.js and `npx`, so `settings.setup` is optional here — keep it only if your own snapshot needs it, as an idempotent guard like the AWS example above.
92+
93+
```json
94+
{
95+
"cloudWorkers": {
96+
"profiles": {
97+
"daytona": {
98+
"provider": "crabbox",
99+
"install": "bundle",
100+
"settings": {
101+
"provider": "daytona",
102+
"class": "beast",
103+
"ttl": "8h",
104+
"idleTimeout": "45m"
105+
}
106+
}
107+
}
108+
}
109+
}
110+
```
111+
112+
`class` defaults to `beast` (Crabbox's own default for this provider) when omitted; `crabbox providers describe daytona --json` lists the full flag set. Provide `DAYTONA_API_KEY` as an environment variable on the Gateway process (for example through a systemd `EnvironmentFile`), the same way other credential-bearing provider secrets are supplied — never in `openclaw.json` itself.
113+
83114
## Configuration
84115

85116
Manage profiles in the Control UI under **Settings → Connections → Cloud workers**, or edit `cloudWorkers.profiles` directly in `openclaw.json` — both write the same config keys. The settings page lists each profile's backend, class, lifetime, and idle-stop in plain language, and shows whether it is advertised to `environments.list` or waiting on a Gateway restart. With no profiles configured it explains the feature, links back to this page, and starts the add flow.

0 commit comments

Comments
 (0)