Server & admin
Commands for the host running bhatti, plus client-side setup, version, completion and update.
Categories
Section titled “Categories”| Daemon | serve |
| Client config | setup, version, completion |
| Updates | update |
| User management | user create, user list, user rotate-key, user delete |
| Observability & image maintenance | admin status, admin events, admin metrics, admin migrate-images, admin gc-images |
Server-only commands
Section titled “Server-only commands”user * and admin * operate directly on the local database or data directory rather than using the HTTP API. Run them on the server, typically with sudo; use --data-dir when operating on a nonstandard data directory.
The installer starts serve under systemd on Linux or launchd on macOS and writes the local Unix API socket. HVF itself doesn’t require root, but the installer does on both platforms. setup, version, update and completion also work on a CLI-only machine; a full server update needs root.
Quick patterns
Section titled “Quick patterns”# Make a separate API key for an agent or person (server)sudo bhatti user create --name coding-agent --max-sandboxes 10
# Check overall health (server)sudo bhatti admin status
# Find recent thermal pauses (server)sudo bhatti admin events --type thermal --since 24h
# Update the CLI on a developer machinebhatti update
# Update CLI, VMM, netd, libkrun, kernel, lohar and the configured default tiersudo bhatti update# Inspect then remove bases no disk or tier usessudo bhatti admin gc-images --dry-runsudo bhatti admin gc-images