Use case

Host a Next.js storefront with one command.

A commerce front end built as a supported Next.js app deploys to production with one command: npx x402-hosting@latest deploy. Hosting is prepaid in USDC at $0.20 per project-day, there is no revenue share or platform subscription, and the paying wallet owns the storefront.

The command

From the storefront project root, run:

$ npx x402-hosting@latest deploy --days 90

The CLI adds the OpenNext Cloudflare configuration on the first run, builds locally, and only then presents an HTTP 402 payment challenge — the authoritative quote before any wallet signs. The upload costs $0.01 and each project-day $0.20, so ninety days is $18.01. A failed local build never reaches payment.

Commerce front ends as Next.js apps

Product pages, category routes, cart state in route handlers, and checkout redirects all run as a standard Next.js deployment. An active project includes its static assets, 100,000 dynamic requests, and 15 million CPU milliseconds. Supported Next.js versions are 15.5.21 up to (but not including) 16, and 16.2.11 and later. Catalog updates are redeploys at the same URL for $0.01.

No revenue share, no platform subscription

  • Hosting cost: $0.20 per project-day, prepaid in USDC
  • Zero percentage of sales taken by the hosting platform
  • No monthly plan, tier, or per-seat pricing
  • Renewal: $0.20 × days from the owner wallet
  • Status and deployment-history reads: free

The full cost model — every operation and its exact price — is on the pricing page.

The wallet owns the store

The wallet that settles the first upload payment owns the project, and every later paid mutation — redeploy, renewal, rollback — must settle from that same wallet. There is no admin account a platform can suspend and no panel login to lose.

owner walletthe projectDeploy, renew, rollback, transfer, and delete must settle from the same wallet.
Ownership is cryptographic: the wallet that pays the first upload controls the project.

Selling the store

If the store changes hands, hosting moves with it. npx x402-hosting@latest transfer --to 0x… moves the project to the buyer's wallet for $0.01, and the live site never goes offline during the handover. The ownership transfer guide covers the flow in detail.

Related guides