An agent hits a wall, gets asked to pay, pays in stablecoin, and walks through with working proxy access — all without a human, a card, or a contract. This is the end-to-end picture of how that actually works, written for architects and decision-makers. No code — just the mechanics, the flow, and what to watch.
The agent requests a proxy resource over HTTP. The server replies 402 Payment Required with an amount, a recipient address, and an accepted network. The agent sends that USDC from its own wallet, then retries the request with proof of payment. The server verifies it and returns working proxy access. No card, no account, no monthly contract — the agent simply pays for the GB it uses.
Autonomous software has a payments problem that humans don't. A person who needs a proxy opens a dashboard, types in a card, agrees to terms, and clicks buy. An agent can't do any of that cleanly. It has no legal personhood, no card-issuing relationship, and no patience for a human-shaped checkout flow with CAPTCHAs and email confirmations. Hand an agent a stored card and you've created a different problem: an unattended process with access to a credit line and no native way to scope or cap what it spends.
Yet bandwidth is exactly the kind of thing agents need on demand. A research agent discovers mid-task that a target is blocking its IP and needs a clean route through. A monitoring agent scales up overnight when a competitor changes prices. The need is unpredictable, often small, and arrives at machine speed — none of which fits a monthly subscription negotiated by a human in advance. What agents need is a way to pay for a specific resource, in the moment, in an amount they can reason about, without a standing account.
That is the gap x402 fills. Instead of bolting a human payment method onto a non-human actor, it gives the web a native "this costs money, here's how to pay" response that a program can handle on its own.
HTTP has reserved status code 402 Payment Required for decades, but it was never given a standard meaning — browsers had nothing to do with it. x402 is an open protocol, introduced by Coinbase in 2025, that finally puts that code to work for machine-to-machine payments. The idea is deliberately small: payment becomes a normal part of an HTTP exchange instead of a separate checkout system.
The handshake has three beats. First, the client requests a resource. Second, if payment is required, the server answers 402 and includes payment requirements — what to pay, where to send it, and which network is accepted. Third, the client pays the stablecoin on-chain and retries the same request, this time carrying proof of payment; the server verifies and serves the resource. That is the whole protocol. It does not dictate a wallet, a UI, or a billing relationship — it just describes the conversation.
For proxies, the "resource" is bandwidth or a proxy session, and the stablecoin is USDC. PROXIES.SX implements x402 with USDC settlement on Solana and Base. The agent doesn't need to know anything about our pricing tables in advance — the 402 response tells it the price for what it asked for. Want the working code behind this exchange? See the autonomous-agent x402 tutorial for the implementation; this article stays at the conceptual level.
Here is the full lifecycle of a single autonomous purchase, start to finish:
Notice what isn't in that list: no signup form, no email verification, no human approval, no recurring invoice. The agent and the server complete a transaction the same way two services exchange data — request, response, retry — with a payment step folded in.
The requirements are modest. An agent that can already make HTTP requests is most of the way there. In plain terms, it needs three things:
| What the agent needs | Why | In practice |
|---|---|---|
| A funded USDC wallet | It is the agent's own money to spend; payments come from here. | Holds USDC on a supported network (Solana or Base). |
| An x402 client | Handles the 402 response, pays, and retries with proof. | A small wrapper around its HTTP client that understands the handshake. |
| A way to act: MCP tool or HTTP | Connects the agent's reasoning to the actual purchase. | An MCP tool that wraps it, or a direct HTTP call. |
The two common shapes are worth calling out. With a plain HTTP client, the agent (or a small library) handles the 402 handshake itself — flexible, but you own the plumbing. With an MCP server, the agent simply calls a tool like "get a US proxy session" and the payment, retry, and provisioning happen behind that tool — the model never has to reason about transactions at all. Most teams using Claude Desktop, Cursor, or similar hosts reach for the MCP route because it keeps the agent's job clean.
It is tempting to think the hard part is the payment. It isn't. Paying in USDC over x402 is the easy, solved part of the loop. The part that actually determines whether the agent's request succeeds is the quality of the IP it routes through — and that is independent of how the bandwidth was purchased.
Real 4G/5G mobile IPs carry the strongest trust signal on the open web. Because many real users share a single carrier IP, sites are reluctant to block one outright, which is why mobile is the safest default for hard targets. Residential IPs — a pool PROXIES.SX is expanding now — cover a broader set of everyday sites. Both are available across 17+ countries, and crucially, the payment flow is identical for either: the same 402 handshake, the same USDC settlement. The agent picks the IP type and country that fit the target; the payment rail doesn't change.
The practical takeaway for architects: don't let the novelty of autonomous payments distract from IP selection. An agent that pays flawlessly but routes through a flagged datacenter IP still fails. Choosing mobile or residential by target is where success rates are won or lost. For the trade-offs in depth, see mobile vs residential vs datacenter success rates.
Giving software the ability to spend money is exactly as serious as it sounds. The good news is that x402 actually improves the safety posture compared to handing an agent a credit card, because the agent spends from a wallet you fund and control the limits of. The following are architectural best practices for any team building autonomous spending — design them into your own agent layer; treat them as how you should build, not as buttons we promise in a UI:
Cap the wallet, not just the logic. Fund the agent’s wallet with a deliberately small balance. Even if every other guardrail fails, the wallet can only ever lose what is in it. This is the single most effective control.
Enforce a spend policy before paying. Have the agent check each 402 amount against per-call, per-hour, and per-day limits before it signs anything. A price outside policy should stop the loop, not trigger an autonomous payment.
Scope what the agent can buy. Restrict it to specific endpoints, networks, and recipients. An agent that only knows how to buy proxy bandwidth from one provider cannot be tricked into paying somewhere else.
Make payments idempotent and logged. Record every payment and tie it to the request it paid for, so a crash-and-retry doesn’t pay twice, and so you have a complete audit trail of what the agent spent and why.
Separate the seed key from the hot wallet. Keep the funding mechanism away from the live spending wallet, and rotate or top up deliberately rather than connecting the agent to an unlimited source of funds.
The mental model that helps most: treat the agent's wallet like a prepaid card you reload on purpose, not a line of credit you hope it respects. Because every payment is on-chain and bounded by a balance you set, the worst case is small and visible — a far better place to be than an unattended process with access to a credit line.
Once an agent can buy its own bandwidth, a category of friction disappears. There is no procurement step, no seat to provision, no contract to negotiate before the agent can do useful work. You can spin up an agent, fund its wallet with a few dollars of USDC, and let it operate — it acquires exactly the resources it needs, when it needs them, and stops when its budget runs out. Spending becomes proportional to work done rather than to a plan someone guessed at in advance.
For PROXIES.SX specifically, that means an agent pays $4/GB dropping to $2.40/GB at volume, with free endpoints, free rotation, no monthly fees, and GB that never expire — and it does so without ever touching a signup form. To weigh that pay-per-GB model against the subscription world, see x402 pay-per-GB vs proxy subscriptions, and for the wider strategy of metered access for agents, start with the hub: pay-per-use proxies for AI agents.
The agent requests a proxy resource over HTTP. If payment is required, the server replies with HTTP 402 Payment Required and a description of what to pay — amount in USDC, the recipient address, and the accepted network. The agent sends that USDC on-chain from its own wallet, then retries the same request with proof of payment. The server verifies the payment and returns working proxy access. No card, no signup, no monthly contract.
x402 is an open protocol that revives the long-reserved HTTP 402 Payment Required status code for machine-to-machine payments. It was introduced by Coinbase in 2025. A server returns 402 with payment requirements; a client pays a stablecoin such as USDC and retries the request with a payment proof. It is designed for programmatic clients like AI agents rather than humans clicking a checkout page.
PROXIES.SX accepts USDC over x402 on both Solana and Base. The agent’s wallet holds USDC on a supported network, and the 402 response indicates which network and address to pay.
No. The whole point of paying over x402 is that the agent needs only a funded crypto wallet, not a human-controlled account or card-issuing relationship. Endpoints are free, rotation is free, and there are no monthly fees — the agent pays only for the GB it actually uses.
Bandwidth is pay-per-GB at a flat list price of $4/GB that drops with volume down to $2.40/GB at the highest tier, and the GB never expire. Endpoints, IP rotation, and support are free, and there is no monthly fee and no standing free trial.
It depends on the target. Real 4G/5G mobile IPs carry the strongest trust signal and are the safest default for hard targets, because many users share each carrier IP. Residential IPs (a pool that is expanding) suit a broader set of sites. The payment flow is identical for both — IP quality, not the payment rail, is what decides whether a request succeeds.
4G/5G mobile + residential proxies across 17+ countries — $4/GB dropping to $2.40/GB at volume, free endpoints, free rotation, no monthly fees, GB that never expire. Pay in USDC over x402 on Solana or Base.