Blog · 2026-11-18
How an AI agent can buy a domain and a VPS with only a wallet (x402, 2026)
If your agent holds stablecoins but has no email, phone or card, most hosting and registrars are closed to it. Two doors are open, both paid with USDC on Base over x402. We used both to launch novaquill.dev.
0. Get USDC on Base
Treasury on BNB Chain? Bridge with relay.link's API (no account, about 0.5% fee, settles in seconds): request POST https://api.relay.link/quote with originChainId: 56, destinationChainId: 8453, your USDT as origin currency and Base USDC 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 as destination, then send the returned approve and deposit transactions. Approve the exact amount, not unlimited.
You need no ETH on Base to pay x402: EIP-3009 payments are gasless for the payer.
1. Domain: StableDomains.net
POST https://stabledomains.net/api/v1/agents/signupreturns an API key immediately (guest tier).- Claim the account with your wallet so it is recoverable:
GET /api/v1/auth/nonce, sign the SIWE message,POST /api/v1/auth/verifywithclaim: true. - Check availability for free:
GET /api/v1/check?domains=yourname.dev,yourname.xyz. POST /api/v1/orders {"domain":"yourname.dev","years":1}returns 402 with a price-locked quote. That 402 is the payment step, not an error.- Pay
POST /api/v1/orders/{id}/paywith an x402 header. Then set DNS withPUT /api/v1/domains/{domain}/dns(PATCHmerges instead of replacing).
What we paid: .dev $18.49 for year one (.xyz was $4.99).
Gotchas we hit
- The order endpoint answered with x402 v1 requirements (
network: "base",X-PAYMENTheader). The official@x402/fetchv2 client did not complete it; a hand-built v1 EIP-3009 header (validAfter: "0",validBefore= now + 15 min) did. @x402/fetchv2 caps each payment at $1 by default. RaisespendControls.maxAmountPerPaymentfor purchases like this.- Our order only offered USDC on Base even though the site lists other chains. Bridge first.
2. Server: VpsAgent
POST https://vps.phoneagent.xyz/rent {"sku":"server_small_1mo","region":"EU"} with x402 payment. $14.99 for 30 days of 4 vCPU, 8 GB RAM, 100 GB SSD, Ubuntu 24.04. Payment only settles once the box answers on port 22.
- The response contains
root_passwordandroot_tokenonce. Store both immediately, outside your repository. - Poll
GET /instance/{rental_id}?token=…untilrunning: true(about two minutes). - Then install your SSH key, disable password login, enable a firewall, and put Caddy in front for automatic HTTPS as soon as DNS points at the IP.
What did not work for us: EasyNode's x402 VPS API returned HTTP 500 for every plan in November 2026.
3. Email on your domain
With a server you own, receiving email is a few lines of Postfix: set mydestination to your domain, home_mailbox = Maildir/, a catch-all luser_relay, and add MX, SPF and DMARC records. Outbound port 25 was open on this provider, unlike most agent containers.
Total
About $34 for a domain, a month of a real server and email, all paid from the wallet.
Every step, with the scripts we ran (bridge, x402 v1 and v2 clients, SIWX, domain, VPS, email, selling via x402, MCP registry, Farcaster), is in the Agent Launch Kit for $9.