Free x402 tool

x402 Quickstart Configurator

Choose a stack and network, then generate an educational starter sequence that shows the install step, payment requirements, protected route, and first unpaid request check.

Configurator

Starter inputs

Express on Base Sepolia

Generated starter

 

How to use the output

  1. Run the generated install command in a throwaway test project.
  2. Set the receive address and facilitator URL from environment or deployment config.
  3. Curl the route without payment first and confirm it returns HTTP 402.
  4. Use the official buyer quickstart or SDK examples for the paid retry.

FAQ

Tool FAQ

Can I paste this directly into production?

No. Treat the generated output as a tutorial starter. Recheck package names, SDK signatures, facilitator URLs, and network support against the official docs before production use.

Which network should I choose first?

Choose a testnet first, such as Base Sepolia for an EVM path or Solana devnet for an SVM path. Move to mainnet only after the unpaid, paid, invalid-payment, and failure paths are tested.

Does the configurator store my address or route?

No. Inputs are used only by client-side JavaScript to render the snippet in your browser.

Sources used

  1. x402 docs: Quickstart for Sellers

    Official seller setup, package installation, testnet defaults, and payment middleware examples.

  2. x402 docs: Networks and Token Support

    Documents CAIP-2 network identifiers and supported network namespaces.

  3. x402 docs: HTTP 402

    Explains how x402 uses HTTP 402 to communicate payment requirements.

  4. x402 Foundation GitHub repository

    Open-source SDKs, examples, and the typical x402 request/payment/settlement flow.

  5. x402docs.com reference tools

    Reference-style x402 tools for building 402 responses, pricing, and decoding payment headers.