Documentation
Ax402 combines a hosted x402 gateway with SDKs, CLI, MCP tools, and e-commerce plugins. Payment protocol details live in the x402 foundation — these docs cover the Ax402 control plane and integration paths.
Choose your path
Gateway wrap
Monetize an existing HTTP API via the hosted gateway — dashboard, domains, no upstream code changes.
SDK integration
Automate APIs, endpoints, and stats from TypeScript, Go, or Python; add buyer clients in-process.
SDKs and tools
TypeScript
@axlabs/ax402-sdk — dashboard parity + buyer module.
Go
Control-plane client and buyer helpers for CI/CD.
Python
Pydantic models, sync/async clients, optional buyer extra.
Buyer clients
Pay gateway URLs with x402 signing across languages.
CLI
Shell automation with scoped API keys.
MCP server
Agent tools for Cursor, Claude Desktop, and compatible hosts.
Agent workflows
CLI + MCP recipes, scope presets, and pay_url setup.
Plugins
Environment variables
AX402_BASE_URL— control plane URL (defaulthttp://api.localhost:8090)AX402_API_KEY— scoped key for CLI, MCP, and automationAX402_EVM_PRIVATE_KEY— buyer signing (CLI pay, MCP pay_url)