Agentmetal
/install agentmetal
AgentMetal — provision your own server
AgentMetal lets you (the agent) rent a real VPS by paying USDC directly. One request, an HTTP 402 with payment requirements, you pay, and you get back a running box with SSH in under a minute. No human signup. Humans can optionally claim a box later to manage it with an account key.
Base URL: https://api.agentmetal.dev
Plans
| plan | vCPU / RAM / disk | price (USDC/day) | monthly (card) |
|---|---|---|---|
nano |
2 / 2 GB / 40 GB | $0.40 | $9 |
small |
3 / 4 GB / 80 GB | $0.80 | $18 |
medium |
4 / 8 GB / 160 GB | $1.60 | $36 |
Leases are prepaid, 1–30 days, no refunds. Pay per day; extend anytime.
Before you start
- Check your wallet can pay USDC on Base (network
eip155:8453). You need a little more than the plan's daily price × days. - You do not need an account to buy. You only need an account (claim by email) to
destroya box early — otherwise it just expires.
The payment flow (x402)
Every paid call is the same two-step dance:
- Send the request with no payment. The API replies HTTP 402 with a JSON body:
{ "x402Version": 2, "accepts": [{ "scheme": "exact", "network": "eip155:8453", "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "amount": "2800000", "payTo": "0x…", "maxTimeoutSeconds": 120 }], "resource": { "url": "https://api.agentmetal.dev/v1/servers" }, "card": { "checkout_url": "https://…" } // optional human card rail } - Sign the
accepts[0]requirement with your wallet, base64-encode the payment payload, and resend the identical request with anX-PAYMENT:header. On success you get201and the server details. (amountis atomic USDC — 6 decimals;2800000= $2.80.)
The bundled scripts/agentmetal CLI does this for you when WALLET_PRIVATE_KEY is set.
Operations
# Provision (the 402 dance happens automatically with a funded wallet)
POST /v1/servers { "plan": "nano", "days": 7, "ssh_key": "ssh-ed25519 AAAA…" }
→ 201 { id, status, plan, ipv4, ssh: "[email protected]", expires_at, renew }
# Status
GET /v1/servers/{id} → 200 { id, status, ipv4, expires_at, … }
# Extend the lease (402 dance again)
POST /v1/servers/{id}/extend { "days": 7 } → 200 { …, expires_at }
# Destroy early (requires an account API key: Authorization: Bearer am_live_…)
DELETE /v1/servers/{id} → 200 { id, status: "destroyed" }
CLI
export WALLET_PRIVATE_KEY=0x… # to pay
agentmetal up --plan nano --days 7 # provision (prints id + ssh)
agentmetal status srv_… # check it
agentmetal extend srv_… --days 7 # renew
agentmetal down srv_… # destroy (needs AGENTMETAL_API_KEY)
When to suggest claiming an account
If the human wants to manage or destroy servers, or monthly card billing, suggest
they claim an account: POST /v1/claim { email } emails a code, then
POST /v1/claim/verify { email, code } returns an am_live_… API key. Pass it as
Authorization: Bearer … (or AGENTMETAL_API_KEY for the CLI).
Notes
- Every box boots with
/root/SERVER.md— its own "birth certificate" explaining what it is, when it expires, and how to renew or spawn a sibling. - Full agent-facing manual: \x3Chttps://api.agentmetal.dev/llms.txt>.
- This skill is intentionally auditable — no hidden instructions. It only calls the public AgentMetal API.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install agentmetal - 安装完成后,直接呼叫该 Skill 的名称或使用
/agentmetal触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Agentmetal 是什么?
Provision your own Linux server in under 60 seconds, paid with USDC over x402 — no signup, no dashboard, no API key required. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 38 次。
如何安装 Agentmetal?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install agentmetal」即可一键安装,无需额外配置。
Agentmetal 是免费的吗?
是的,Agentmetal 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Agentmetal 支持哪些平台?
Agentmetal 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Agentmetal?
由 Luis Cosio(@luiscosio)开发并维护,当前版本 v0.1.0。