Proxmox API token setup for Capyshell
Works with Proxmox VE 8 and 9. Run these commands as root on any node in your cluster.
Capyshell connects directly to your Proxmox VE API using a privilege-separated API token (--privsep 1). A privilege-separated token can do only what both the user and the token are granted, so you can start read-only and add capabilities later.
1. Read-only (Observe)
Creates a clustara@pve user, generates a privilege-separated token named phone, and grants read-only access to nodes, VMs, LXC containers, storage and pools. Save the token secret printed by pveum user token add — Proxmox shows it only once.
pveum role add ClustaraObserve -privs "Sys.Audit VM.Audit Datastore.Audit Pool.Audit"
pveum user add clustara@pve
pveum user token add clustara@pve phone --privsep 1
pveum acl modify / -user clustara@pve -role ClustaraObserve
pveum acl modify / -token 'clustara@pve!phone' -role ClustaraObserve
In Capyshell, enter the token ID as clustara@pve!phone and paste the secret from the command output.
The user and role names here still say clustara, the app’s earlier name. They are only labels: the app prints the same commands, and a setup made under the old name keeps working.
2. Control guests (Operate)
Adds VM.PowerMgmt so Capyshell can start, shut down, stop, restart and resume VMs and LXC containers. Run these after creating the user and token above:
pveum role add ClustaraOperate -privs "Sys.Audit VM.Audit Datastore.Audit Pool.Audit VM.PowerMgmt"
pveum acl modify / -user clustara@pve -role ClustaraOperate
pveum acl modify / -token 'clustara@pve!phone' -role ClustaraOperate
3. Optional roles
Grant only the roles you want to use. All optional roles are attached on / alongside your base role so Proxmox does not override inherited read permissions on child paths.
Snapshots (take, roll back, delete)
pveum role add ClustaraSnapshot -privs "VM.Snapshot"
pveum acl modify / -user clustara@pve -role ClustaraSnapshot
pveum acl modify / -token 'clustara@pve!phone' -role ClustaraSnapshot
Backups (list and back up now)
pveum role add ClustaraBackup -privs "VM.Backup Datastore.AllocateSpace"
pveum acl modify / -user clustara@pve -role ClustaraBackup
pveum acl modify / -token 'clustara@pve!phone' -role ClustaraBackup
Node power (reboot or shut down a node)
pveum role add ClustaraNodePower -privs "Sys.PowerMgmt"
pveum acl modify / -user clustara@pve -role ClustaraNodePower
pveum acl modify / -token 'clustara@pve!phone' -role ClustaraNodePower
Guest settings (CPU, memory, disk, network, Start at boot)
pveum role add ClustaraConfigure -privs "VM.Config.CPU VM.Config.Memory VM.Config.Network VM.Config.Disk VM.Config.Options Datastore.AllocateSpace SDN.Use"
pveum acl modify / -user clustara@pve -role ClustaraConfigure
pveum acl modify / -token 'clustara@pve!phone' -role ClustaraConfigure
Logs (node journal and guest agent logs)
Use the first line on Proxmox VE 9, or the second line on Proxmox VE 8:
# Proxmox VE 9
pveum role add ClustaraLogs -privs "Sys.Syslog VM.GuestAgent.Unrestricted"
# Proxmox VE 8
pveum role add ClustaraLogs -privs "Sys.Syslog VM.Monitor"
pveum acl modify / -user clustara@pve -role ClustaraLogs
pveum acl modify / -token 'clustara@pve!phone' -role ClustaraLogs
Consoles (Proxmox VE 9.1 and later)
Proxmox 9.1 added token-aware console tickets. On earlier versions, consoles over the Proxmox API require a username and password connection or a linked SSH host.
pveum role add ClustaraConsole -privs "VM.Console Sys.Console"
pveum acl modify / -user clustara@pve -role ClustaraConsole
pveum acl modify / -token 'clustara@pve!phone' -role ClustaraConsole
Reverse proxy URLs
By default, Proxmox listens on port 8006 (for example, https://pve.lan:8006). If you place Proxmox behind a reverse proxy such as Caddy, Nginx or Traefik, enter the proxy’s full HTTPS URL in Capyshell (for example, https://pve.example.internal).
If you use WebSocket consoles through a reverse proxy, make sure the proxy forwards Upgrade and Connection headers and does not strip the Authorization: PVEAPIToken=… header.
TLS certificate pinning
Most homelab Proxmox servers use a self-signed certificate. When you connect to a server whose certificate is not trusted by your phone’s system store, Capyshell shows the certificate’s SHA-256 fingerprint and asks you to confirm it before sending your token.
Once confirmed, Capyshell pins that certificate on your device. If the server’s certificate later changes — for example, after a manual renewal or an unexpected network interception — Capyshell stops the connection and shows the new fingerprint until you review and trust it. Servers using a valid certificate from a public CA or a CA installed in your device’s trust store validate normally without extra prompts.