# Proximo — Setup (start here) This guide gets you from nothing to a working, **safe** Proximo install. No prior experience assumed. If you can log into your Proxmox web page, you can do this. Proximo lets an AI assistant operate your Proxmox estate. The reason it's safe to point at a box you care about is **one idea**, so read this part first: > **You create a Proxmox token. Proxmox itself enforces what that token can do. Proximo can never do > more than the token allows — no matter what Proximo's code does, and no matter what the AI tries.** > > So you start with a **read-only** token: the AI can *look* at everything and *change* nothing — > enforced by Proxmox, not by us. When you're ready, you mint a **write** token scoped to exactly the > guests you choose, with an expiry, and nowhere else. The keys never leave your hand. That's defense in depth, in the right order: - **The floor — your token's permissions.** Enforced by Proxmox, held by you, impossible for Proximo to exceed. - **On top — Proximo's safety net.** Every mutation is **planned** (the verdict, the exact change, and the live target where the vendor publishes a read for it, before anything runs), **proven** (a keyed, tamper-evident record of every move), and **undone where the vendor publishes a write to put the record back** (a mutation captures the record it is about to change; the restore is the vendor's own write with that record). > 🔒 **Do every step below in YOUR OWN terminal / browser. Never paste your token secret into an AI chat.** --- ## Before you start - A **Proxmox VE** server, and an admin login to it (you need admin *once*, to create the token). - A machine with **Python 3.12+** (your laptop, a VM — anywhere; it talks to Proxmox over the network). - *(Later, Step 5)* an MCP client — e.g. Claude Desktop or Claude Code. --- ## Step 1 — Install Proximo ```bash pip install proximo-proxmox ``` (`pipx install proximo-proxmox` or `uvx proximo-proxmox` work too.) Confirm it landed: ```bash proximo --help ``` --- ## Step 2 — Mint a least-privilege token in Proxmox ← the important step A **token** is an API key with its own permissions, separate from your password, and revocable any time. We'll make a **read-only** one first. Proximo prints the exact runbook for your product, and makes no API call, holds no credential and writes nothing: minting is your act, on the vendor's host. ```bash proximo mint pve ``` What it prints is the vendor's own commands, which you run **on the Proxmox host**: create a service user, create a privilege-separated token, grant `PVEAuditor` at `/` to **both** the token and the user, save the secret to a 600 file. Read it, then run it. The two things it tells you that people get wrong: - A privilege-separated token's effective permissions are the **intersection** of the user's ACL and the token's ACL. A freshly created user has no ACL of its own, so a grant to the token alone leaves the intersection empty: a token that authenticates and can do nothing. Grant the role to both. - The secret is shown **once**. The file holds `USER@REALM!TOKENID=SECRET` with no trailing newline, mode 600. Proximo refuses to start on a token file anyone else can read. The same verb prints the runbook for the other products: `proximo mint pbs`, `proximo mint pmg` (a credential file of two lines, PMG has no API tokens), `proximo mint pdm`. --- ## Step 3 — Point Proximo at your server Create `~/.config/proximo/proximo.env`: ```bash PROXIMO_API_BASE_URL=https://YOUR-PVE-HOST:8006/api2/json # your Proxmox address, port 8006 PROXIMO_TOKEN_PATH=/home/you/.config/proximo/pve.served # the SERVED file: a copy of the read token (mint's step 4) PROXIMO_READONLY_SOURCE=/home/you/.config/proximo/pve-read.token # the read token itself, what `disarm` restores # If your Proxmox uses a self-signed certificate, DON'T disable TLS — pin the NODE's cert: # PROXIMO_CA_BUNDLE=/home/you/.config/proximo/pve-node.pem # or pin its fingerprint (the form the PVE GUI shows); wire-enforced, exact match: # PROXIMO_FINGERPRINT=AA:BB:CC:... ``` Every door sources this file before its first env read (`PROXIMO_ENV_FILE` to point elsewhere). **Which store wins.** Step 5 puts the same variables in your MCP client's `env` block (a daemon gets them from its unit's `EnvironmentFile`). The door reads that first and fills in from `proximo.env` only the keys it does not set. A key present in both is fed by the process environment, and the file's copy of that key is never read. When the two values differ the door says so at start (`1 key(s) in ... SHADOWED by the process environment`, the key, never the value). Every `PROXIMO_*` value is fixed when the door starts: after editing either store, restart the server or reconnect the client. --- ## Step 4 — Verify YOUR boundary, before any AI sees it This is the safety check. Run the doctor: ```bash proximo doctor ``` You'll get JSON. It reports, for each configured plane, whether Proximo reached it and what the vendor says the token may do (counted and sampled by path, never translated into a vocabulary of ours), whether the ledger's chain is whole, and which of the six pillars stand: PLAN, PROVE, UNDO and DIAGNOSE always; CONSENT and CONTAIN only once you have given them a path outside the agent's reach. An empty pillar is advice with the exact setting that fills it, never an echo of the paths you configured. A retired switch still set in your env is named under `retired`. With the read-only token, the plane is reached and every write the vendor publishes is refused by Proxmox itself. That is the guarantee: no matter what the AI asks for, the write simply won't be permitted. If the plane is not reached or you see a TLS error, jump to **Troubleshooting** below. --- ## Step 5 — Wire Proximo into your AI client Example — Claude Desktop (`claude_desktop_config.json`): ```json { "mcpServers": { "proximo": { "command": "proximo", "timeout": 60, "env": { "PROXIMO_API_BASE_URL": "https://YOUR-PVE-HOST:8006/api2/json", "PROXIMO_TOKEN_PATH": "/home/you/.config/proximo/pve.served", "PROXIMO_READONLY_SOURCE": "/home/you/.config/proximo/pve-read.token" } } } } ``` `timeout` is not optional decoration: some clients give up after three seconds and drop a server **without telling you**. If your client names this setting something else, raise that instead. Restart the client, then ask it: **"what's running on the cluster?"** It will find the address (`proximo_find`), read it (`proximo_read pve /cluster/resources`), and answer with lean rows and a total — and **change nothing**, because your token says so. Six tools do everything: | tool | what it does | |---|---| | `proximo_find` | words to an address: a verb picks the method, the other words match the path, the vendor's description and the parameter names | | `proximo_plan` | the verdict for one address and the vendor's published parameters; a mutation's plan also reads the target as it stands. Mutates nothing | | `proximo_read` | any published GET. Lean rows and a total; `fields=all` for the vendor's rows; `since=24h` for what changed, from the door's own snapshots; `diagnose=true` on a node or guest for its health battery | | `proximo_call` | a governed POST/PUT/DELETE. Dry-run by default; `confirm=true` runs it, armed and tiered, and waits on the task. `method=undo` puts a captured record back | | `audit_entries` | the ledger read back, newest first | | `audit_verify` | the chain walked, the first break named | --- ## Step 6 — (Optional) Grant scoped write, when you're ready Mint a **second** token: a write token, scoped by the vendor's ACL to the guests you mean, with an expiry the vendor enforces. Proximo keeps no scope file and no lease of its own; the token's own ACL is the scope and its own `expire` is the lease, enforced server-side where no bug of ours can widen them. ```bash proximo mint pve --write --scope /vms/100 --expire 8h ``` Run the printed commands on the Proxmox host, save the secret to its own 600 file, then tell Proximo which file is which: ```bash PROXIMO_ARM_SOURCE=/home/you/.config/proximo/pve-write.token # the write token, at rest # PROXIMO_READONLY_SOURCE (Step 3) stays the read token; PROXIMO_TOKEN_PATH stays the served copy ``` The served file (`PROXIMO_TOKEN_PATH`) is never one of the two sources: `arm` and `disarm` install the write or the read token's bytes **into** it, and a source pointed at the served path would make the check compare a file to itself, so Proximo refuses that configuration. ### A pool scope, and cloning into it `--scope /pool/` is the usual way to give an agent a sandbox: it may manage the guests in that pool and nothing else. Two things about PVE's ACLs catch people here, both measured on PVE 9.2.2: - **A deeper grant replaces what is inherited there.** The write grant puts `PVEVMAdmin` on `/pool/` for the user, and that replaces the user's `PVEAuditor` from `/` on that path. The read token's rights are the user's and its own intersected, so on the pool it keeps only `VM.Audit` and `VM.GuestAgent.Audit`, the write token has no `Pool.Audit`, and a read of the pool answers 403 to both. `mint` prints the fix with the write grant: `PVEAuditor` on the same path for the user and the write token. It adds audit privileges only. A token minted before 0.48.1 needs those two lines run once. - **A clone reaches outside the pool.** Cloning a template that lives outside the pool (full or linked) also needs, for the write token **and** the user: `VM.Clone` on `/vms/