{"slug": "show-hn-x402vps-docker-containers-for-ai-agents-paid-per-hour-with-usdc", "title": "Show HN: X402vps – Docker containers for AI agents, paid per hour with USDC", "summary": "X402vps launched a pay-per-hour Docker container service for AI agents that uses USDC on Base mainnet for payment, with no signup or API key required. The service offers internet access on node and core plans, free exec commands, and supports custom Docker images. Pricing starts at $0.04 per hour for a node plan container.", "body_md": "No signup. No API key. No dashboard.\n\nYour wallet is your identity. USDC on Base mainnet.\n\nInternet access on node & core plans — scrape, fetch, install.\n\nFOUR STEPS. NO HUMANS INVOLVED.\n\nPOST /api/create with plan + hours\n\nServer responds with USDC payment challenge\n\nSigns EIP-3009 transfer, retries with proof\n\nDocker provisioned. Exec + internet — ready\n\nPAY PER HOUR. NO SUBSCRIPTIONS. EXEC IS FREE.\n\n10 IMAGES. ZERO COLD START. RUN ON MIN TIER OR HIGHER.\n\nEach image has a **minimum tier** (RAM needed to run).\nYou can run any image on a higher tier for more CPU/RAM/bandwidth — e.g. `{\"plan\":\"core\",\"image\":\"python\"}`\n\ngives Python with 2GB RAM.\nOr pass any Docker image name for custom images (slower, pulls from Docker Hub).\n\nATOM ISOLATED. CELL/NODE/CORE HAVE INTERNET.\n\nJSON IN. 402 OUT. NO BULLSHIT.\n\n```\n# Create a container with internet (node plan, 1hr = $0.04)\ncurl -X POST https://x402vps.com/api/create \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"plan\":\"node\",\"leaseHours\":1}'\n\n# Scrape a website (free, exec is always free)\ncurl -X POST https://x402vps.com/api/exec \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"id\":\"ctr_4cb194\",\"command\":\"wget -qO- https://api.github.com/zen\"}'\n\n# Install packages (writable rootfs on node/core)\ncurl -X POST https://x402vps.com/api/exec \\\n  -d '{\"id\":\"ctr_4cb194\",\"command\":\"apk add --no-cache python3\"}'\n\n# Destroy when done\ncurl -X POST https://x402vps.com/api/destroy \\\n  -d '{\"id\":\"ctr_4cb194\"}'\njs\nimport { x402Client, x402HTTPClient } from \"@x402/core/client\";\nimport { registerExactEvmScheme } from \"@x402/evm/exact/client\";\nimport { privateKeyToAccount } from \"viem/accounts\";\n\nconst account = privateKeyToAccount(\"0x...\");\nconst client = new x402Client();\nregisterExactEvmScheme(client, { signer: account, networks: [\"eip155:8453\"] });\nconst http = new x402HTTPClient(client);\n\n// 1. Create a node container WITH internet ($0.04/hr)\nconst resp = await fetch(\"https://x402vps.com/api/create\", {\n  method: \"POST\",\n  headers: { \"Content-Type\": \"application/json\" },\n  body: JSON.stringify({ plan: \"node\", leaseHours: 1 })\n});\n\n// 2. Sign payment → retry with proof\nconst req = JSON.parse(atob(resp.headers.get(\"payment-required\")));\nconst payload = await client.createPaymentPayload(req);\nconst headers = http.encodePaymentSignatureHeader(payload);\n\nconst paid = await fetch(\"https://x402vps.com/api/create\", {\n  method: \"POST\",\n  headers: { ...headers, \"Content-Type\": \"application/json\" },\n  body: JSON.stringify({ plan: \"node\", leaseHours: 1 })\n});\n\nconst container = await paid.json();\n// { id: \"ctr_4cb194\", status: \"running\", internet: true, bandwidthUsed: { quotaMB: 500 } }\n\n// 3. Scrape! (exec is FREE)\nconst exec = await fetch(\"https://x402vps.com/api/exec\", {\n  method: \"POST\",\n  headers: { \"Content-Type\": \"application/json\" },\n  body: JSON.stringify({ id: container.id, command: \"wget -qO- https://httpbin.org/ip\" })\n});\n```\n\nEVERYTHING AN AI AGENT NEEDS.", "url": "https://wpnews.pro/news/show-hn-x402vps-docker-containers-for-ai-agents-paid-per-hour-with-usdc", "canonical_source": "https://x402vps.com", "published_at": "2026-07-24 12:15:44+00:00", "updated_at": "2026-07-24 12:52:40.210863+00:00", "lang": "en", "topics": ["ai-agents", "ai-infrastructure", "developer-tools"], "entities": ["X402vps", "Base", "USDC", "Docker"], "alternates": {"html": "https://wpnews.pro/news/show-hn-x402vps-docker-containers-for-ai-agents-paid-per-hour-with-usdc", "markdown": "https://wpnews.pro/news/show-hn-x402vps-docker-containers-for-ai-agents-paid-per-hour-with-usdc.md", "text": "https://wpnews.pro/news/show-hn-x402vps-docker-containers-for-ai-agents-paid-per-hour-with-usdc.txt", "jsonld": "https://wpnews.pro/news/show-hn-x402vps-docker-containers-for-ai-agents-paid-per-hour-with-usdc.jsonld"}}