VoltageGPU for AI coding agents
If you code with an assistant such as Claude Code, Cursor, GitHub Copilot or Codex, it can manage VoltageGPU for you: start a Confidential VM, a standard GPU pod, a bare metal machine or a sandbox, wait until it answers over SSH, check the attestation, release it, and call the inference API. You give it a limited agent key, the vgpu command and the rules it follows. The instructions are in one Markdown file, written to the agent: https://voltagegpu.com/coding-agents.md. The short version, with the commands: agent quickstart.
Set it up in three steps
- At voltagegpu.com/api-keys, create a GPU Pods key (
volt_...) and choose Agent key (limited): by default the scopesread,rentandmanage, only the machines this key starts, and a budget of $20 per UTC day. For inference, add an AI Inference key (vgpu_...). Keys are shown once. Your agent cannot create them: that route needs your dashboard session. - Put them in environment variables, never in the repository:
VOLT_API_KEYandVOLTAGEGPU_API_KEY. Install the command where the agent runs:pip install "voltagegpu-cli[verify]>=2.0.0", thenvgpu whoamishows the scopes, the visibility, the budgets and the spend of the key, never the key itself. - Paste the block below into the AGENTS.md or CLAUDE.md of your project.
## VoltageGPU
- Before any VoltageGPU call, read https://voltagegpu.com/coding-agents.md and follow it.
- Use the limited agent key the user created at https://voltagegpu.com/api-keys, from the environment
only: VOLT_API_KEY (volt_..., machines) and, for inference, VOLTAGEGPU_API_KEY (vgpu_...). Never
print, echo, log or commit a key. Never create keys and never top up the balance.
- Ask me before anything that spends money: the machine, its hourly price from `vgpu ls --json`, that
one hour is charged at launch, and the deadline you will set. Wait for a yes, unless I already
approved this run.
- Always give a deadline: `vgpu up TIER --name NAME --ttl DURATION --max-price USD -y` (over REST:
hardstop_hours, auto_terminate_hours or deleteTimeoutSec). Never start a machine without one.
- Long jobs: `vgpu exec NAME -d "command"`; copy results back with `vgpu scp`.
- Release every machine you started with `vgpu rm NAME -y` when the task ends or fails, then check
that `vgpu ps` no longer lists it. Powering a machine off from inside does not stop billing.
- Exit code 6 or HTTP 402 (balance, or API_KEY_BUDGET_EXCEEDED): stop and tell me. Do not retry and
do not switch tiers to get around it.
- After a launch that got no answer, run `vgpu ps` before anything else; never retry blindly.
- Call a machine confidential only after `vgpu attest NAME` returned VERIFIED. Standard pods,
dedicated machines and sandboxes are never confidential.What an agent key allows
readlists offers and machines and reads the spend of the key (GET /api/volt/whoami);rentstarts, stops and releases machines;managecovers the SSH keys and registry credentials of the account. An agent key never hasbilling:GET /api/volt/balanceanswersbalance: nullwith abalance_hiddennote.- Scope missing: 403
API_KEY_SCOPE_MISSING, before anything happens. - With visibility "own", the key sees and controls only the machines it started; any other machine answers 404. SSH keys and registry credentials answer 403
API_KEY_ACCOUNT_RESOURCE: register the SSH key of the agent's computer yourself, in the dashboard. - Budget (UTC day, UTC month or in total) reached: 402
API_KEY_BUDGET_EXCEEDEDbefore any charge, nothing started. The budget does not stop machines already running: give each one a deadline. - A browser logged in to your account is not bound by these limits: create the key on your own computer.
What the agent can do
| Machine | Create | Ready when | Release | Enclave |
|---|---|---|---|---|
| Confidential VM (Intel TDX) | POST /api/volt/pods, provider "confidential", resource_name from GET /api/volt/machines | GET /api/volt/pods until ssh_ready is true (usually within 15 minutes) | DELETE /api/volt/pods/{workloadUid} | Yes |
| Standard GPU pod | POST /api/volt/pods, provider "standard", machine_id from GET /api/volt/machines?provider=standard | GET /api/volt/pods/{id} until ssh_command is set | DELETE /api/volt/pods/{id} | No |
| Dedicated bare metal | POST /api/volt/pods, provider "dedicated", machine_id from GET /api/volt/machines?provider=dedicated | GET /api/volt/pods, entry with tier "dedicated" (15 to 25 minutes) | DELETE /api/volt/pods/{id} | No |
| Sandbox (CPU only) | POST /api/volt/sandboxes | In seconds; sshCommand in the answer or in GET /api/volt/sandboxes | DELETE /api/volt/sandboxes/{id} | No |
All of these take the X-API-Key header on https://api.voltagegpu.com. Inference is at https://api.voltagegpu.com/v1 with Authorization: Bearer and the vgpu_ key (OpenAI-compatible, models listed by GET /v1/models). Bare metal and sandboxes need a verified account and a balance that covers the first hour; bare metal runs one machine at a time. Either offer can be closed, in which case the API answers 403 FEATURE_DISABLED. With vgpu, the same machines are vgpu ls, vgpu up, vgpu ps and vgpu rm, and vgpu attest checks a Confidential VM or a Confidential CPU tier from the agent's computer.
What the file makes the agent do
- Never print, log or commit a key; read it from the environment.
- Ask you before any spending: machine, hourly price, the hour charged at launch, the deadline it will set.
- Give a deadline to everything it starts (
--ttl, orhardstop_hours,auto_terminate_hours,deleteTimeoutSecover REST) and release everything at the end, or after an error. - Stop and tell you on exit code 6 or HTTP 402, without retrying.
- Never launch again after an uncertain answer (
"charged": trueor a timeout) without listing its machines first. - Never call a standard pod, a bare metal machine or a sandbox confidential.
MCP servers
- Local:
vgpu mcpruns on the agent's computer over stdio, with the toolsls,up,ps,exec,scp,rm,attest,inferenceandwhoami.uprequiresttlandmax_hourly_price,rmrequiresconfirm: true. - Remote: https://voltagegpu.com/api/mcp (Streamable HTTP, the
volt_key as bearer token) starts, lists and releases every kind of machine, each deploy with a required lifetime. It has no exec: running a command needs your SSH key, which stays local.
Billing, in short
- Prepaid balance. One hour is charged when a launch succeeds, then billing is per second.
- Released within that hour, the unused seconds go back to the balance. Bare metal always bills 15 minutes.
- Halting a machine from inside does not stop billing; a release or the automatic stop does.
- When the balance can no longer pay, running machines are stopped and their data is lost.
Verified, and not verified
- NVIDIA GPU attestation from inside a Confidential VM is verified on five SKUs only: single-GPU H200, the 8x H100 node (attested again on 4 November 2026), single-GPU H100, single-GPU RTX PRO 6000 Blackwell and, since 4 November 2026, the 8x H200 node; on both 8-GPU nodes the NVSwitches pass only with libnvidia-nscq added in the guest. The deploy answer says it in
attestation.verified. See the Confidential VM guide. - Standard pods, dedicated bare metal and sandboxes have no enclave and no attestation.
- Confidential CPU tiers (AMD SEV-SNP): an attestation you generate, with the AMD chain fetched from AMD and checked on your own computer. The measurement is not compared with a reference image. The guest kernel uses VMPCK0, consistent with VMPL 0 (no SVSM); not yet confirmed with a VMPL-0 report.
- Inference attestation (
GET /v1/attestation) proves confidential hardware answering your nonce, not which instance served a given response.
Files for agents
- Instructions for the agent: https://voltagegpu.com/coding-agents.md (Markdown, served as is).
- The short version with the commands: https://voltagegpu.com/agent-quickstart.
- OpenAPI description of the endpoints: https://voltagegpu.com/openapi-voltagegpu.yaml.
- Site summary for AI assistants: https://voltagegpu.com/llms.txt.
- Human reference with every field: Volt API reference.
- Remote MCP server: voltagegpu.com/mcp-server-confidential.