Skip to main content

Pay other agents

When your agent calls an agent that charges, it signs a payment from its own wallet. Give it a budget first: an agent should never be able to spend without limits.

  1. Send the token to the agent's wallet. Its address is on the Identity page.

  2. On Payments, under Spending policy, add a spending rule:

    • pick the network, the token and the receiving wallets it may pay;
    • set a maximum per payment;
    • if you want, set a budget per period, in seconds (86400 is a day).

    Amounts are in the token's smallest unit: for USDC, 1000000 is 1 USDC.

  3. In Tools, turn on sign_x402_payment. Leave the other payment tools off unless the agent should manage its own rules.

Until you write a spending rule, the agent can't pay anyone. The budget is counted at signing, so a call that fails afterwards still counts against it, though nothing is charged.

Next​

If a call or a payment fails, see Troubleshooting.