Skip to main content

x402: Buy Proxies with a Crypto Wallet, No Account Needed

How AI agents and scripts can buy and manage Proxy-Seller proxies on their own, paying in USDC without registration or an API key.

How AI agents and scripts can buy and manage Proxy-Seller proxies on their own, paying in USDC without registration or an API key.

If you build AI agents or automation scripts, you may want them to get proxies on their own, without you creating an account, topping up a balance or issuing API keys. For this, Proxy-Seller supports the x402 API.

Full technical documentation: x402 API overview


​

What is x402?

x402 is an open payment protocol that lets programs pay for services directly over HTTP. With the Proxy-Seller x402 API, an AI agent or script can:

  • see available proxies, countries, rental periods and prices;

  • buy proxies and receive connection details;

  • renew proxies, set up auto-renewal, replace IPs and buy residential traffic.

All payments are made in USDC on the Base network. The wallet that pays is the buyer and the owner of the order, so no Proxy-Seller account or API key is required.


​

Why use x402

  • Your agent works on its own. An AI agent can find, buy and renew proxies in the middle of a task, without waiting for you to place an order manually.

  • No registration and no API keys. There is no account to create and no keys to store, rotate or accidentally leak. The wallet is the only identity.

  • You pay only for what you buy. Each purchase is paid separately for its exact amount. No need to keep a balance in advance.

  • No network fees in ETH. You only need USDC in your wallet: network fees are not charged to you separately.

  • Easy to scale. Each agent or script can have its own wallet and its own orders, so you can run many independent agents and keep their spending separate.

  • Full control over spending. The agent can spend only what is in its wallet, so the maximum budget is always under your control.


​

Who is it for?

  • Developers of AI agents that need proxies to complete their tasks.

  • Automation scripts and services that buy proxies without human involvement.

  • Users who prefer to pay with a crypto wallet without registering an account.


​

How it works

Buying proxies through x402 takes three steps:

  1. Request a price. The agent sends an order without payment and receives the exact amount, the payment recipient and a quote valid for 15 minutes.

  2. Pay. The agent signs a USDC transfer authorization with its wallet and repeats the request with the signature. In response, it receives the order number and an access token.

  3. Get the proxies. The agent checks the order using the access token. Once the payment is confirmed on the network, the order becomes active and contains the proxy connection details.

You don’t need to send a blockchain transaction yourself. Funds are charged once and only for the exact amount of the quote.

Learn more: Payments


​

How to connect

There are two ways to start using x402: let your AI agent set everything up, or connect it yourself in your code.


​

Option 1. Let your AI agent connect

If you use an AI agent (for example, Claude Code or Codex), it can read the documentation and make purchases on its own.

  1. Prepare a separate wallet with USDC on the Base network for your agent. A regular Ethereum wallet with a private key is suitable. You don’t need ETH: network fees are covered for you.

  2. Give the agent links to the machine-readable descriptions of the API:

  3. Give the agent a task, for example: “Buy 1 dedicated IPv4 proxy in the US for 30 days using the Proxy-Seller x402 API and the wallet I provided.”

  4. Ask the agent to save the access token of the order. It’s needed to manage the order later.

Please note. Never give your agent the private key of your main wallet. Keep only the amount you’re ready to spend on the agent’s wallet.


​

Option 2. Connect it yourself

All requests are sent to:

https://proxy-seller.com/api/x402/v1

Please note. The x402 API has its own versioning, separate from the Proxy-Seller API. The v1 in the address is the version of the x402 API and is not related to Proxy-Seller API v1 or v2.
​

Step 1. Prepare a wallet and an x402 client. You need a wallet with USDC on Base and any HTTP client that supports x402 version 2 with the exact scheme and EIP-3009. The client handles the payment automatically: when the API responds with 402 Payment Required, the client signs the payment and repeats the request.
​

Step 2. Check the catalog. Send GET /catalog (no authorization needed). The response contains:

  • available products: IPv4, ISP, IPv6, residential, mobile, MIX packages and 100% Uptime proxies;

  • countries, rental periods and prices;

  • the allowed purposes of use;

  • the current versions of the terms of service and privacy policy.

Step 3. Create an order. Send POST /orders with the order details. For example, 1 dedicated IPv4 proxy in the US for 30 days:

{
  "product": "IPv4",
  "items": [{ "country": "US", "qty": 1, "period_days": 30 }],
  "auth_method": "userpass",
  "intended_use": "web-scraping",
  "accept_terms": { "offer_version": "2026-07-01", "privacy_version": "2026-07-01" }
}
  • auth_method — userpass (login and password) or ip (IP authorization, with the list of IPs in allowed_ips).

  • intended_use — one of the values allowed in the catalog: web-scraping, price-monitoring, seo-monitoring or ads-verification.

  • accept_terms — always take the current versions from the catalog: they change when the terms are updated.

Your x402 client will receive the price, pay it and repeat the request. In response, you get the order id and the access token.

Step 4. Save the access token. It is issued only once. Store it in a safe place: you need it for every action with the order.
​

Step 5. Get the proxies. Send GET /orders/{id} with the header:

Authorization: Bearer <access_token>

Repeat the request every 10 seconds until the order status becomes active. The proxies and their credentials will appear in the response. This usually takes a few minutes; mobile proxies are issued manually and may take up to 3 hours.


​

Important to know

  • x402 is a separate product from the regular Proxy-Seller API. Orders bought through x402 are managed only through the x402 API, using the order’s access token.

  • Keep the access token safe. It gives access to the order and its proxies. Don’t share it or publish it in code repositories.

  • Lost the access token? Sign a one-time message with the wallet that paid for the order, and you will get new access tokens for all orders of this wallet. See Recover access.

  • Want to see the agent’s orders in your Proxy-Seller dashboard? The account owner can link the agent’s wallet to the account in the dashboard, section Balance. After that, new orders paid by this wallet appear in the dashboard, and its top-ups go to the account balance. Orders paid before linking stay with the wallet. See Link to an account.

  • Refunds and cancellations are not available through the API. Contact customer support with your order id.


​

How to link the agent’s wallet in your dashboard

If you want to see the orders paid by the agent’s wallet in your Proxy-Seller dashboard, the account owner can link this wallet to the account.


​

  • Select "Balance" in the left menu.

  • In the "x402 wallets" block, click "Link wallet".


​

"Balance" in the left menu and the "Link wallet" button in the "x402 wallets" block. 1 — "Balance" · 2 — "Link wallet"


​

  • Choose how to link the wallet: "Browser wallet" for MetaMask, Rabby, Coinbase Wallet and similar, or "Enter address manually" for an agent wallet whose key is in your code and which you sign with yourself.


​

Choosing how to link the wallet:

Choosing how to link the wallet: "Browser wallet" or "Enter address manually".


​

After linking, new orders paid by this wallet appear in the dashboard, and its top-ups go to the account balance. Orders paid before linking stay with the wallet. More details: Link to an account.


​

What else the x402 API can do

  • Catalog — available products, countries, rental periods and prices.

  • Order actions — buying proxies and getting order details.

  • Actions with proxies — renewal, auto-renewal, IP replacement and residential traffic.

  • Balance — top-up for auto-renewal and withdrawal of the remaining funds.

  • Webhooks — notifications about order changes.

  • Errors and Limits — what to do with each error and what limits apply.


​

Need help?

Answers to common questions are collected in the x402 FAQ. If you haven’t found the answer, contact Proxy-Seller customer support and we will gladly help.

Did this answer your question?