CLI Reference
CLI Reference
ClawMachine is a single binary. clawmachine without a subcommand runs serve.
Command Summary
clawmachine serve
clawmachine install
clawmachine upgrade
clawmachine uninstall
clawmachine doctor
clawmachine status
clawmachine backup
clawmachine restore
clawmachine completion [bash|zsh|fish|powershell]
clawmachine version
clawmachine version --allGlobal Flags
| Flag | Default | Description |
|---|---|---|
--context | current kube context | Kubernetes context to use |
--dev | false | Enable dev mode for serve |
--web | false | Alias-style flag for web mode |
serve
clawmachine
clawmachine serve
clawmachine serve --devEnvironment variables:
| Variable | Default | Description |
|---|---|---|
PORT | 8080 | Listen port |
LOG_LEVEL | info | debug, info, warn, error |
install
clawmachine install
clawmachine install --namespace claw-machine --external-secrets --cilium
clawmachine install --context my-cluster --name clawmachine --yes| Flag | Default | Description |
|---|---|---|
--namespace | claw-machine | Target namespace |
--name | clawmachine | Helm release name |
--external-secrets | false | Install External Secrets Operator |
--cilium | false | Install Cilium CNI |
--interactive | true | Run interactive installer |
--yes, -y | false | Skip confirmation prompts |
upgrade
clawmachine upgrade
clawmachine upgrade --namespace claw-machine --name clawmachine --yes| Flag | Default | Description |
|---|---|---|
--namespace | claw-machine | Target namespace |
--name | clawmachine | Helm release name |
--yes, -y | false | Skip confirmation prompt |
uninstall
clawmachine uninstall
clawmachine uninstall --namespace claw-machine --yesdoctor
clawmachine doctorstatus
clawmachine statusbackup and restore
clawmachine backup --bucket my-backups
clawmachine restore --bucket my-backupsSee full flags with:
clawmachine backup --help
clawmachine restore --helpcompletion
clawmachine completion zsh
clawmachine completion bashversion
clawmachine version
clawmachine version --allclawmachine version prints the CLI version.
clawmachine version --all also prints:
- Canonical bot image refs (
repo:tag) from embedded bot charts - SHA256 checksums for vendored embedded charts (External Secrets, Cilium, Connect)
Example:
clawmachine v0.1.0
bot images (canonical repo:tag):
- openclaw: ghcr.io/zackerydev/openclaw:0.1.0
- picoclaw: ghcr.io/zackerydev/picoclaw:0.1.0
- ironclaw: ghcr.io/zackerydev/ironclaw:0.1.0
- busybox: ghcr.io/zackerydev/theclawmachine-toolbox:0.1.0
vendored charts (sha256):
- [email protected]: sha256:<digest>
- [email protected]: sha256:<digest>
- [email protected]: sha256:<digest>HTTP API Endpoints (Serve Mode)
Core
| Method | Path |
|---|---|
GET | /health |
GET | /static/* |
Pages
| Method | Path |
|---|---|
GET | / |
GET | /bots/new |
POST | /bots/new/infra |
POST | /bots/new/config |
GET | /bots/{name}/page |
GET | /settings |
GET | /settings/providers |
GET | /secrets |
GET | /secrets/new (redirects to /secrets) |
Bot Operations
| Method | Path |
|---|---|
GET | /bots |
POST | /bots |
GET | /bots/{name} |
PUT | /bots/{name} |
DELETE | /bots/{name} |
GET | /bots/{name}/logs |
POST | /bots/{name}/cli |
POST | /bots/{name}/restart |
PUT | /bots/{name}/config |
GET | /bots/{name}/network |
GET | /bots/{name}/backup |
POST | /bots/{name}/backup |
Settings and Secrets
| Method | Path |
|---|---|
GET | /settings/status |
POST | /settings/provider |
DELETE | /settings/provider |
POST | /settings/connect/install |
DELETE | /settings/connect |
GET | /secrets/available |
GET | /secrets/status |
POST | /secrets |
DELETE | /secrets/{name} |
API Helpers
| Method | Path |
|---|---|
GET | /api/botenv |
GET | /api/models |
GET | /api/onboarding/profile |
POST | /api/onboarding/preview |
HTMX requests are supported for page partials (HX-Request: true).