Skip to content

Server & admin

Commands for the host running bhatti, plus client-side setup, version, completion and update.

Daemonserve
Client configsetup, version, completion
Updatesupdate
User managementuser create, user list, user rotate-key, user delete
Observability & image maintenanceadmin status, admin events, admin metrics, admin migrate-images, admin gc-images

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.

Terminal window
# 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 machine
bhatti update
# Update CLI, VMM, netd, libkrun, kernel, lohar and the configured default tier
sudo bhatti update
Terminal window
# Inspect then remove bases no disk or tier uses
sudo bhatti admin gc-images --dry-run
sudo bhatti admin gc-images