To set an AI agent spending limit, define the maximum amount, currency, expiry and payment route, then enforce those rules where the payment is executed. FluxA provides wallet mandates, a per-agent monthly cap and separate x402 automatic policies. These controls solve different problems and should be tested separately.
A prompt that says “spend less than $5” is a task instruction. A payment control must also check the request before funds move. This guide shows how to build that distinction into a FluxA workflow, with documentation reviewed on November 16, 2026.
Key takeaways
- Use a FluxA mandate for a total budget and validity window. The user reviews and signs the authorization before it becomes usable.
- Use the monthly agent cap for an aggregate limit. Setting this cap to 0 disables it; it does not freeze spending.
- Use a separate x402 policy for host-specific automatic payments. That policy can constrain individual amounts, daily usage, monthly usage and frequency.
- Do not rely on the mandate's hostAllowlist or per-transaction fields. Current API documentation says they are stored for reference, not enforced.
- Test what happens at the boundary. A request that no longer qualifies for automatic payment should stop or seek explicit approval, never silently expand its own authority.
Choose the control that matches the payment
| Control | Useful for | What to verify |
|---|---|---|
| Provider API quota or budget | Calls billed by one API provider | Whether it is a hard limit, an alert or a delayed usage check; whether it covers a key, project or account. |
| FluxA wallet mandate | A bounded spending task | Signature, enabled state, currency, remaining total budget and validity window. |
| FluxA monthly agent cap | Aggregate agent usage across hosts | Current usage, reset behavior and when further payment requires approval. |
| FluxA x402 automatic policy | Recurring payments to a particular host | Host, amount and frequency limits, expiry and active state. |
| Scoped card or checkout credential | A supported merchant purchase | The specific credential's scope and card or processor rules. |
Step 1: write a budget the user can review
Start with a concrete task: “Research five companies using approved data services, spending no more than 5 USDC over 24 hours.” Decide whether that budget covers retries, taxes or other fees, and what result counts as completion. The amount is an illustrative budget, not a quote for five company reports.
Record approved providers in the application. Describing them in the task or mandate does not itself create an enforced merchant restriction. Keep any payment destination check independent of instructions returned by the service.
Step 2: request a FluxA mandate

The mandate API accepts a plain-language intent, amount and duration, then returns an authorization URL for the user. An illustrative request body for a 5 USDC budget is:
{
"intent": {
"naturalLanguage": "Research five companies with up to 5 USDC over 24 hours",
"currency": "USDC",
"limitAmount": "5000000",
"validForSeconds": 86400,
"category": "company-research"
}
}USDC uses six decimal places in this API: 5 USDC is 5,000,000 atomic units. The duration starts from mandate creation. Follow the documented create-intent flow with the agent's authentication, show the returned authorization URL to the user, and wait for signature. This example creates no authorization by itself and should not be treated as an executed payment.
Before paying, check eligibility for the requested currency and amount. A signed status alone is insufficient: the mandate must also be enabled, within its validity window and have enough budget remaining. The eligible-mandates endpoint can help select a usable mandate. Its host parameter is not an enforced destination filter.
Step 3: set a monthly agent cap
In FluxA Wallet, open AI Agents, select the agent, edit Monthly limit and save. Review the current usage and remaining allowance shown alongside it.
For example, a recurring research agent might have a 20 USDC monthly cap in addition to a smaller task budget. Choose values based on the work you authorize. The documented monthly counter resets on the first day of each calendar month; raising the limit does not reset usage.
A value of 0 disables the monthly cap. When the cap is exceeded, further payment requires explicit approval or an authorized limit change. Do not use zero as a stop switch. See the monthly spend-limit guide for the current scope.
Step 4: configure host-specific x402 automation
For recurring x402 calls, open AI Agents → select the agent → x402 Payment Policy → + Add Policy. Select the actual host and configure the available amount, frequency and expiry fields. FluxA also documents creating a policy when approving a payment request through “Always allow for this host.”
A conservative test policy might allow up to 0.10 USDC per request, 1 USDC and 20 requests per day, 5 USDC per month, a 10-second minimum interval and a short expiry. These are example settings for a test workload, not recommended prices or defaults. Use the limits appropriate to your real endpoint.
This is a separate policy system from the mandate API. An inactive, expired or exceeded policy does not grant a larger allowance; the request needs the documented approval path. See x402 automatic policies.
Step 5: handle cards and other providers separately
If the task needs a card, check the card's own controls. FluxA AgentCard is documented as a prepaid, reusable and rechargeable virtual card. Authorizing its funding is different from authorizing every later merchant charge. Keep the funded balance proportionate to the task and review withdrawal and card-management options in the AgentCard documentation.
If a task uses an API provider's own key, verify that provider's quota behavior. Some limits block calls; others only send alerts or apply at a project or organization level. A separate key improves attribution but does not automatically create a spending cap.
For supported consumer checkout, Stripe's Shared Payment Tokens provide scoped payment credentials. SPT is one Stripe integration, not a description of all Stripe agent products. Select the control that matches the actual payment route.
Step 6: test limits before increasing spend
| Test | Expected outcome |
|---|---|
| A payment within a signed mandate's budget and time window | It may proceed if all other requirements are satisfied. |
| A payment larger than the mandate's remaining budget | It cannot use that mandate; stop or obtain a separate valid authorization. |
| An expired or disabled authorization | It cannot be used for an automatic payment. |
| A destination outside the application's approved list | The application blocks it before payment, even if a mandate has enough budget. |
| An x402 request above the policy's per-payment or frequency limit | It does not qualify for automatic approval; use the documented approval path. |
| A paid request times out | Check the payment and service status before retrying; avoid duplicate charges. |
| The monthly agent cap is reached | The next payment follows the explicit approval or authorized limit-change flow. |
Use a documented test environment where available, or an explicitly approved low-value test. Keep the task ID, agent ID, amount, provider, authorization reference and payment result. Never include JWTs, API secrets or full card details in the audit log.
FAQ
Is depositing 5 USDC the same as setting a 5 USDC spending limit?
No. A balance is available funding. A limit expresses what an agent is authorized to use. With FluxA, configure the relevant authorization and verify that the intended payment route enforces it.
Can I enforce an allowed-host list through the mandate alone?
Not through the current mandate API's stored hostAllowlist field. Use an applicable x402 host policy and an application-level destination check appropriate to your route.
Does revoking authorization recover money already spent?
No. Revocation limits future use of that authorization. It does not reverse a completed payment or automatically withdraw money already loaded onto a card.
How should I stop an agent?
Stop its job, disable the applicable policy or authorization through supported controls, and revoke compromised credentials if necessary. Verify a subsequent request cannot proceed. Do not set the monthly cap to zero as a substitute.
How quickly does revocation take effect?
FluxA mandate eligibility requires the mandate to remain enabled and valid. After disabling or revoking the applicable authorization, confirm the updated status and check eligibility again before allowing another payment. This guide does not claim a measured revocation latency. In a controlled test, record the time of the change and the first rejected request; inspect already-submitted payments separately because revocation does not reverse a completed payment.
Next steps
For the wider checklist, read five agent spending controls. For wallet basics, see what an AI agent wallet does.