All plugins

proxmox

Proxmox VE for Hermes Agent: six pve_* tools (cluster inventory, per-guest status and config, node health and storage, snapshot list/create/delete, recent backup job results, and QEMU guest-agent command execution) plus an @pve: context reference that pulls live cluster, guest or node state into the prompt on demand. Talks to the Proxmox HTTP API directly with a scoped API token; standard library only, no Python dependencies. Write actions (snapshot create/delete, guest exec) go through Hermes' approval prompt: a pre_tool_call hook escalates each one with the guest, the node and the exact command or snapshot operation, and the operator approves or refuses it.

cgray2222Toolsv0.1.2Updated 34 minutes ago

About

Proxmox VE for Hermes Agent: six pve_* tools (cluster inventory, per-guest status and config, node health and storage, snapshot list/create/delete, recent backup job results, and QEMU guest-agent command execution) plus an @pve: context reference that pulls live cluster, guest or node state into the prompt on demand. Talks to the Proxmox HTTP API directly with a scoped API token; standard library only, no Python dependencies. Write actions (snapshot create/delete, guest exec) go through Hermes' approval prompt: a pre_tool_call hook escalates each one with the guest, the node and the exact command or snapshot operation, and the operator approves or refuses it.

Proxmox VE for Hermes Agent

Six tools and one context reference that let Hermes see and operate a Proxmox VE cluster:
inventory, per-guest health, node and storage health, snapshots, backup results, and
command execution inside a VM through the QEMU guest agent.

No extra Python packages — the client is standard library only, so the plugin installs
into any Hermes environment without touching the dependency set.

What it adds

ToolWhat it doesWrite?
pve_list_guestsEvery VM and LXC in the cluster: node, state, uptime, memory, CPU, diskno
pve_guest_statusOne guest: live counters, config highlights, snapshot listno
pve_node_statusNode health: PVE version, kernel, load, CPU, memory, rootfs, storage poolsno
pve_snapshotList, create or delete a snapshotcreate/delete
pve_backup_statusRecent vzdump / Proxmox Backup Server jobs with result and durationno
pve_guest_execRun a command inside a running VM via the QEMU guest agentyes

Plus @pve: context references, expanded on demand into the prompt:

@pve:all     cluster inventory (nodes, guests, power state)
@pve:102     one guest — status, config, snapshots
@pve:pve     one node — health and every storage pool

That is the difference between a tool wrapper and an integration: the agent can drag live
cluster state into a single turn instead of making five tool calls to build the picture.

Install

hermes plugins install cgray2222/hermes-proxmox     # after it is in the catalog
# or, from a local checkout:
hermes plugins install /path/to/hermes-proxmox

Restart the gateway (or start a new CLI session) so the tools load.

Configure

Create a Proxmox API token with the narrowest role that still does the job:

# read-only tools need PVEAuditor on /
pveum user token add hermes@pve hermes --privsep 1
pveum acl modify / --users hermes@pve --roles PVEAuditor
# snapshots and guest exec additionally need PVEVMAdmin on the guests involved
pveum acl modify /vms/102 --users hermes@pve --roles PVEVMAdmin

Then set, in ~/.hermes/.env or through the plugin's config prompt:

PVE_HOST=192.168.6.12
PVE_API_TOKEN=hermes@pve!hermes=<secret>
# optional
PVE_PORT=8006
PVE_VERIFY_TLS=1          # set 0 only for a self-signed certificate you trust

PVE_USER + PVE_TOKEN_NAME + PVE_TOKEN_VALUE also work if you prefer the secret kept
separately. Secrets are read through agent.secret_scope, so the active Hermes profile
wins over a bare os.environ read.

Safety model

  • Read tools are read-only. They use the token's own permissions and nothing wider.
  • Write actions go through Hermes' approval prompt. A pre_tool_call hook
    (approval.py) escalates every snapshot create/delete and every guest exec to the
    operator, naming the guest, the node and the exact command or snapshot operation. The
    prompt is fail-closed: if the approval client is missing, errors or times out, the call
    is blocked. Answering "always" allowlists that one command on that one guest, not the
    tool.
  • confirm: true is an extra check, not the approval. It catches a call the model
    assembles without stating the change, but the model sets it in the same call, so it is
    not a human gate on its own — the hook above is.
  • Guest exec is QEMU-only. Containers reject it with an explanation; there is no
    container exec API in Proxmox's stable interface to abuse.
  • Node names are validated and percent-quoted. A model-supplied node cannot walk
    the path (x/../../access is rejected before the request is built).
  • The API token never follows a redirect. Requests go through an opener whose redirect
    handler refuses every 30x, so the Authorization header cannot be re-sent to another
    host. Proxmox does not redirect; a redirect is treated as a failure.
  • Snapshot names are validated before they reach a path. create/delete accept only
    Proxmox's own shape (a letter, then letters, digits, - or _), so ../ cannot walk
    the DELETE path. Both are quoted with safe="" as well.
  • No Hermes internals are touched. Registration goes through register_tool,
    register_context_reference and register_hook only.

Verify it works

hermes plugins doctor ~/projects/hermes-proxmox       # load + registration
hermes plugins validate ~/projects/hermes-proxmox     # the same gate the catalog CI runs
python -m pytest tests/ -q                            # offline unit tests

Demo script (under 90 seconds)

you:  @pve:all — anything unhealthy on the cluster?
      → inventory in the prompt, one node, two guests, both running

you:  why is 102 slow? @pve:102
      → live counters, 2 cores, 3.6/6.0 GB, agent enabled

you:  snapshot 102 as pre-upgrade
      → refused: needs confirm=true
you:  yes, do it
      → task qmsnapshot, exitstatus OK

you:  run df -h in 102
      → refused
you:  go ahead
      → /dev/root 220.5M 100% — HA's root partition is full, which is the whole answer

Layout

plugin.yaml       manifest (the catalog PR pins this tree)
__init__.py       register(): six tools + the @pve: reference
pve_client.py     HTTP client, credential resolution, task polling
tools.py          tool schemas, handlers, formatting
references.py     @pve: context reference provider
tests/            offline unit tests

License

MIT

README from the reviewed commit a760374; it updates when the author re-pins.

Developer Mode

Explore built-in Hermes toolsets and actions.

HermesAgent

Developer?

Create a Hermes extension for Desktop or agent workflows.

Developer Section