SDKS
SDK overview
Control plane + buyer across languages
Ax402 SDKs provide buyer helpers to pay gateway URLs and control-plane clients to manage APIs, endpoints, domains, and keys. They ship from the ax402-sdks repository.
npm packages
| Package | npm |
|---|---|
@ax402/sdk | npmjs.com/package/@ax402/sdk |
@ax402/cli | npmjs.com/package/@ax402/cli |
@ax402/mcp-server | npmjs.com/package/@ax402/mcp-server |
@ax402/react-paywall | npmjs.com/package/@ax402/react-paywall |
Go module: github.com/AxLabs/ax402-sdks/go. Python: ax402-sdk (source in ax402-sdks; PyPI coming soon).
Paying gateway URLs
Start here if you consume paid APIs. Buyer clients sign x402 payments against gateway hostnames — not AX402_BASE_URL.
Buyer clientsTypeScript, Go, Python — pay gateway URLs from code.React paywallBrowser wallet UI for SPAs (exact + batch-settlement).
- Env:
AX402_EVM_PRIVATE_KEY(same as CLIpay urland MCP)- Example:
https://my-api.ax402.io/v1/foo - Batch-settlement: TypeScript, Go, and Python buyer modules; browser wallet via React paywall
- Example:
Control plane (seller automation)
TypeScriptFull surface — MFA, facilitator, batch buyer.GoCore automation + buyer for CI/CD.PythonSync/async control plane + buyer.