Use case
Host a Next.js blog with one command.
Any blog built as a supported Next.js app can be on a production URL with one command from the project directory. There is no account to create and no API key to configure; the CLI builds the site locally, publishes it as a Cloudflare Worker, and charges $0.20 per project-day in USDC over the x402 protocol.
The one command for a blog deploy
From the root of the blog project, run:
$ npx x402-hosting@latest deploy --days 30
The CLI detects the Next.js version, adds the OpenNext Cloudflare configuration, and runs the build locally. Only a successful build reaches payment: the API answers with an HTTP 402 challenge, and your wallet pays a $0.01 upload fee plus $0.20 per project-day. Thirty days of blog hosting is $6.01 in total.
What a hosted blog includes
An active project includes its static assets, 100,000 dynamic requests, and 15 million CPU milliseconds. Posts, images, feeds, and any route handlers or server components all run in production. Supported Next.js versions are 15.5.21 up to (but not including) 16, and 16.2.11 and later. The blog gets a stable URL likehttps://app-682fe91de571a7338dd1.x402-hosting.com.
Publishing a new post is a $0.01 redeploy
Each new post follows the same path: write it, run the same deploy command, and the CLI publishes a new build at the same URL. A redeploy costs $0.01 and does not extend the project's expiry. Because the build runs locally before payment, a post that fails to build costs nothing and never touches the live site.
Keeping the blog online
Renewal is $0.20 per additional project-day, paid from the same wallet. Run npx x402-hosting@latest renew --days 30 any time while the project is active to extend it. If the blog lapses, a 30-day grace window still lets you renew and republish at the same URL. Full details are on the pricing page.
Your wallet owns the blog
- The wallet that pays the first upload owns the project
- No platform login exists that could lock you out
- Redeploys, renewals, and rollbacks settle from the owner wallet
x402-hosting.jsonin the repo records the URL, project id, owner wallet, and expiry- Status and deployment-history reads are free