---
title: Proxies for AI agents: web access over one HTTP API
description: How an AI agent gets proxies from Coronium with HTTP calls alone: the account, the price list, usernames, sessions and each refusal it can act on.
label: Proxies for AI agents
template: hub
updated: 2026-11-26
---

# Proxies for AI agents

An AI agent sends its web traffic through Coronium's peer network with plain HTTP calls: it reads the price list, signs in, makes proxy usernames and sends requests over HTTP, SOCKS5 or the fetch API, and each request leaves from a device that its owner enrolled. Every refusal on the way is JSON with a `code`, a `cause` and a `fix`, so the agent can act on it without a person reading logs.

<!-- kit:live -->
Which countries have devices online, and at what price, `GET /app/api/prices` answers with no account. `GET /app/api/buy` answers whether new accounts are taken, in `registration`, and whether traffic is charged, in `charging`.
<!-- /kit:live -->

## At a glance

| Question | Answer |
| --- | --- |
| What carries the traffic | Devices that their owners enrolled, reached through an edge and a relay, as [the peer network page](/peer-proxy-network) draws it |
| How to send | As an HTTP proxy, over SOCKS5, or with `POST /v1/fetch` |
| What is billed | Bytes sent and received, at the price per GB of the exit country's tier, as [Pay per GB](/pay-per-gb) explains |
| How the IP class is decided | By the network the device exits from, its ASN. Nobody types it |
| What is on request | A country or class with no device online, carrier modems (`mbl`), ISP and datacenter addresses. The demand is recorded |
| What the API is | Plain HTTP and JSON, every call in [the OpenAPI document](/openapi.json) |

## What does an agent need from a proxy?

