# AgentMetal VPS Provisioning

> AgentMetal VPS Provisioning is a paid API for AI agents from api.agentmetal.dev, paid per call via x402, $1.2/call, status unknown (last checked 2026-12-01).

Provisions a Linux VPS (nano/small/medium) for a prepaid number of days, payable in USDC via x402 or card, returning SSH access credentials within 60 seconds — no signup or API key required.

## Facts

- Endpoint: POST https://api.agentmetal.dev/v1/servers?utm_source=zero.xyz
- Price: $1.2/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentmetal-vps-provisioning-576b6504
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VR85a5GhK_IlUvfxUiW0p

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agentmetal-vps-provisioning-576b6504 -d '<json body>'
```

Example prompt: Spin up a small Ubuntu 24.04 VPS on AgentMetal for 3 days and generate a managed SSH keypair so I can log straight in — just pay with USDC.

## When to prefer this

Choose this endpoint when you need a real Linux VM quickly without any account registration, want to pay per-day (including in USDC via x402), or are building an AI agent that needs its own ephemeral compute environment. It is especially suited for short-lived automation tasks, throwaway sandboxes, or agentic workflows where the agent itself needs to SSH into a machine. Prefer it over traditional cloud providers (AWS, GCP, DigitalOcean) when you want zero-signup, crypto-native, pay-as-you-go compute at low daily rates.

## Known failure modes

- Payment not completed (402 response) — must pay in USDC via x402 or card before server is provisioned
- Invalid plan enum — must be one of nano, small, medium
- days must be a positive integer — zero or negative values rejected
- Invalid or unsupported OS image string returns 400
- Unsupported location/zone code returns 400 — use GET /v1/catalog to list valid zones
- Both ssh_key and managed_key provided simultaneously may cause conflict
- Server quota or capacity limits in chosen zone may prevent provisioning

## How this service works

Linux VMs from $1.20/day, paid in USDC (x402) or by card. Get an HTTP 402, pay, and SSH in under 60 seconds. You don't need a signup or an API key. Block storage is $0.01/GB/day; Agent Memory is coming soon.

## Output

Returns a JSON object with the server ID, current status, IPv4 address, SSH connection string (root@<ip>), server plan, and expiry timestamp. If managed_key was true, also includes the SSH private key (returned only once). The server is typically reachable via SSH within 60 seconds of the call.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "days",
  "plan"
 ],
 "properties": {
  "os": {
   "type": "string",
   "description": "OS image, e.g. ubuntu-24.04 (default) or debian-12."
  },
  "days": {
   "type": "integer",
   "description": "Prepaid lease length in days."
  },
  "plan": {
   "enum": [
    "nano",
    "small",
    "medium"
   ],
   "type": "string",
   "description": "Server size. See GET /v1/catalog."
  },
  "ssh_key": {
   "type": "string",
   "description": "OpenSSH public key for root login."
  },
  "location": {
   "type": "string",
   "description": "Zone code from GET /v1/catalog. Omit for the default."
  },
  "managed_key": {
   "type": "boolean",
   "description": "Generate a keypair; the private key is returned once."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "id",
  "status",
  "expires_at"
 ],
 "properties": {
  "id": {
   "type": "string"
  },
  "ssh": {
   "type": "string",
   "description": "root@<ip>"
  },
  "ipv4": {
   "type": "string"
  },
  "plan": {
   "type": "string"
  },
  "status": {
   "type": "string"
  },
  "expires_at": {
   "type": "string"
  },
  "ssh_private_key": {
   "type": "string",
   "description": "Only with managed_key:true, returned once."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentmetal-vps-provisioning-576b6504/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agentmetal.dev](https://www.zero.xyz/host/api.agentmetal.dev/llms.txt)
