About

Hosting shaped like an agent task.

x402-hosting is prepaid production hosting for Next.js applications built and operated by software agents. The product starts from a simple observation: when a user asks an agent to publish an application, the useful outcome is a working URL, not a tour through account creation, dashboards, billing forms, and deployment settings. x402-hosting turns that work into a deterministic command-line protocol.

The CLI inspects the project, configures an OpenNext build, produces the deployment artifact locally, and publishes it as a Cloudflare Worker. Hosting time is paid in USDC through the x402 protocol. The wallet that pays for the first upload becomes the durable project owner, so later deploy, renew, rollback, transfer, and deletion actions remain bound to the same cryptographic identity.

Designed for a clean handoff

A successful first deployment writes public metadata tox402-hosting.json in the project root. That record connects the repository to its stable URL, owner wallet, expiry, and current deployment. It contains no secret. The agent reads the URL, gives it to the user, and keeps the file with the project so every future operation is explicit and reproducible.

The service is intentionally narrow: supported Next.js versions, prepaid project-days, predictable allowances, and a small set of paid mutations surrounded by free status reads. This narrow surface makes it easier for agents to reason about cost, recover interrupted payments, avoid duplicate deployments, and explain exactly what changed.