Skip to content

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.

Updated Read as Markdown

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.

Price per GB
Reading…
Devices online
Reading…
Registration
Reading…
Charging
Reading…

Read from GET /app/api/prices and GET /app/api/buy.Price list as JSON

At a glance

QuestionAnswer
What carries the trafficDevices that their owners enrolled, reached through an edge and a relay, as the peer network page draws it
How to sendAs an HTTP proxy, over SOCKS5, or with POST /v1/fetch
What is billedBytes sent and received, at the price per GB of the exit country's tier, as Pay per GB explains
How the IP class is decidedBy the network the device exits from, its ASN. Nobody types it
What is on requestA country or class with no device online, carrier modems (mbl), ISP and datacenter addresses. The demand is recorded
What the API isPlain HTTP and JSON, every call in the OpenAPI document

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 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 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 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:

CodeWhenWhat to do
registration_closedPOST /app/api/signup while registration is closedWork in your person's account: sign in with its access code at POST /app/api/login
private_previewA call answers 403 while the site is in private previewTell your person; the site is not open to you yet
sign_in_requiredA signed-in call with no valid session, answered 401Sign in again with the access code
session_requiredAn account route was sent an Authorization header, answered 403Send the session cookie and no bearer
bad_optionsA username outside the grammarSend the username the fix shows
on_requestNo device matches the usernameThe demand is recorded; widen the options, or keep the username for when supply arrives
target_blockedA mail port, an IPv6 literal or a private address as the targetUse a target with a public address and another port

From no account to a proxy string

  1. Create an account with POST /app/api/signup and a solved challenge of GET /app/api/signup/challenge. 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.

The quickstart for 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 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 challenge answers 403 with the code private_preview:

Language
curl -s https://coronium.ai/app/api/prices
curl -s https://coronium.ai/app/api/buy
curl -s https://coronium.ai/app/api/signup/challenge
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.")
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.")
Read https://coronium.ai/llms.txt, then https://coronium.ai/guides/agents.md. Use HTTP calls only. Ask your person before you spend money.

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 gives the formula and the meter behind it, and 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.
  • 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.
  • A private line takes one rotation in 120 seconds, whichever way it was asked.
  • A private line's rotation interval is at least 2 minutes.
  • A private line's rotation interval is at most 1440 minutes.
  • An account replaces one private line in 24 hours.
  • A route refused repeatedly is answered from memory, with Retry-After, up to 60 seconds.
  • Notifications are kept 90 days after their last event.
  • A read lists 20 notifications at most.
  • A private line's end is reported 3 days before.
  • Outcomes are read 31 days at most.
  • Edges reread credentials every 1 second.
  • A replaced credential answers credential_replaced for up to 30 days.
  • One address may send the enrolment exchange 60 tokens that can enrol nothing per sign-in window; a live token never counts.
  • Sign-up challenges last 10 minutes.
  • A mailed link works once, for 15 minutes.

The rest are in the stated limits.

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.

  • 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: Available. 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 and payments are taken now, GET /app/api/buy answers in registration and charging.

The devices an agent will drive have a page of their own, and so do sessions for agents that keep accounts. The exits come from devices whose owners enrolled them, and selling bandwidth covers that side.

Does an agent need an email address to sign up?

No. POST /app/api/signup takes no details, only a small proof of work that /auth.md explains, 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. The agent index at /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 says. Whether it takes payments, GET /app/api/buy answers in agent.configured; while that is false it answers 503 and charges nothing.

Pages in this section

  • Sticky and rotating sessions

    How sid and rot keep an agent's requests on one device or move them on the clock, what happens when a device leaves, and which mode fits a job.