Ask402

x402 sdks and libraries

Use the official SDK for your language where there is one, and a community library where there is not. See which x402 SDK to use for the packages by job.

  • Reference client, server middleware and network packages, published on npm under the @x402 scope.

    @x402/fetch, @x402/axios, @x402/express, @x402/next, @x402/hono, @x402/fastify, @x402/mcp and others.

  • Reference Python implementation, published as x402 on PyPI.

    FastAPI and Flask servers. httpx and requests clients.

  • Reference Go client, server and facilitator module.

    github.com/x402-foundation/x402/go/v2

  • Coinbase SDK providing managed wallets and CDP facilitator configuration for x402.

  • Community Rust toolkit with Axum middleware, a Reqwest client and a self-hostable facilitator.

    Crates x402-axum and x402-reqwest.

  • Rails paywall helper from Quicknode, published as a Ruby gem.

  • Third-party Java client and Spring Boot starter for x402.

  • Client, server and facilitator helpers inside the thirdweb SDK.

  • MCP client and paid-tool server support for x402 on Cloudflare Workers.

  • Open-source client, middleware and facilitator framework covering x402 versions 1 and 2 and MPP.

  • Adds x402 payment messages to the Agent2Agent protocol.

Checked on . Details such as supported networks change often, so confirm them on each project’s own site.

More of the directory

Who writes this. Ask402 is published by Havok Holdings LLC, which also runs Agent402, one of the x402 services covered here. Agent402 is labelled wherever it appears. Everything else is described from each project’s own documentation, and nobody pays to be listed.