SDKS
Python
Sync/async control plane + buyer
Pydantic-typed control-plane client with sync and async variants. Buyer support is an optional extra. Package name: ax402-sdk (install from source until PyPI publish). Source: github.com/AxLabs/ax402-sdks (packages/python/).
Install
git clone https://github.com/AxLabs/ax402-sdks.git
cd ax402-sdks/packages/python
pip install -e .
pip install -e ".[buyer]" # buyer + x402 signing depsBuyer
Pay gateway URLs with EVM exact or batch-settlement. See Buyer clients.
from ax402_sdk.buyer import BuyerClient
result = BuyerClient.from_env().get("https://my-api.ax402.io/v1/foo")
print(result.status_code, result.settlement)Batch endpoints: BuyerClient.from_env(batch=BatchBuyerOptions(deposit_multiplier=5)).
Async
from ax402_sdk.buyer import AsyncBuyerClient, evm_signer_from_private_key
async with AsyncBuyerClient(evm_signer_from_private_key(key)) as client:
result = await client.get("https://my-api.ax402.io/v1/foo")Control plane
from ax402_sdk import Ax402Client
client = Ax402Client.from_env() # AX402_BASE_URL, AX402_API_KEY, AX402_JWT
apis = client.apis.list()
api = client.apis.create(name="My API", slug="myapi", upstream_base_url="https://api.example.com")Resources: auth, keys, apis, endpoints, domains, openapi, stats, settlements, billing, income, exchange_rates, config. API helpers: apis.check_slug_availability, apis.probe_upstream.
JWT-only routes (MFA, passkeys) are TypeScript-only today.
Platform helpers
from ax402_sdk.platform.helpers import gateway_url, wrap_openapi, setup_api_with_default_domain
from ax402_sdk import SCOPE_PRESETS, usdc_to_atomic, build_usdc_acceptAgents
Pair with the MCP server or agent guide for automation recipes.