Purchasing with an AI agent

How to approve a proxy purchase by an AI agent

TL;DR

Let the agent read stock and prepare a quote. Before it spends, approve one named product, country, quantity, term and funding source. Record the exact quote and your ceiling. If the terms change or an earlier payment is unresolved, stop before sending money.

In this guide

Identify what the next action will do

A request to find a US mobile connection for a storefront test gives the assistant a research task. The next decision depends on whether the team needs to check availability, rent a whole device or buy time and traffic on a port.

Three actions an assistant can take during a regional test
Requested actionWhat can changeWhat the buyer should review
Check shared stock with MCPThe public tool reads a snapshot of listed endpoints. It takes no payment and makes no reservation.Country, pool, timestamp and stale flag. If the task only asks about availability, report the result here.
Rent a private modem from an accountConfirming the order can debit the account balance and start a rental term.Tariff, carrier, country, term, quantity and total in USD. Use the quoted unit price as expectedPriceUsd for the order.
Request a timed port through x402An unsigned request can return a payable HTTP 402 offer. Sending funds is a separate action.Requested port and term, GB, network, asset, exact amount and recipient from the selected offer.

The MCP stock example shows the public read. Use the stock field guide when a country count is positive but the job calls for a particular carrier. Timed ports and private rentals have their own availability checks. If either shared traffic or a whole modem would meet the requirement, compare the expected GB cost with the rental term before selecting the product to approve.

Write down one purchase the agent may make

Suppose a QA lead needs one US timed port for one hour, with 1 GB available for the test. The lead allows one payment on Base and sets a service-price ceiling of 4.50 USDC. At 22:47 UTC on 20 November 2026, an unsigned request for those parameters returned offers on Base and Solana. Each offer asked for 4,000,000 base units, or 4.00 USDC. Only the Base option fits this example.

This is a sample approval note kept by the buyer. Its labels belong to the team’s record. Send the documented request parameters to the service. Attach the exact offer the reviewer saw, including its asset identifier and recipient, and check any wallet network fee separately.

Task: US staging storefront QA
Product: one timed proxy port
Country: US
Duration: 3,600 seconds
Traffic: 1 GB
Funding: team wallet on Base, USDC
Service quote reviewed: 4.00 USDC
Service-price ceiling: 4.50 USDC
Allowed payments: one
Approval window: 15 minutes from review
If the offer changes: return to the reviewer

Compare the live offer with the approval

Keep the original request beside the approval so that country=US, duration=3600 and traffic=1 can be compared directly. In the HTTP 402 response, read network, asset, payTo and maxAmountRequired from the same entry in accepts. Verify that the wallet displays the approved network, token, recipient and amount. Read how to request an unsigned port quote if the reviewer needs a fresh offer.

  • 4.00 USDC on Solana. The quoted amount is still 4.00 USDC, but the network and token identifier differ. Return to the reviewer.
  • 4.25 USDC on Base. This is below the ceiling, but the team approved the specific 4.00 USDC offer. Present the new quote before signing.
  • Same price, different recipient or product. Stop and verify the merchant and purchase details through the documented service. A shared-pool allowance, a timed port and a whole-modem rental deliver different things.

Close the approval after one outcome

For a wallet payment, keep the original request, the selected quote, the transaction reference and the provisioning result together. Give the QA team the order status. Store issued credentials in the system that will use them. A public support message can identify the transaction without carrying the proxy password or a session token.

If the transfer went through and the response was lost, leave that approval pending while you look up the original payment. A timeout cannot establish that a second payment is due. For an account-funded rental, check the existing order first. An order marked reconciling can already have a debit. Once the modem is ready, test the HTTP and SOCKS5 entries on the rental card.

Common questions

Does checking stock or requesting an unsigned x402 quote pay for a proxy?
The public stock tool reads inventory. An unsigned HTTP 402 response describes an offer. Neither action sends a wallet payment. An agent client set up to pay automatically needs its spending controls in place before it is given a payable request.
Can I use the same approval for a private modem and a timed port?
Write a separate approval when the product or funding source changes. A private modem order uses a tariff, rental term and account balance. The port example uses a specific duration, traffic allowance and wallet offer.
Is the 15-minute approval window an API setting?
It is a time limit chosen by the example buyer. If it expires, get a new approval and read the current quote. The service can change its terms or availability earlier.

Sources