Installation
@machine0/cli on npm. After installation, the machine0 command is available globally.
Authentication
Log in via browser OAuth:~/.machine0/auth-token.
For automation, set the MACHINE0_API_TOKEN environment variable instead.
Log out (revokes the token):
Command structure
machine0 <resource> <action>, with shortcuts for the most common operations:
| Shortcut | Equivalent |
|---|---|
machine0 new | Create a VM |
machine0 ls | List VMs |
machine0 get | Show VM details |
machine0 rm | Destroy a VM |
machine0 ssh | SSH into a VM |
Full command reference
| Command | Description |
|---|---|
| Machines | |
new <vm> | Create a VM |
ls | List VMs |
get <vm> | Show VM details |
start <vm> | Start a stopped VM |
stop <vm> | Stop a running VM |
reboot <vm> | Reboot a VM |
rm [vm] | Destroy a VM (--all for all) |
ssh <vm> [command] | SSH into a VM or run a command |
update <vm> | Rename or toggle proxy |
provision <vm> <playbook> | Run an Ansible playbook |
sizes | Show sizes and pricing |
| Images | |
images ls | List images |
images get <image> | Show image details |
images new <vm> <image> | Snapshot a VM |
images update <image> | Update image settings |
images rm [image] | Delete an image (--all for all) |
| SSH Keys | |
keys ls | List keys |
keys get <key> | Show key details |
keys new <key> | Add a key |
keys update <key> | Update key settings |
keys rm <key> | Delete a key |
| Account | |
login | Log in via browser |
logout | Log out and revoke token |
account | Show account details and balance |
topup | Add funds to wallet |
config get | Show current configuration |
config set KEY=VALUE | Set configuration values |
| Quick Launch | |
use openclaw | Create an OpenClaw VM and SSH in |