SuperAPI AI Directory

Proxmox-AIops

Proxmox-AIops is a community-maintained open-source project that provides AI-driven virtual machine and container lifecycle operations for Proxmox VE, with built-in governance mechanisms: unified audit logging, token and runaway budget protection, revoked token records, and descriptive risk-level labels. The project offers two usage modes, a CLI and an MCP server; the MCP server contains 43 tools, each wrapped with built-in governance. All operations are recorded to a local SQLite audit database, destructive write operations require double confirmation and support --dry-run. Credentials are managed through an encrypted keystore, and plaintext passwords are not stored in configuration files. The project has completed three rounds of validation in a real Proxmox VE 8.4.19 environment, but coverage has not yet exhausted all Proxmox operations.

Open website

About this tool

Proxmox-AIops is a community-maintained open-source project that provides AI-driven virtual machine (VM) and container (CT) lifecycle operations for Proxmox VE, with built-in governance mechanisms. The project declares that it is not affiliated with, endorsed by, or sponsored by Proxmox Server Solutions GmbH, and is licensed under the MIT License.

Purpose and Positioning The tool is designed to accurately and efficiently execute read and write operations on Proxmox VE and to record every invocation. It does not decide whether a given write operation is permitted—that is determined by the agent's judgment or the permissions of the connected account. The official recommendation is to use a Proxmox VE user or API token granted only read-only permissions, so that write operations fail on the server side. Therefore the project has no read-only switch, policy file, or approval-gate configuration; what it guarantees is "no silent operations": whether through MCP or the CLI, every invocation writes an audit row to ~/.proxmox-aiops/audit.db, and destructive write operations also capture the pre-operation state and record an undo descriptor when an inverse operation exists.

Main Capabilities

  • CLI (proxmox-aiops ...): supports vm list/get/config/start/stop/shutdown/reboot/reconfigure/clone/delete/migrate, resize-disk/move-disk/agent-ping, snapshot-create/snapshot-delete/snapshot-list/snapshot-rollback; backup create/list/restore; ct list/start/stop; cluster nodes/status/task-status/resources/node-status/task-log/next-vmid; ha status/resources; pool list/members; firewall vm-rules/cluster-status; storage list/content; diagnose node-pressure/guest-health; undo list/apply; as well as init, secret set/list/rm/migrate/rotate-password, doctor, mcp.
  • MCP server (proxmox-aiops mcp or proxmox-aiops-mcp): provides 43 tools, each wrapped by the built-in @governed_tool governance wrapper.
  • Diagnostics/RCA (read-only): diagnose node-pressure ranks cluster nodes by CPU/memory/root filesystem pressure; diagnose guest-health scans VMs/containers and finds stopped guests, memory saturation, and disks nearing full. Each finding cites the measured values that triggered it and gives concrete recommended actions; these are transparent heuristics rather than black-box conclusions.
  • Credential management: proxmox-aiops init (bootstrap wizard) and proxmox-aiops secret ... manage the encrypted keystore; no plaintext passwords are stored in config.yaml.
  • Reversibility: write operations with clear inverse operations (start/stop/shutdown/reconfigure/clone/migrate/snapshot-create/move-disk, container start/stop, restore to an idle vmid) record an inverse-operation undo descriptor; irreversible operations (delete, snapshot-rollback, forced restore) declare no inverse operation and are marked high-risk. Disk resizing supports expansion only; shrinking is rejected.
  • Asynchronous tasks: Proxmox write operations return a task UPID, which can be polled for completion status with cluster task-status and read for log lines with cluster task-log; a runaway budget guard prevents polling loops from running out of control.
  • Risk levels: each tool declares a risk_level, written into the audit row as a descriptive level (none/confirm/review) so reviewers can identify high-risk operations such as deletes; this level is only a label, not a gate.

Usage

  • As a Claude Code plugin: a single install provides both the skills and the MCP server; the MCP server is fetched via uv and pinned to the package version declared by the plugin, so audit rows can be traced back to the code that wrote them. Credentials still need to be configured via proxmox-aiops init.
  • As a OpenClaw plugin: the same bundle is published on ClawHub, and a single install provides both the skill and its MCP server; after installation, the OpenClaw gateway must be restarted to load the plugin. The MCP server is obtained via uv and pinned to that exact version, so uvx must be in PATH; otherwise the skill will still be installed but will report "Visible to model: no". Credentials are configured the same way.
  • As a CLI or standalone MCP server: the example configuration file is ~/.proxmox-aiops/config.yaml; set PROXMOX_PVE_LAB_SECRET=<token-uuid> in ~/.proxmox-aiops/.env (chmod 600). All operations are recorded to a local SQLite audit database under ~/.proxmox-aiops/ (relocatable via PROXMOX_AIOPS_HOME). Every write tool is wrapped in governance: token/runaway budget guards, risk-level tagging, and audit logging. Destructive CLI commands (vm stop, vm delete, vm snapshot-delete, vm snapshot-rollback, ct stop) require double confirmation and support --dry-run (especially the high-risk backup restore). Text returned by the API is processed by a prompt-injection sanitizer.

Use cases Suitable for scenarios that require governed VM/container operations on Proxmox VE through an AI agent or command line, require complete audit traceability, and require diagnosing cluster node pressure and guest health status.

Limitations and notes

  • Coverage is intentionally focused and does not yet exhaust all Proxmox operations; if a required device, operation, or feature is missing, you can submit an issue or PR.
  • Audit availability: real write operations require a committed pending audit row, and if storage is unavailable, stop before contacting the platform; reads and previews can continue with a warning; new audit rows store a result summary rather than the full response.
  • Three rounds of live verification have been completed on real Proxmox VE 8.4.19 (read-only interface, QEMU write interface, quorum of a two-node cluster, live migration, move-disk, successful backup), and rounds 2 and 3 each found a real defect that simulated testing could not detect; docs/VERIFICATION.md records what has been verified and what stillis not covered.
  • When using smaller/local models, you can refer to agent-guardrails.md, which lists the safeguards already enforced by the tools and ready-made system prompts for the remaining parts.
  • No external dependencies other than proxmoxer and the MCP SDK.