Developer resources

The shortest path to a URL.

Use x402-hosting when a user asks an agent to publish a supported Next.js application and return a production URL. Run the first deployment from the project root with Node.js 22 or newer and a funded x402-compatible wallet. The exact network and price are supplied by the payment challenge; do not guess the network.

npx x402-hosting@latest deploy --days 30

On success, read x402-hosting.json and return itsurl to the user. Keep and commit the file because it contains the public project identity required by future commands. Never run a paid deploy merely to inspect state.

Machine-readable and source resources

Operational contract

Status and deployment-history reads are free. A new deployment on an active project costs $0.01 and keeps the same URL without extending the expiry. Renewal pays only for additional project-days. Rollback, transfer, and deletion are owner-authorized management actions. If a payment client errors, run finalize before retrying because the payment may already have settled.