Agents
From vibe coding to a production URL.
Vibe coding produces working code fast, but the last mile — deployment — is where most sessions stall. One command closes that gap: npx x402-hosting@latest deploy --days 30 takes the Next.js project in your editor to a production URL for $6.01, prepaid in USDC. No account, no dashboard, no break in the session.
Prompt, code, deploy — one session
The typical vibe-coding loop is prompt, generate, run, refine. Hosting usually interrupts it with account creation and billing forms. Here the same agent that wrote the code deploys it: the CLI builds the project locally with OpenNext, the wallet signs an HTTP 402 challenge, and the platform publishes the artifact as a Cloudflare Worker. You go from idea to URL without leaving the conversation that produced the code.
The last mile in one command
When the app works locally, the agent runs:
$ npx x402-hosting@latest deploy --days 30
The local build runs before any payment, so a project that does not compile costs nothing. After the build succeeds, the wallet pays $0.01 for the upload plus $0.20 per project-day — $6.01 for a month. The result is a stable URL likehttps://app-682fe91de571a7338dd1.x402-hosting.com that you can share immediately.
Verifying without paying
After the deploy, the agent does not have to trust the output — it can check. Status and deployment-history reads are free: status returns the project's URL, expiry, and current deployment, and deployments lists every deployment ever published. Both support --json for machine parsing. The agent verifies the result, then reports the URL to you.
Idea to URL for $6.01
- Prompt the agent; get a working Next.js app
- Run one deploy command from the project root
- Pay $6.01 in USDC for 30 days of hosting
- Verify with free status reads
- Iterate: redeploys at the same URL cost $0.01
Iterate while it is live
The first deploy writes x402-hosting.json to the project root, so every later session knows the URL, project id, and owner wallet. Redeploying after another round of prompts costs $0.01 and keeps the same address. When the experiment has run its course, let the 30 days expire — there is nothing to cancel. For the full cost model, see pricing.