**An exit in the right country and class.** The proxy username names the country as two letters and can add `iptype-mobile` or `iptype-residential`, a carrier, a network, a state or a city. The service measures where each device exits and decides its [IP class](/peer-proxy-network/glossary#ip-class) from the network; a username asks, and the edge picks a device that matches. Signed in, `GET /app/api/proxy/stock?country=<code>` lists the classes, carriers, states and cities that have devices online. [Mobile proxies](/mobile-proxies) covers the mobile class.

**A session that holds while a job runs.** A username without a session key sends each request through a device chosen for it. `sid-<id>` keeps requests on one device, and `rot` says for how long. [Sticky and rotating sessions](/proxies-for-ai-agents/sticky-and-rotating-sessions) covers both modes and when to use each.

**Refusals an agent can act on.** Each refusal names what happened and what to send next. These are the ones an agent meets first:

| Code | When | What to do |
| --- | --- | --- |
| `registration_closed` | `POST /app/api/signup` while registration is closed | Work in your person's account: sign in with its access code at `POST /app/api/login` |
| `private_preview` | A call answers `403` while the site is in private preview | Tell your person; the site is not open to you yet |
| `sign_in_required` | A signed-in call with no valid session, answered `401` | Sign in again with the access code |
| `session_required` | An account route was sent an `Authorization` header, answered `403` | Send the session cookie and no bearer |
| `bad_options` | A username outside the grammar | Send the username the `fix` shows |
| `on_request` | No device matches the username | The demand is recorded; widen the options, or keep the username for when supply arrives |
| `target_blocked` | A mail port, an IPv6 literal or a private address as the target | Use a target with a public address and another port |

## From no account to a proxy string

<!-- kit:steps -->
1. Create an account with `POST /app/api/signup` and an empty JSON object. The answer shows `accountId`, `credential` and `accessCode` once.
2. Sign in with the access code at `POST /app/api/login`. A new account is signed in already.
3. Read the price list with `GET /app/api/prices`.
4. Read one country's stock with `GET /app/api/proxy/stock?country=<code>`.
5. Make usernames with `POST /app/api/proxy/spawn`. Each string holds `{credential}` for the agent to fill in from its own file.
6. Read the balance and its state with `GET /app/api/billing`.
7. Add funds with a quote your person agrees to, or from the agent's own wallet at `POST /v1/topup`.
8. Read where to connect with `GET /app/api/proxy`.
9. Check a route with `POST /app/api/proxy/test`.
<!-- /kit:steps -->

The [quickstart for agents](/agents) has the full commands for each step, written so that no secret is printed or passed on a command line.

**While registration is closed**, `POST /app/api/signup` answers `registration_closed`. The agent then works in its person's account: the person writes the access code and the credential into the agent's account file, and the agent signs in with `POST /app/api/login`, as the first step of [the quickstart](/guides/agents.md) says.

**While the endpoint is closed**, `endpoint.state` in `GET /app/api/proxy` reads `closed`, and no buyer traffic is carried. The strings from `POST /app/api/proxy/spawn` then hold `{host}` and `{port}` where the address goes, and the same usernames work once the endpoint opens.

These calls need no account and show the state an agent starts from. While coronium.ai is in private preview, the sign-up answers `403` with the code `private_preview` instead:

<!-- kit:code -->
```sh
curl -s https://coronium.ai/app/api/prices
curl -s https://coronium.ai/app/api/buy
umask 077
curl -sS -c coronium.cookies -H 'Content-Type: application/json' -d '{}' https://coronium.ai/app/api/signup -o coronium-account.json
jq -r '.accountId // .code' coronium-account.json
```
```python
import requests

base = "https://coronium.ai"
answer = requests.get(base + "/app/api/buy", timeout=30)
buy = answer.json()
if answer.status_code != 200:
    raise SystemExit(buy["code"] + ": " + buy["fix"])
print("registration:", buy["registration"], "charging:", buy["charging"])
if buy["registration"] == "open":
    print("Create the account with step 1 of the quickstart, which keeps its secrets in a file.")
```
```typescript
const base = "https://coronium.ai"
const answer = await fetch(base + "/app/api/buy")
const buy = await answer.json()
if (!answer.ok) throw new Error(`${buy.code}: ${buy.fix}`)
console.log("registration:", buy.registration, "charging:", buy.charging)
if (buy.registration === "open") console.log("Create the account with step 1 of the quickstart, which keeps its secrets in a file.")
```
```prompt
Read https://coronium.ai/llms.txt, then https://coronium.ai/guides/agents.md. Use HTTP calls only. Ask your person before you spend money.
```
<!-- /kit:code -->

A new account's answer holds its secrets, shown once. The shell sample keeps the answer and the session cookie in files only you can read and prints only the account id or the refusal code; the Python and TypeScript samples read the state and create nothing.

## What does a request cost?

A request of `b` bytes at a tier price of `p` micro-USD per GB costs `b × p × 10,000` units of `n`, and bytes in both directions count. [How traffic is counted](/pay-per-gb/how-traffic-is-counted) gives the formula and the meter behind it, and [How many GB do I need](/pay-per-gb/how-many-gb-do-i-need) turns a job into an estimate.

## What does a proxy leave to the agent?

A proxy changes the network address a site sees. The browser's fingerprint, its cookies, the pace of requests and the site's terms stay with the agent and the person it works for. A site's terms apply to traffic through a proxy as to any other, and when a site refuses a request, the agent reads that as the site's answer.

## Which limits apply?

- A proxy request to mail ports 25, 465, 587 and 2525, or to an IPv6 literal, is refused with `target_blocked`.
- The exit is measured on IPv4 only.
- Registration and the buyer proxy endpoint are opened by the operator, and the API says when each is closed.

<!-- facts:begin numbers.list -->
- A count under 5 devices reads `few`, and a city, carrier or network with fewer than 5 devices online is not listed.
- A quote lasts 30 minutes.
- A request for a product that is not built carries a note of at most 500 bytes.
<!-- facts:end numbers.list -->

The rest are in the [stated limits](/guides/limits.md).

## One account for every product

The same account and balance cover every product. Each line below gives its state from the service's own list of facts. Available means built: which countries and classes have devices online, `GET /app/api/prices` and `GET /app/api/proxy/stock` answer, as the live read at the top of this page shows.

<!-- facts:begin products.list -->
- Peer network proxies: Available. Exits from enrolled devices on networks Coronium classifies as residential or mobile, over HTTP, SOCKS5 and the fetch API.
- Private mobile proxies: Not available yet. A dedicated 4G/5G modem on a carrier SIM, yours alone for the period.
- Android emulator control: Not available yet. A virtual Android phone an agent drives, started from a clean image for each session.
- Android phone control: Not available yet. A physical Android phone on a carrier SIM an agent drives, leased to one account at a time.
- iPhone control: Not available yet. An iPhone an agent drives.
- iPhone simulator control: Not available yet. A simulated iPhone on a Mac that an agent drives, started from a clean image for each session.
- Mac control: Not available yet. A Mac an agent drives, leased to one account at a time.
- Cloud browser control: Not available yet. A hosted desktop browser an agent drives, one clean session at a time.
- Agent rails: Not available yet. A browser or phone session with a residential or carrier IP, for an agent that signs up, fills forms and keeps accounts.

Available means built. Whether new accounts are taken now, `GET /app/api/buy` answers in `registration`.
<!-- facts:end products.list -->

The devices an agent will drive have [a page of their own](/devices-for-ai-agents), and so do [sessions for agents that keep accounts](/agent-rails). The exits come from devices whose owners enrolled them, and [selling bandwidth](/sell-bandwidth) covers that side.

<!-- kit:faq -->
### Does an agent need an email address to sign up?

No. `POST /app/api/signup` takes an empty JSON object and returns the account id, the credential and the access code once. Registration is opened by the operator, and `registration` in `GET /app/api/buy` says whether it is open.

### Is there an MCP server?

No. Every call is plain HTTP, described in [the OpenAPI document](/openapi.json). The agent index at [/llms.txt](/llms.txt) lists what is not built, under Not served.

### Can an agent pay by itself?

`POST /v1/topup` takes a payment from an agent's own wallet and needs no sign-in, as [Agent payments](/guides/agent-payments.md) says. Whether it takes payments, `GET /app/api/buy` answers in `agent.configured`; while that is false it answers `503` and charges nothing.
<!-- /kit:faq -->

<!-- facts:begin sentence -->
Infrastructure for AI agents to act on the web and on real devices: mobile and residential proxies with real IP addresses, and next phones, Macs and browsers an agent can drive.

One account, one balance, one file to read.
<!-- facts:end sentence -->
