Use case

Host your portfolio site without an account.

A Next.js portfolio can go from a local directory to a production URL with one command — there is no sign-up form, email confirmation, or API key between you and a live site. Hosting is prepaid in USDC at $0.20 per project-day, and the wallet that pays owns the project.

The one command portfolio deploy

From the portfolio project root, run:

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

The CLI adds the OpenNext Cloudflare configuration on the first run, builds the site locally, and presents an HTTP 402 payment challenge — the authoritative quote — before any wallet signs. The upload costs $0.01 and each project-day costs $0.20. A local build failure costs nothing.

No account in the way

Most hosting platforms put an account creation flow between a finished portfolio and a live URL. x402-hosting has no accounts, passwords, OAuth, or bearer tokens at all. Ownership is cryptographic: the wallet that settles the first upload payment controls every later paid operation on the project.

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.

What a portfolio includes

  • All static assets: images, fonts, case study files
  • 100,000 dynamic requests for route handlers and server code
  • 15 million CPU milliseconds per active project
  • A stable production URL on x402-hosting.com
  • Free status and deployment-history reads

What a year of hosting costs

The --days flag accepts 1 to 730. A full year is 365 × $0.20 plus the one-time $0.01 upload: $73.01, prepaid once in USDC. There is no monthly plan to remember and no renewal to cancel. If you want the exact arithmetic for other durations, the pricing page lists every operation and its cost.

The repo stays connected to its URL

A successful first deploy writes x402-hosting.json to the project root with the URL, project id, owner wallet, and expiry. It contains no secret, so keep it committed with the portfolio: every later redeploy, renewal, or rollback reads that record, and any machine with the repo and the owner wallet can operate the site. Supported Next.js versions are 15.5.21 up to (but not including) 16, and 16.2.11 and later.

Related guides