x402 payments for AI agents

x402 uses HTTP 402 Payment Required to communicate payment requirements for a resource. OpenAny supports x402 top-ups to fund your shared balance. Model and data API calls through the OpenAny CLI still use an API key. Direct x402 resource payments are a separate flow and require explicit endpoint support.

Updated

Balance funding versus direct payment

FlowWhat gets paidResource authentication
x402 top-upCredits added to your OpenAny balanceOpenAny API key for subsequent calls
Direct x402A specific resource requestThe endpoint's verified payment contract

The OpenAny CLI documents the top-up flow, not direct per-resource x402 execution. This page does not advertise direct payment for every API in the catalog.

Networks and assets

The published CLI instructions list Base (eip155:8453) and Solana (solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp) for email-identity top-ups. Wallet-identity support follows the service's published EVM network configuration. This is not a guarantee that every network is enabled for every account.

The current configuration and locked quote determine the supported asset, token contract, recipient and amount. Do not infer an asset or address from a chain name, and never send funds to a documentation example.

Inspect before authorizing a payment

  1. Inspect payment options. Open Credits or inspect the CLI top-up configuration. Confirm the account to credit and the networks and assets currently offered for that identity.
  2. Review the locked quote. Check the asset, network, recipient, expiration, total payment, fees and net credits. An estimate is not the locked order quote.
  3. Authorize within a budget. Approve the specific payment or an explicitly bounded policy before signing. Signing in or copying commands is not payment approval.
  4. Confirm payment and credit. Keep the original intent and order reference. Check status until payment and credit are both confirmed. For uncertain outcomes, inspect the existing order rather than creating another payment.
Inspect configuration and estimate only
# Read configuration only; this does not create or pay for an order.
openany topups config -j

# After authorized email login, request an estimate (not a payment).
# Use Base only if the current configuration offers it for your account.
openany topups quote --amount-usd 1 --network eip155:8453 -j

These commands do not authorize a payment or credit your balance. Read the complete authorized top-up workflow in SKILL.md for login, payment authorization and recovery. Use only networks supported by the installed CLI and current service.

Protocol reference

The general x402 flow is a payment challenge, authorized payment and a retried request using the required proof. Exact assets, networks and formats depend on the implementation.

Official x402 documentation

Frequently asked questions

Is an x402 top-up the same as a direct API payment?

No. A top-up credits the OpenAny shared balance. Standard calls then authenticate with an API key. Direct x402 pays for a specific resource under that endpoint's payment contract; it is not enabled for every listing by funding a balance.

Which network and asset should I use?

Use the network, asset, recipient and amount in the current locked payment quote. Inspect the available options in Credits or the CLI top-up configuration. Never infer support from a network logo or send funds to example addresses.

Are there payment fees?

Inspect the quote for the total paid, net credits and processing, conversion or network fees. No universal top-up fee is stated here.

What if a payment times out?

Keep the original intent and order reference and check its status. Do not submit a second payment for an uncertain outcome. Report funds credited only after payment and credit status are both confirmed.