# Coronium.ai

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

This file is written from the service's own list of facts, whose digest is `56eed9743bc2`. Prices, stock and whether a switch is on are not written here: the route named beside each answers.

One account and one US dollar balance cover every product, and an agent uses the same kind of account as a person. Buyers and their agents send web traffic through devices that their owners connected with a downloadable agent, and pay per gigabyte. One HTTP API serves the pages, the chat and agents.

Start with the one file for every integration, [/guides/integrate.md](/guides/integrate.md), or give your agent the prompt below. Every refusal carries `code`, `cause` and `fix`. Registration and the buyer proxy endpoint are opened by the operator: the API says when each is closed.

## The prompt to give an agent

To use the network from a program:

> Read https://coronium.ai/guides/integrate.md and follow its steps for a program to give this project web traffic through Coronium. Ask me before you spend money or replace a credential; keep every secret in a file and out of this chat; when you finish, show me one route check and what it answered.

The shortest that is still safe:

> Follow https://coronium.ai/guides/integrate.md to set up Coronium for this project, and get my yes before you spend anything.

While sign-up is closed and the agent uses your account, add: "My access code is in the file coronium-account.json in this folder; read it there and never print it."

To connect a device:

> Read https://supply.coronium.ai/guides/integrate.md and follow its device steps to connect this machine to Coronium. Before you sign the partner agreement, show me its text and wait for my yes; keep every secret in a file and out of this chat; when you finish, tell me the device's state and how to stop it.

The shortest that is still safe:

> Follow https://supply.coronium.ai/guides/integrate.md to connect this machine to Coronium, and get my yes before you sign anything.

While sign-up is closed and the agent uses your account, add: "My access code is in the file coronium-account.json in this folder; read it there and never print it."

## Products

One account and one balance cover every product.

- 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`.

## Pages

The pages where a buyer adds to the balance, spends it, and holds what an account rents. The two proxy pages need a sign-in.

- [Gigabytes](/buy)
- [Private devices](/buy/mobile)
- [Spawn GB proxies](/proxies): These proxies use your GB balance. You pay for the traffic you send.
- [Manage private proxies](/proxies/private): These are dedicated devices you rent for a period. They are not billed per GB.

## Guides

- [Every integration in one file](/guides/integrate.md): each section below, in order, with the prompts and what only your person decides.

Use the network from a program, with calls to this site:

- [Quickstart for AI agents](/guides/agents.md): from no account to a proxy string with HTTP calls alone.
- [Send traffic](/guides/send-traffic.md): the HTTP proxy, SOCKS5, `POST /v1/fetch` and `POST /v1/routes/explain`, with the refusals of each.
- [Buying a private modem line](/guides/private-proxies.md): offers, a quote, the confirmation, the order and its logins, with HTTP calls alone.
- [Device sessions](/guides/device-sessions.md): an agent starts, drives and stops a device session.

Connect a device, with calls to the supply site:

- [Enrolment](/guides/device-enrol.md): the account, the partner agreement and one device.
- [The agent files](/guides/device-files.md): `/kit/index.json`, each file with its state and its limits, and how to check one.
- [The Linux kit](/guides/device-linux-kit.md), [a container](/guides/device-docker.md) or [the program alone](/guides/device-program.md), built for Linux, Windows, macOS and routers: each file's state, limits and what was observed of it are in the files section.
- [Device states](/guides/device-states.md): every state and reason with what to do, earnings and payouts.
- [Many devices](/guides/device-tokens.md): enrolment by token.

Reference:

- [Stated limits](/guides/limits.md): what the service does not do yet.
- [Guide for buyers](/guides/buyers.md): create an account, add funds, make a proxy string, read the statement, in a browser.
- [Proxy usernames](/guides/usernames.md): the full username grammar.
- [Prices and billing](/guides/prices.md): the unit, the tiers and exact amounts.
- [Agent payments](/guides/agent-payments.md): an agent tops up a balance with x402 or MPP at `POST /v1/topup`, with no sign-in. `GET /app/api/buy` answers `agent.configured`; while it is false the route answers 503 and charges nothing.

## Learn

How the service works, one page each. Every page is also served as HTML at the same address without `.md`.

- [Agent rails](/agent-rails.md): A planned Coronium session for an AI agent that signs up, fills forms and keeps its own accounts: what it will be, what it records, and how to ask for it.
- [Devices for AI agents](/devices-for-ai-agents.md): The Android emulators and phones, iPhones and their simulators, Macs and cloud browsers an AI agent will drive on Coronium, and how to ask for one.
- [Mobile proxies](/mobile-proxies.md): How mobile exits work on Coronium: a device on a carrier network, classed by that network, asked for with iptype-mobile and charged per GB by country.
- [Pay per GB](/pay-per-gb.md): Coronium charges for the bytes sent and received, at the price per GB of the exit country's tier. Read the live list, the unit and how a cost is worked out.
- [How many GB do I need](/pay-per-gb/how-many-gb-do-i-need.md): Estimate proxy traffic from your own figures: pages, repeated fetches and bytes per page. The arithmetic first, then the cost at each live tier.
- [How traffic is counted](/pay-per-gb/how-traffic-is-counted.md): One meter at Coronium's edge counts whole bytes. The formula from bytes to dollars, how to work out an amount, and how a lost or repeated count is refused.
- [Peer network proxies](/peer-proxy-network.md): What happens to one request on Coronium's peer network: the edge that meters it, the relay, the enrolled device, and how the IP class is decided.
- [Glossary](/peer-proxy-network/glossary.md): Short definitions of the terms Coronium uses, each with the parameter or field an agent sends or reads: sid, rot, few, on request, micro-USD, withheld.
- [Private mobile proxies](/private-modems.md): A dedicated modem on a carrier SIM that one account holds for the period it ordered: what an order will give, how logins are read, how lines rotate.
- [Proxies for AI agents](/proxies-for-ai-agents.md): 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.
- [Sticky and rotating sessions](/proxies-for-ai-agents/sticky-and-rotating-sessions.md): 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.
- [Sell bandwidth](/sell-bandwidth.md): Run Coronium's agent on a Linux machine or in Docker and earn a share of what buyers pay for the traffic it carries. The agreement, the terms, the payout.
- [Run it in Docker](/sell-bandwidth/docker.md): Check the image digest, load it, and run the agent read-only with no shell as an unprivileged user. The log line to expect, and how to stop and remove it.
- [What the agent does](/sell-bandwidth/what-the-agent-does.md): The agent connects out to Coronium's relay and needs no open port. What it carries, what it refuses, what is measured and recorded, and how to stop it.

## API

- [OpenAPI document](/openapi.json): every call, with its request, its answer and its refusals, except `POST /v1/topup`, which the agent payments guide covers.
- [Price list](/app/api/prices): tiers, countries and devices online, with no account.
- [Buy proxies](/buy): add US dollars to one balance, by the ways to pay that `GET /app/api/buy` answers as configured. Traffic is charged per GB at the exit country's price.
- `POST /v1/topup`: an agent pays for a top-up of an account's balance, as the agent payments guide says. While `agent.configured` is false it answers 503.
- Private mobile proxies: not available yet. Their order calls are built and wait on an operator switch: `GET /app/api/buy` answers `private.configured`. While it is false, the offers, the quote, the order, the logins and the line actions answer `private_not_configured` and nothing is charged; the order list and the order read still answer, without lines. Ask for them with `POST /app/api/private/requests`, which records a request in every state. The OpenAPI document describes the order calls.
- Enrolment by token: `POST /app/api/enrol-tokens` mints a token after signing, and a device enrols itself with it at `PUT /app/api/devices/{deviceId}`, as the many devices guide says. While the operator keeps it closed, the four token routes answer 503 `enrol_tokens_off` and each device is enrolled with `POST /app/api/devices`.
- Device sessions: `POST /app/api/sessions/quote` quotes a session, `POST /app/api/sessions` starts it at the confirmed price, `GET /app/api/sessions` and `GET /app/api/sessions/{sessionId}` read them, and `POST /app/api/sessions/{sessionId}/extend`, `POST /app/api/sessions/{sessionId}/stop` and `POST /app/api/sessions/{sessionId}/token` extend it, stop it and replace its token, as the device sessions guide says. While the operator keeps them closed, the session routes answer 503 `device_sessions_off`, and a product is asked for with `POST /app/api/demand/device`.
- `POST /app/api/demand/device`: a signed-in account asks for a product that is not available yet, by its id, with an optional one-line note. The request is recorded on the account; nothing is ordered or charged.
- [Home chat](/): ask in plain words about prices, stock, the products and whether sign-up and payments are switched on, or sign in and ask about your account. A signed-in account's chats are kept on the account and listed the same on every device; a guest's stay in this browser until sign-in and are then offered once to the account.

## Not served

- Not built yet: MCP tools under the namespace `ai.coronium`, reached with a credential limited to what the agent may do; `@coronium-ai/sdk`, a typed client over the same HTTP API; and `@coronium-ai/cli`, for sign-up, sign-in and proxy strings from a terminal. Whether anything is published under one of these names, npm and the MCP registry answer.
- ISP static addresses are not offered. Each product above that is not available takes a request, carrier modems among them. There is no datacenter product.

This page: https://coronium.ai/guides/agents.md.

# Coronium: instructions for an AI agent

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

One account and one US dollar balance cover every product, and an agent uses the same kind of account as a person. Peer network proxies are available: you send web traffic over HTTP or SOCKS5 through residential and mobile devices and pay per GB. The Products section of [/llms.txt](/llms.txt) gives the state of every other product, and every call is in [/openapi.json](/openapi.json).

Every path below is on the base URL you were given, or on the address you read this file from. The commands use curl and jq. Each block runs on its own, in a new shell if need be: it sets `umask 077`, so only you can read the files it writes, and sets `BASE` to https://coronium.ai unless you exported `BASE` with your base URL first.

## Rules

<!-- facts:begin part.rules -->
- Send JSON with `Content-Type: application/json`.
- Every refusal is a JSON object with `code`, `cause` and `fix`. Read `fix` and send what it names.
- Money and byte counts are decimal strings. 1 USD is `1000000` micro-USD.
- An account has three secrets: `credential`, `accessCode` and the session cookie, and a device adds its `deviceSecret` and any enrolment `token`. The commands in these guides write each to a file only you can read and pass it to curl on its standard input or from a file, never on a command line. Never print one, and never put one in a prompt, a log or a chat message. The assistant at `POST /app/api/assistant` refuses a message that holds the credential or the access code.
- Ask your person before you spend money, replace the credential or the access code, or ask for a payout.
- A country with no devices online is on request. Make usernames for it anyway: the service records the request, and the answer's `stock.status` reads `on_request`.
- coronium.ai is in private preview until its public launch. If a call answers `403` with the code `private_preview`, the site is not open to you yet: tell your person.
<!-- facts:end part.rules -->

## Steps

<!-- facts:begin part.account -->
1. Create an account with `POST /app/api/signup`. It takes no details. Run this as it stands: it keeps the answer and the session cookie in two files and prints only the account id, or the refusal code.

```
umask 077
BASE=${BASE:-https://coronium.ai}
curl -sS -c coronium.cookies -H 'Content-Type: application/json' -d '{}' "$BASE/app/api/signup" -o coronium-account.json
jq -r '.accountId // .code' coronium-account.json
```

`coronium-account.json` now holds `accountId`, `credential` and `accessCode`, each shown this once. If the code printed is `registration_closed`, the operator has not opened registration, so you use your person's account. Ask your person to write its access code and its credential into `coronium-account.json` as `{"accessCode": "<access code>", "credential": "<credential>"}`, then sign in as step 2 says, which adds `accountId`. The service shows a credential only when it makes one. If your person no longer has it, they replace it with `POST /app/api/credential`, and strings made with the old one stop working.

2. Sign in with the access code. A new account is signed in already. Repeat this when a call answers `sign_in_required`, or on another machine. The first command writes the sign-in request to `coronium-login.json`, and stops with an error, sending nothing, if `coronium-account.json` holds no access code. The second answers `{"signedIn":true}`. The third adds `accountId` to `coronium-account.json` and stops with an error if the session read names no account.

```
umask 077
BASE=${BASE:-https://coronium.ai}
jq -c '{code: ((.accessCode | strings | select(. != "")) // error("no accessCode in coronium-account.json"))}' coronium-account.json > coronium-login.json &&
curl -sS -c coronium.cookies -H 'Content-Type: application/json' -d @- "$BASE/app/api/login" < coronium-login.json &&
curl -sS -b coronium.cookies "$BASE/app/api/dashboard" | jq --slurpfile account coronium-account.json '$account[0] + {accountId: ((.account.id | strings | select(. != "")) // error("no account in the session read: sign in again"))}' > coronium-account.next && mv coronium-account.next coronium-account.json
```
<!-- facts:end part.account -->

3. Read the price list with `GET /app/api/prices`. It needs no account. Each tier lists its countries and the devices online in each. A count under five reads `few`.

```
umask 077
BASE=${BASE:-https://coronium.ai}
curl -sS "$BASE/app/api/prices"
```

4. Read the stock of one country, here Germany, with `GET /app/api/proxy/stock?country=de`. It lists the IP classes, carriers, states and cities a username can ask for.

```
umask 077
BASE=${BASE:-https://coronium.ai}
curl -sS -b coronium.cookies "$BASE/app/api/proxy/stock?country=de"
```

5. Make proxy usernames with `POST /app/api/proxy/spawn`. Each string in the answer holds `{credential}`, and the service never prints the credential again. The second command fills it in from the account file and writes the finished strings to `coronium-proxies.txt`.

```
umask 077
BASE=${BASE:-https://coronium.ai}
curl -sS -b coronium.cookies -H 'Content-Type: application/json' -d '{"count": 1, "pool": "peer", "country": "de", "protocol": "http", "format": "url", "rotation": "none"}' "$BASE/app/api/proxy/spawn" -o coronium-proxies.json
jq -r --slurpfile account coronium-account.json '(($account[0].credential | strings | select(. != "")) // error("no credential in coronium-account.json")) as $credential | .strings[] | sub("[{]credential[}]"; $credential)' coronium-proxies.json > coronium-proxies.txt
```

6. Read the balance with `GET /app/api/billing`. `state` is `active`, `unfunded`, `suspended`, `byte_cap` or `traffic_stopped`. An account with no funds carries no traffic once charging is on. To add funds, follow step 7 with your person or step 8 from your own wallet.

```
umask 077
BASE=${BASE:-https://coronium.ai}
curl -sS -b coronium.cookies "$BASE/app/api/billing"
```

7. Add funds with your person. The first block asks for a quote, which names an amount and owes nothing, keeps it in `coronium-quote.json` and prints it, or the refusal. A quote lasts 30 minutes, and a repeat with the same `requestId` answers with the same quote. `provider` is `coingate` for crypto or `stripe` for a card. Only one whose `configured` is `true` in `providers` of `GET /app/api/billing` takes a quote; one with `false` is refused with `provider_not_configured`, and every quote with `topups_closed` while charging is off; nothing is charged either way.

```
umask 077
BASE=${BASE:-https://coronium.ai}
curl -sS -b coronium.cookies -H 'Content-Type: application/json' -d '{"provider": "coingate", "usdMicros": "5000000", "requestId": "topup-1"}' "$BASE/app/api/billing/quotes" -o coronium-quote.json
jq '{quoteId, usdMicros, expiresAt, code, cause, fix}' coronium-quote.json
```

Show your person `usdMicros` and wait for their yes. Only then run the second block, which confirms the quote kept in `coronium-quote.json`, and give them `checkoutUrl` to pay at. It stops with an error, sending nothing, if the file holds no quote. Confirming the same quote again answers with the same checkout.

```
umask 077
BASE=${BASE:-https://coronium.ai}
jq -c '{quoteId: ((.quoteId | strings) // error("no quoteId in coronium-quote.json: ask for a quote first")), confirm: true}' coronium-quote.json > coronium-confirm.json &&
curl -sS -b coronium.cookies -H 'Content-Type: application/json' -d @- "$BASE/app/api/billing/topups" < coronium-confirm.json | jq '{checkoutUrl, state, code, cause, fix}'
```

8. Pay from your own wallet. `POST /v1/topup` takes the account id without its dashes and an amount, needs no cookie, and answers `402` with x402 and MPP offers. The block stops with an error, sending nothing, if `coronium-account.json` holds no account id. How to pay one is in [/guides/agent-payments.md](/guides/agent-payments.md). The operator has not switched it on yet: until then it answers `503`, offers nothing and charges nothing.

```
umask 077
BASE=${BASE:-https://coronium.ai}
jq -c '{accountId: (((.accountId | strings | select(. != "")) // error("no accountId in coronium-account.json: run step 2")) | gsub("-"; "")), usdMicros: "5000000"}' coronium-account.json > coronium-topup.json &&
curl -sS -i -H 'Content-Type: application/json' -d @- "$BASE/v1/topup" < coronium-topup.json
```

9. Read where to connect with `GET /app/api/proxy`. `endpoint.state` is `open` or `closed`. While it is closed no buyer traffic is carried, and the strings from step 5 also hold `{host}` and `{port}`.

```
umask 077
BASE=${BASE:-https://coronium.ai}
curl -sS -b coronium.cookies "$BASE/app/api/proxy"
```

10. Check a route. This call takes the credential as a Bearer header and no cookie. The first command writes the header to `coronium-bearer.txt`, and stops with an error, sending nothing, if `coronium-account.json` holds no credential. Add `"live": true` to the body to send one billed request to the operator's test origin.

```
umask 077
BASE=${BASE:-https://coronium.ai}
jq -r '"Authorization: Bearer " + ((.credential | strings | select(. != "")) // error("no credential in coronium-account.json"))' coronium-account.json > coronium-bearer.txt &&
curl -sS -H @- -H 'Content-Type: application/json' -d "$(jq -c '{username: .usernames[0]}' coronium-proxies.json)" "$BASE/app/api/proxy/test" < coronium-bearer.txt
```

## Not built yet

<!-- facts:begin packages.list -->
- Not built yet: MCP tools under the namespace `ai.coronium`, reached with a credential limited to what the agent may do; `@coronium-ai/sdk`, a typed client over the same HTTP API; and `@coronium-ai/cli`, for sign-up, sign-in and proxy strings from a terminal. Whether anything is published under one of these names, npm and the MCP registry answer.
<!-- facts:end packages.list -->

So everything above is plain HTTP. A product marked "Not available yet" in /llms.txt takes a request. Signed in, send `POST /app/api/demand/device` with `{"kind": "<product id>"}` and an optional one-line `note`; the ids are the `kind` enum of that call in /openapi.json. The request is recorded, and nothing is ordered or charged. Your person can also send one from [/devices](/devices).

Other guides: [buyers](/guides/buyers.md), [buying a private modem line](/guides/private-proxies.md), [device owners](/guides/device-owners.md), [usernames](/guides/usernames.md), [prices](/guides/prices.md), [limits](/guides/limits.md).

This page: https://coronium.ai/guides/send-traffic.md.

# Send traffic

A program sends its requests through a device over the HTTP proxy or SOCKS5, with the strings the [quickstart](/guides/agents.md) wrote to `coronium-proxies.txt`. The edge, the one meter, counts every byte both ways. `POST /v1/fetch` and `POST /v1/routes/explain` answer only on the edge's own host and `local_only` anywhere else, because the buyer port takes no TLS; from anywhere else, check a route with `POST /app/api/proxy/test`, step 10 of the quickstart.

## Needs

`endpoint.state` `open` in `GET /app/api/proxy`: while it is `closed` no buyer traffic is carried, and the strings still hold `{host}` and `{port}`. Funds, once charging is on.

## Steps

1. As an HTTP proxy. A proxy string holds the credential, so it goes to curl in a config file, never as an argument.

```sh
umask 077
sed -n '1s/.*/proxy = "&"/p' coronium-proxies.txt > coronium-curl.conf
curl -sS -K coronium-curl.conf -o /dev/null -w '%{http_connect} %{http_code}\n' https://example.com/
```

Expect: `200 200`, the tunnel and then the target's status. The edge refuses with an error status such as `407` or `502`, a JSON body of `code`, `cause` and `fix`, and a `Coronium-Retry` header: `stop`, `wait-for-change` or `once-if-idempotent`. The route check names a route's code. Safe to repeat: as safe as the request itself.

2. Over SOCKS5. Make strings with `"protocol": "socks5"` in step 5 of the quickstart; `socks5h` lets the device look the name up.

```sh
umask 077
sed -n '1s/^socks5:/socks5h:/;1s/.*/proxy = "&"/p' coronium-proxies.txt > coronium-curl.conf
curl -sS -K coronium-curl.conf -o /dev/null -w '%{http_connect} %{http_code}\n' https://example.com/
```

Expect: `000 200`: SOCKS5 has no CONNECT status, so curl prints `000`, then the target's status. A SOCKS5 refusal is only a reply code, and curl ends with an error; the route check names the code. Safe to repeat: as safe as the request itself.

3. On the edge's own host only: `POST /v1/fetch` with `Authorization: Bearer <credential>` and `{"url": "..."}`, and an optional `selector`, a username, makes the request itself and answers `status`, `headers`, `body_base64`, `exit` and `bytes_billed`. `POST /v1/routes/explain` with `{"selector": "<username>"}` says where that username would go, and opens no stream.

## Refusals

| `code` | Do |
|---|---|
| `bad_credential` | use the account's credential; a replaced one stops working |
| `bad_options` | fix the username: [usernames](/guides/usernames.md) |
| `on_request` | no device fits now, and the demand is recorded: follow `Coronium-Retry` |
| `target_blocked` | the target is refused, such as mail ports or an IPv6 literal |
| `target_failed` | the target did not answer through the device |
| `unfunded`, `account_suspended`, `byte_cap_reached` | read `GET /app/api/billing` and tell your person |
| `traffic_stopped` | buyer traffic is stopped on this network: stop the job |
| `local_only` | a `/v1` call from another host: use the proxy, and the route check |

This page: https://coronium.ai/guides/private-proxies.md.

# Buying a private modem line by HTTP

<!-- facts:begin product.mobile -->
**Private mobile proxies**: Not available yet. A dedicated 4G/5G modem on a carrier SIM, yours alone for the period. A signed-in account asks for it with `POST /app/api/demand/device` and the kind `mobile`: the request is recorded, and nothing is ordered or charged.
<!-- facts:end product.mobile -->

To ask for a private modem that is not listed or not in stock, use `POST /app/api/private/requests` (step 9): it answers in every state and records the country and the count.

A private modem is a 4G or 5G modem on a carrier SIM that your account holds alone for the period it ordered. Each modem is one line of an order, with a login for HTTP and one for SOCKS5. This page holds every step; each request and answer shape is also in [/openapi.json](/openapi.json).

Every path below is on the base URL you were given. The commands use curl and jq. Each block runs on its own: it sets `umask 077`, so only you can read the files it writes, and sets `BASE` to https://coronium.ai unless you exported `BASE` with your base URL first. The blocks read the session cookie from `coronium.cookies`, which [the quickstart](/guides/agents.md) writes.

## Rules

- Send JSON with `Content-Type: application/json`. Every refusal is a JSON object with `code`, `cause` and `fix`. Read `fix` and send what it names. Each block below prints the refusal when the answer is one.
- An account has three secrets: `credential`, `accessCode` and the session cookie. The commands below write answers to files only you can read, and pass nothing secret on a command line. Never print a secret, and never put one in a prompt, a log or a chat message.
- The logins of a line are secrets too. Step 7 writes them to a file only you can read and prints only whether each line has an address.
- These routes take the session cookie only. A request that carries the credential as a Bearer header is refused with `session_required`.
- Money is decimal text in micro-USD. Ask your person before you confirm a quote, unless they gave you a budget for it.

## Steps

### 0. Read the switches

`GET /app/api/buy` needs no account. `private.configured` says whether private modems can be ordered, `charging` says whether anything can be paid, and `card`, `crypto` and `agent` each say whether that way to add funds is configured. While coronium.ai is in private preview this answers `403` with the code `private_preview`: tell your person.

```
umask 077
BASE=${BASE:-https://coronium.ai}
curl -sS "$BASE/app/api/buy" -o coronium-buy.json
jq 'if .code then . else {private, charging, card: .card.configured, crypto: .crypto.configured, agent: .agent.configured} end' coronium-buy.json
```

### 1. Sign in

Follow steps 1 and 2 of [the quickstart](/guides/agents.md). While `registration` is `closed`, sign in with your person's access code as it says.

### 2. Read the offers

`GET /app/api/private/offers` needs no account. Add `?period=day`, `?period=week` or `?period=month` to read one period. Each offer has `offerId`, `country`, `carrier`, `period`, `days`, `inStock` and `unitUsdMicros`, the price of one modem for the whole period. An offer is on request when its `inStock` is zero: ask for it with step 9. The service reads the stock every minute, and `readAt` says when. While `private.configured` is false this answers 503 `private_not_configured`.

```
umask 077
BASE=${BASE:-https://coronium.ai}
curl -sS "$BASE/app/api/private/offers" -o coronium-offers.json
jq -r 'if .code then .code + ": " + .fix else (.offers[] | [.offerId, .country, .carrier, .period, .inStock, .unitUsdMicros] | map(tostring) | join(" ")) end' coronium-offers.json
```

### 3. Ask for a quote

`POST /app/api/private/quotes` with an `offerId` and a `quantity` from one to ten, the most one order holds. It reads the stock, writes nothing and owes nothing. The answer holds `quoteId`, `inStock`, `onRequest` (what is beyond the stock now, recorded as demand once you confirm), `unitUsdMicros`, `usdMicros` (the most the order will debit) and `expiresAt`. A quote holds for 30 minutes. Ask for more than one order holds with step 9. While `private.configured` is false this answers 503 `private_not_configured`.

```
umask 077
BASE=${BASE:-https://coronium.ai}
OFFER=of_put_the_offer_id_here
jq -n --arg offer "$OFFER" '{offerId: $offer, quantity: 2}' > coronium-ask.json
curl -sS -b coronium.cookies -H 'Content-Type: application/json' -d @- "$BASE/app/api/private/quotes" -o coronium-priced.json < coronium-ask.json
jq 'if .code then . else {quoteId, quantity, inStock, onRequest, unitUsdMicros, usdMicros, expiresAt} end' coronium-priced.json
```

### 4. Have funds

`GET /app/api/billing` answers `paid`, the paid balance. Only paid money buys a modem, never credit the operator granted. To add funds, follow step 7 of the quickstart with your person, for a card or crypto, or step 8 from your own wallet at `POST /v1/topup`. A top-up is refused with 503 `provider_not_configured` while the service has no key for that provider, and with 409 `topups_closed` while `charging` is false, and nothing settles; while `agent.configured` is false, `POST /v1/topup` offers nothing and charges nothing.

```
umask 077
BASE=${BASE:-https://coronium.ai}
curl -sS -b coronium.cookies "$BASE/app/api/billing" | jq 'if .code then . else {paid: .paid.usdMicros} end'
```

### 5. Confirm

`POST /app/api/private/orders` with the `quoteId` and `confirm` true. An order exists only when the account that was given a quote sends that quote back with `confirm` true. The quote is signed for your account alone, and the order debits at most its `usdMicros` from the paid balance, once. Ask your person before you confirm, unless they gave you a budget.

The order is sent to the modem supply once, and the answer comes within about a minute: `order` with its `orderId` and `state`, and `onRequest`. When nothing was in stock, `order` is null and nothing is charged. If the answer is a 5xx, or no answer came, send the same `quoteId` again: it reads the same order and charges nothing more. While `private.configured` is false this answers 503 `private_not_configured`; while `charging` is false it answers 409 `purchases_closed`; with too little paid balance it answers 402 `insufficient_balance` and `shortfallUsdMicros`, which step 4 adds.

```
umask 077
BASE=${BASE:-https://coronium.ai}
jq '{quoteId, confirm: true}' coronium-priced.json > coronium-confirm.json
curl -sS -b coronium.cookies -H 'Content-Type: application/json' -d @- "$BASE/app/api/private/orders" -o coronium-order.json < coronium-confirm.json
jq 'if .code then . else {order: (.order | if . then {orderId, state, quantity, usdMicros, failure} else null end), onRequest} end' coronium-order.json
```

### 6. Read the order

Read the order once a minute. `delivered` and `returned` are final. An open order keeps its debit and is charged nothing more; it becomes `delivered` when its lines arrive. If it is still open an hour after `createdAt`, stop reading: a person looks at it, and if its lines do not arrive the amount is returned to the balance. Tell your person, and name the `orderId`. Do not confirm the same quote again to hurry it: that reads the same order.

A `returned` order has its price back on the balance, and its `failure` is `on_request` when it was not in stock, otherwise `not_filled`. While `private.configured` is false the order still answers, with no lines. An `orderId` this account never made answers 404 `order_not_found`.

```
umask 077
BASE=${BASE:-https://coronium.ai}
ORDER=$(jq -r '.order.orderId' coronium-order.json)
curl -sS -b coronium.cookies "$BASE/app/api/private/orders/$ORDER" | jq 'if .code then . else {state, failure, delivered, createdAt, expiresAt, lines: [.lines[] | {lineId, expiresAt, online, capabilities}]} end'
```

### 7. Read the logins

`GET /app/api/private/orders/{orderId}/credentials` is answered with `Cache-Control: no-store`. Each line has `http` and `socks5`, each a host, a port, a username and a password. `hostPending` true means the line has no address to show: if it stays so, tell your person and name the `orderId`. Read the logins when you need them, and never pass them to a chat model. While `private.configured` is false this answers 503 `private_not_configured`.

```
umask 077
BASE=${BASE:-https://coronium.ai}
ORDER=$(jq -r '.order.orderId' coronium-order.json)
curl -sS -b coronium.cookies "$BASE/app/api/private/orders/$ORDER/credentials" -o coronium-logins.json
jq -r 'if .code then .code + ": " + .fix else (.lines[] | .lineId + " " + (if .hostPending then "no address to show" else "ready" end)) end' coronium-logins.json
```

### 8. Rotate or replace a line

`POST /app/api/private/orders/{orderId}/lines/{lineId}/rotate` or `/replace` with `confirm` true, on a line whose `capabilities.rotate` or `capabilities.replace` is true. Nothing is charged. A rotation may answer 429 `rotation_too_soon` with `retryAfterSeconds`: wait that long, then rotate again. `action_refused` changed nothing and charged nothing: the line may be offline, ended or busy, so read the order again. Rotations and replacements count toward the account's bound on writes: `rate_limited` says how long to wait. `pending` true means the action is still running: read the order again in a minute. A replaced line has a new `lineId` and new logins. While `private.configured` is false these answer 503 `private_not_configured`.

```
umask 077
BASE=${BASE:-https://coronium.ai}
ORDER=$(jq -r '.order.orderId' coronium-order.json)
LINE=ln_put_the_line_id_here
curl -sS -b coronium.cookies -H 'Content-Type: application/json' -d '{"confirm": true}' "$BASE/app/api/private/orders/$ORDER/lines/$LINE/rotate"
```

### 9. Ask for what is not listed, or not in stock

`POST /app/api/private/requests` with a two-letter `country`, a `quantity` of up to a thousand, and an optional one-line `note` with the carrier and the period. It needs no switch, so it answers in every state: `recorded` true and `onRequest`, the count recorded. Nothing is ordered or charged.

```
umask 077
BASE=${BASE:-https://coronium.ai}
curl -sS -b coronium.cookies -H 'Content-Type: application/json' -d '{"country": "de", "note": "Any carrier, for a month", "quantity": 20}' "$BASE/app/api/private/requests"
```

### 10. Read the bill

`GET /app/api/billing/statement` lists the month's `orders`, each with its `orderId`, and counts them in `purchases`.

```
umask 077
BASE=${BASE:-https://coronium.ai}
curl -sS -b coronium.cookies "$BASE/app/api/billing/statement" | jq 'if .code then . else {orders, purchases} end'
```

## Refusals

| Code | Status | What to do |
| --- | --- | --- |
| `private_not_configured` | 503 | Private modems cannot be ordered now. Ask for one with step 9, or read `GET /app/api/buy` later |
| `purchases_closed` | 409 | Nothing was charged. Confirm again once `GET /app/api/buy` answers `charging` true |
| `insufficient_balance` | 402 | Add at least `shortfallUsdMicros` with step 4, then ask for a new quote and confirm it |
| `invalid_quote` | 400 | This `quoteId` was not given to this account, or it was changed. Ask for a new quote |
| `quote_expired` | 409 | Nothing was charged. Ask for a new quote |
| `price_changed` | 409 | Nothing was charged. Show your person the new `unitUsdMicros`, then ask for a new quote |
| `offer_not_found` | 404 | Read the offers again and choose one |
| `confirmation_required` | 400 | Send `confirm` true, after your person agreed |
| `session_required` | 403 | Send the session cookie and no Bearer header |
| `order_not_found` | 404 | Use an `orderId` from `GET /app/api/private/orders` |
| `action_unsupported` | 409 | Use an action whose capability on that line is true |
| `action_refused` | 409 | Nothing changed. Read the order again |
| `rotation_too_soon` | 429 | Wait `retryAfterSeconds`, then rotate again |
| `action_failed` | 503 | Nothing was charged. Try again in a minute |
| `rate_limited` | 429 | Nothing was sent. Wait as `fix` says, then send it again |

This page: https://coronium.ai/guides/device-sessions.md.

# Device sessions

Device sessions are opened by the operator. While the operator keeps them closed, each session route below answers 503 `device_sessions_off` before it reads anything, nothing is charged, and a product is asked for with `POST /app/api/demand/device` and its kind, `emulator` or `android`.

## What a session is

A device session is one device that an agent drives through an MCP endpoint of its own. Its tools are `snapshot`, which reads the screen, and `act`, which taps, types, presses a key, swipes, opens a web address or waits. Nothing on the device is spoofed: it reports what it is.

- `emulator`: a virtual Android phone. It says it is an emulator, and sites and apps can tell that it is one.
- `android`: a physical Android phone on a carrier SIM. Its traffic leaves through that SIM, apps can tell that USB debugging is on, and its model and serial number are the same for every renter.

`reports` in a running session is what the device says of itself: its model, manufacturer, release, build type and security patch, as the device reports them.

## Quote, confirm, start

Every call here takes the session cookie of a signed-in account, as the [quickstart](/guides/agents.md) gets one with `POST /app/api/login`, and refuses a bearer with `session_required`.

1. Ask for a quote. It reserves nothing.

```
POST /app/api/sessions/quote
Content-Type: application/json

{"product": "emulator", "minutes": 30}
```

The answer is `{"quote": {"product", "minutes", "unit", "unitUsdMicros", "usdMicros"}, "onRequest": 0, "limits"}`. `unitUsdMicros` is the price of one minute and `usdMicros` the total, both in micro-USD as strings of digits. `limits` holds the account's bounds: `limits.minutesMost` for one session, `limits.concurrentMost` at once and `limits.startsPerDayMost` started in a day.

2. Show the total to the person in charge and wait for their agreement. Money moves only on a start that carries `"confirm": true` and the quoted `unitUsdMicros` as `expectedUnitUsdMicros`. A typed sentence, a string or a number in `confirm` is refused with `invalid`, and false with `confirmation_required`.

3. Start the session from the paid balance. Granted credit does not buy a session.

```
POST /app/api/sessions
Content-Type: application/json

{"product": "emulator", "minutes": 30, "expectedUnitUsdMicros": "<unitUsdMicros of the quote>", "requestId": "<your own id for this start>", "confirm": true}
```

The answer is `{"session": S, "token": "st_...", "onRequest": 0}`. The session is `starting` until its device is ready, then `running`. `exit` may name one of the account's own named identities (`POST /v1/identities`, `GET /v1/identities/{name}`) as `{"identity": "<name>"}` for the session's web traffic; a session without it has no network, and an `android` session takes none.

## The token, once

`token` is in the answer of the start that made the session and in no other answer. The ledger keeps only its SHA-256. Sent again with the same `requestId` and the same values, the start answers the same session without a token and debits nothing more; with other values it is `request_reused`.

A lost token is replaced. Each new value is shown once, and the one before it stops working when the gateway next reads the sessions from the coordinator. A gateway that cannot reach the coordinator serves with the list it read last, so a new token or a stop takes effect there once it reads the list again:

```
POST /app/api/sessions/{sessionId}/token
Content-Type: application/json

{"confirm": true}
```

## Drive the device

`controlUrl` of the session is its MCP endpoint: MCP Streamable HTTP, with one JSON-RPC message in each request and a JSON answer. Send `POST` requests to `controlUrl` with these headers, while the session is `running`:

```
Authorization: Bearer <token>
Content-Type: application/json
MCP-Protocol-Version: 2025-11-25
```

Start with `initialize`, then `tools/list` answers `snapshot` and `act`. A snapshot:

```json
{"jsonrpc": "2.0", "id": 3, "method": "tools/call", "params": {"name": "snapshot", "arguments": {"tree": true, "image": false}}}
```

```json
{"jsonrpc": "2.0", "id": 3, "result": {"content": [{"type": "text", "text": "snapshot 7216815e47b02775 screen 720x1280 rotation 0 nodes 3\ne1 EditText \"\" id=url_field [0,48][624,144] clickable focused\ne2 ImageButton \"\" label=\"Load URL\" id=btn_load_url [624,48][720,144] clickable\ne3 WebView \"\" [0,144][720,1280] scrollable\n"}], "structuredContent": {"screen": {"width": 720, "height": 1280, "rotation": 0}, "tree": {"digest": "7216815e47b02775", "nodes": 3, "truncated": false}}, "isError": false}}
```

An act, which runs its actions in order and reads the screen again:

```json
{"jsonrpc": "2.0", "id": 4, "method": "tools/call", "params": {"name": "act", "arguments": {"actions": [{"action": "open_url", "url": "https://example.com"}, {"action": "wait", "forText": "Example Domain", "timeoutMs": 15000}], "observe": "tree"}}}
```

```json
{"jsonrpc": "2.0", "id": 4, "result": {"content": [{"type": "text", "text": "1 open_url ok\n2 wait ok\n\nsnapshot 7285b9e8c2da3527 screen 720x1280 rotation 0 nodes 6\ne1 EditText \"https://example.com/\" id=url_field [0,48][624,144] clickable\ne2 ImageButton \"\" label=\"Load URL\" id=btn_load_url [624,48][720,144] clickable\ne3 WebView \"Example Domain\" [0,144][720,1280] scrollable\n  e4 TextView \"Example Domain\" [32,188][688,236]\n  e5 TextView \"This domain is for use in documentation examples without needing permission. Avoid use in operations.\" [32,268][688,356]\n  e6 View \"\" label=\"Learn more\" [32,388][176,424] clickable\n"}], "structuredContent": {"results": [{"action": "open_url", "code": "ok"}, {"action": "wait", "code": "ok"}], "screen": {"width": 720, "height": 1280, "rotation": 0}, "tree": {"digest": "7285b9e8c2da3527", "nodes": 6, "truncated": false}}, "isError": false}}
```

A ref such as `e2` is valid only for the snapshot it came from: send that snapshot's digest in `snapshot` with the ref.

## Extend and stop

An extension names the new length of the whole block, so the same call sent twice extends once. The added minutes cost the price the session started at.

```
POST /app/api/sessions/{sessionId}/extend
Content-Type: application/json

{"minutesTotal": 60, "expectedUnitUsdMicros": "<unitUsdMicros of the session>", "confirm": true}
```

A stop ends the session and answers it with `minutesBilled` and `refundUsdMicros`:

```
POST /app/api/sessions/{sessionId}/stop
Content-Type: application/json

{"confirm": true}
```

`GET /app/api/sessions/{sessionId}` reads one session and `GET /app/api/sessions` the account's sessions, newest first, with `nextCursor` for the next page. The month's sessions are in `GET /app/api/billing/statement` under `sessions`.

## What is billed

- The block of minutes is debited from the paid balance at the start, and each extension when it is made.
- Billing runs from the moment the device is ready (`runningAt`), by the started minute, and never past the paid block.
- At the end the rest of the block goes back to the paid balance, once: on a stop, when the paid time runs out, and when the session fails.
- A session whose device never became ready pays nothing, and a failed session pays only the whole minutes it ran. A session whose device failed, or whose host fell silent, is failed whoever ends it: a stop answers it `failed` with the cause.

## On request

With no price in force or no device free, a quote answers `{"quote": null, "onRequest": 1, "limits"}` and a start `{"session": null, "onRequest": 1}`. The request is recorded as demand for the product, and nothing is charged.

## Refusals

Every refusal carries `code`, `cause` and `fix`, and some carry the detail named here.

| Code | Status | Next call |
|---|---|---|
| `device_sessions_off` | 503 | Ask for the product with `POST /app/api/demand/device` |
| `confirmation_required` | 400 | Ask the person in charge, then send `"confirm": true` |
| `invalid` | 400 | Correct the field that `field` names, or the body, and send it again |
| `unknown_product` | 400 | Send `product` as `emulator` or `android` |
| `price_changed` | 409 | Quote again, confirm the new `unitUsdMicros` with the person in charge, and start again |
| `insufficient_balance` | 402 | Add at least `shortfallUsdMicros` to the paid balance, then send the same request again |
| `session_limit` | 429 | `limit` names the bound and `most` its value: ask for fewer minutes, stop a session, or after `retryAt` start again |
| `exit_not_found` | 404 | Name an identity of the account with `GET /v1/identities/{name}`, or leave `exit` out |
| `request_reused` | 409 | Send the original start again to read it, or use a new `requestId` |
| `purchases_closed` | 409 | Start again once `GET /app/api/buy` answers `charging` true |
| `account_suspended` | 403 | Ask support to review the account |
| `session_not_found` | 404 | Use a `sessionId` from `GET /app/api/sessions` |
| `session_starting` | 409 | Read the session until `state` is `running`, then extend it |
| `session_ended` | 410 | Start a new session with `POST /app/api/sessions` |
| `rate_limited` | 429 | Wait, then send the same request again |
| `session_required` | 403 | Send the session cookie and no `Authorization` header |
| `sign_in_required` | 401 | Sign in with `POST /app/api/login` |

The [OpenAPI document](/openapi.json) lists every call with its body and its answer.

This page: https://coronium.ai/guides/device-enrol.md.

# Connect a device: account, agreement and enrolment

Calls go to https://supply.coronium.ai: each block sets `SUPPLY` to it unless you exported `SUPPLY`. The blocks use curl, jq and sha256sum and keep every answer in a file only you can read. A device carries other people's web traffic, so enrol one only when its owner, and whoever pays for its connection, agreed. Each device earns the same published share, whoever enrolled it.

## Steps

1. Sign up once, then sign in.

```sh
umask 077
SUPPLY=${SUPPLY:-https://supply.coronium.ai}
[ -e coronium-account.json ] || curl -sS -c coronium.cookies -H 'Content-Type: application/json' -d '{}' "$SUPPLY/app/api/signup" -o coronium-account.json
jq -c '{code: ((.accessCode | strings | select(. != "")) // error("no accessCode in coronium-account.json"))}' coronium-account.json > coronium-login.json &&
curl -sS -c coronium.cookies -H 'Content-Type: application/json' -d @- "$SUPPLY/app/api/login" < coronium-login.json
```

Expect: `{"signedIn":true}`. A new account's file holds `accountId`, `credential` and `accessCode`, shown this once. If `coronium-account.json` holds `registration_closed`, use your person's account: they write `{"accessCode": "<access code>"}` into it, then run the block again. Safe to repeat: yes; it signs up only while the file is missing.

2. Read the partner agreement, and show it.

```sh
umask 077
SUPPLY=${SUPPLY:-https://supply.coronium.ai}
curl -sS -b coronium.cookies "$SUPPLY/app/api/consent" -o coronium-consent.json
jq -j '.text // empty' coronium-consent.json > coronium-agreement.md
jq '{version, sha256, approved, status, code}' coronium-consent.json
```

Expect: `approved` true, and `status` `unsigned`, `signed` or `countersigned`; `sha256sum coronium-agreement.md` prints `sha256`. Show your person `coronium-agreement.md` whole, with `version` and `sha256`, and wait for their yes. While `approved` is false nobody can sign. Safe to repeat: yes.

3. Sign, after the yes. Write `coronium-signer.json` as `{"name": "<full legal name>", "organisation": "<only when they sign for one>"}`: the person or organisation that controls the account, never you, trimmed, without `|` or a line break. The block keeps the signed body in `coronium-signature.json`.

```sh
umask 077
SUPPLY=${SUPPLY:-https://supply.coronium.ai}
[ -e coronium-signature.json ] || {
  now=$(date -u +%Y-%m-%dT%H:%M:%S.000Z)
  sig=$(jq -j --arg now "$now" --slurpfile s coronium-signer.json '"coronium-partner-agreement|\(.version)|\(.accountId)|\($s[0].name)|\($s[0].organisation // "")|\(.sha256)|\($now)"' coronium-consent.json | sha256sum | cut -d' ' -f1)
  jq -c --arg now "$now" --arg sig "$sig" --slurpfile s coronium-signer.json '{consent: {version, sha256}, agreed: true, signer: $s[0], signedAt: $now, signature: $sig}' coronium-consent.json > coronium-signature.json
}
curl -sS -b coronium.cookies -H 'Content-Type: application/json' -d @- "$SUPPLY/app/api/consent" < coronium-signature.json | jq '{signatureId, version, code}'
```

Expect: a `signatureId`. The signature is the SHA-256 of `coronium-partner-agreement|<version>|<accountId>|<signer.name>|<signer.organisation or empty>|<sha256>|<signedAt>`. A check: version `partner-1 (2026-11-25)`, accountId `5f0c2a8e-3b1d-4c6e-9a7f-2d8b4e6c1a90`, name `Ada Example`, organisation `Example Devices Ltd`, sha256 `9f2c4e6a8b0d1f3e5a7c9e1b3d5f7a9c2e4b6d8f0a1c3e5b7d9f1a3c5e7b9d0f` and signedAt `2026-11-25T12:00:00.000Z` give `a7e2aa366c3f98afdb1c468330872ed2edf81c66da3b5e74bfd3c8a0826e249f`. A signature and each enrolment are stored with the address and client software they came from, under a keyed receipt ([`/kit/SIGNING.md`](/kit/SIGNING.md)). If refused: `bad_signed_at` (more than 10 minutes from the server's clock: fix the clock, delete `coronium-signature.json`, repeat), `already_signed` (signed already with other values; that stands, go on), `consent_outdated` (step 2, then delete `coronium-signature.json`). Safe to repeat: yes, with the same file. A signature is never withdrawn.

4. Enrol one device.

```sh
umask 077
SUPPLY=${SUPPLY:-https://supply.coronium.ai}
[ -e coronium-enrol.json ] || jq -c --arg id "$(od -An -tx1 -N8 /dev/urandom | tr -d ' \n')" '{consent: {version, sha256}, agreed: true, requestId: $id}' coronium-consent.json > coronium-enrol.json
[ -e coronium-device.json ] || curl -sS -b coronium.cookies -H 'Content-Type: application/json' -d @- "$SUPPLY/app/api/devices" < coronium-enrol.json -o coronium-device.json
jq '{deviceId, relay, state, code}' coronium-device.json
```

Expect: `deviceId`, `relay` and `state` `new`; the file also holds `deviceSecret`, shown this once. If refused, act on `fix`, delete `coronium-device.json` and repeat: `agreement_unsigned` (step 3), `device_cap_reached` (the account holds `terms.deviceLimit` of `GET /app/api/earnings`), `enrolment_repeated` (this `requestId` enrolled `deviceId` already and its secret is gone: ask Coronium to withdraw it, delete `coronium-enrol.json` too, enrol again). Safe to repeat: yes; one `requestId` enrols once.

5. Write the settings file.

```sh
umask 077
jq -er 'if (.relay and .deviceId and .deviceSecret) then "CORONIUM_RELAY=\(.relay)\nCORONIUM_DEVICE=\(.deviceId)\nCORONIUM_DEVICE_SECRET=\(.deviceSecret)" else error("no relay, device or secret in coronium-device.json") end' coronium-device.json > agent.env
```

Expect: no output, and `agent.env` with three lines for Docker, a shell or systemd. A null `relay` means ask the operator. Safe to repeat: yes.

## Then

[Choose and check the agent file](/guides/device-files.md), run it one way, and [read the device's state](/guides/device-states.md).

This page: https://coronium.ai/guides/device-files.md.

# Choose and check the agent file

Calls go to https://supply.coronium.ai. `/kit/index.json` lists what this server publishes now, with `"schema": 2`: stop on another number or none. Each file has `name`, `sha256`, `bytes`, `way`, `os`, `arch`, `kind`, `state`, `checked` and `limits`.

## Steps

1. Pick a file by `os`, `arch` and `kind`. `uname -m` prints `x86_64` for `amd64`, `aarch64` or `arm64` for `arm64`, `armv7l` for `armv7` and `armv6l` for `armv6`. A MIPS router prints `mips` either way: take `mipsle` when its firmware names a little-endian architecture such as `mipsel_24kc`. `kind` is `kit` for the Linux kit with its installer, `docker` for the image, `binary` for the program alone.

```sh
umask 077
SUPPLY=${SUPPLY:-https://supply.coronium.ai}
curl -fsS "$SUPPLY/kit/index.json" -o coronium-kit.json
jq -r '.files[] | select(.os == "linux" and .arch == "amd64") | "\(.name) \(.kind) \(.state) \(.limits | join(","))"' coronium-kit.json
```

Expect: one line per file of that system. Use one only when the device's owner accepts its `state` and each of its `limits`. Safe to repeat: yes.

2. Download the file and check it against the list.

```sh
umask 077
SUPPLY=${SUPPLY:-https://supply.coronium.ai}
FILE=coronium-agent-linux-amd64
curl -fsSLO "$SUPPLY/kit/$FILE"
jq -r --arg f "$FILE" '.files[] | select(.name == $f) | "\(.sha256)  \(.name)"' coronium-kit.json | sha256sum -c
```

Expect: `coronium-agent-linux-amd64: OK`; stop on anything else. Nothing is signed yet: the list is as trustworthy as its HTTPS connection. Safe to repeat: yes.

## Then

Run [the Linux kit](/guides/device-linux-kit.md), [the image](/guides/device-docker.md) or [the program alone](/guides/device-program.md).

## Every file

The table speaks for the next build and `/kit/index.json` for what this server publishes now. A dated note speaks only for the digest it names.

<!-- facts:begin kit.files -->
| Way | `os` | `arch` | `kind` | `state` | `limits` |
|---|---|---|---|---|---|
| Linux agent kit | `linux` | `amd64` | `kit` | `available` | `system_ca_roots_required` |
| Docker image | `linux` | `amd64` | `docker` | `preview` | `not_run_by_coronium` |
| Linux agent kit | `linux` | `amd64` | `binary` | `available` | `system_ca_roots_required` |
| Linux agent kit | `linux` | `arm64` | `kit` | `preview` | `not_run_by_coronium`, `system_ca_roots_required` |
| Docker image | `linux` | `arm64` | `docker` | `preview` | `not_run_by_coronium` |
| Linux agent kit | `linux` | `arm64` | `binary` | `preview` | `not_run_by_coronium`, `system_ca_roots_required` |
| Linux agent kit | `linux` | `armv7` | `binary` | `preview` | `not_run_by_coronium`, `system_ca_roots_required` |
| Linux agent kit | `linux` | `armv6` | `binary` | `preview` | `not_run_by_coronium`, `system_ca_roots_required` |
| Linux agent kit | `linux` | `riscv64` | `binary` | `preview` | `not_run_by_coronium`, `system_ca_roots_required` |
| Routers | `linux` | `mips` | `binary` | `preview` | `not_run_by_coronium`, `no_installer`, `system_ca_roots_required`, `large_for_small_flash` |
| Routers | `linux` | `mipsle` | `binary` | `preview` | `not_run_by_coronium`, `no_installer`, `system_ca_roots_required`, `large_for_small_flash` |
| Windows | `windows` | `amd64` | `binary` | `preview` | `not_run_by_coronium`, `unsigned`, `no_installer` |
| Windows | `windows` | `arm64` | `binary` | `preview` | `not_run_by_coronium`, `unsigned`, `no_installer` |
| macOS | `darwin` | `arm64` | `binary` | `preview` | `not_run_by_coronium`, `unsigned`, `no_installer` |
<!-- facts:end kit.files -->

What Coronium observed of each published file is under Each system in [the program alone](/guides/device-program.md).

<!-- facts:begin kit.words -->
States:

- `available`: Coronium took this exact file through its whole check on this system: digest checked, started by the published steps, connected to the relay, one billed request with bytes billed equal to bytes carried, then stopped and removed by the published steps. `checked` is the day of that record when it holds this file's SHA-256, and null otherwise.
- `preview`: Built for this system, its header read back from its bytes, and not yet through that whole check here. Use it only when the device's owner accepts that and each of its limits.
- `not_available`: There is no file for this way. The way names its reason.

Limits:

- `not_run_by_coronium`: No run of this file on this system is recorded against its row.
- `unsigned`: Not code-signed: the system may warn about it or block it.
- `no_installer`: No installer and no service: you start it from a shell.
- `system_ca_roots_required`: Needs the system's certificate roots (the ca-certificates package), which minimal, container and router images often lack. The Docker image carries its own.
- `large_for_small_flash`: Large for a router with 8 to 16 MB of flash.

Reasons a way has no file:

- `store_policy`: The app store allows proxying for others only as an app's own main purpose, so Coronium offers no SDK for store apps. Run the agent on a computer or router on the same connection instead.
- `platform_policy`: The platform's review rules allow background services only for listed purposes, and a proxy is not one. None is planned.
- `not_built`: Not built, or this build left its files out.
<!-- facts:end kit.words -->

A sharing kit inside another developer's product is not built.

This page: https://coronium.ai/guides/device-linux-kit.md.

# Run it with the Linux kit

The kit installs the agent as a systemd service, after checking every file and showing the partner agreement. Calls go to https://supply.coronium.ai. The kit carries these same steps in its `README.md`.

<!-- facts:begin part.linux-kit -->
## Needs

- Linux on x86-64 or ARM64, root through `sudo`, and `curl` and `sha256sum`.
- The system's certificate roots, which minimal and container images leave out: `sudo apt-get install -y ca-certificates` on Debian and Ubuntu, `sudo apk add ca-certificates` on Alpine, `sudo dnf install -y ca-certificates` on Fedora and RHEL.
- Outbound TCP to the relay. No inbound port.
- From the device's enrolment at https://supply.coronium.ai/farmer or through the API: the relay `host:port`, the device id, the device secret, and the agreement digest shown for the device, which is the `sha256` of the text the account signed.
- The kit digest: the line for `coronium-agent-linux-<arch>/SHA256SUMS` in https://supply.coronium.ai/kit/SHA256SUMS, which the farmer portal also shows.
- A person at the device's terminal: the installer shows the partner agreement and asks them to type it. An agent hands this step to its person, or runs the program alone instead.

## Steps

1. Download and check the kit as your normal user, in a folder of its own, before anything runs as root. `ARCH` is `amd64` when `uname -m` prints `x86_64`, and `arm64` for `aarch64`.

```sh
umask 077
SUPPLY=${SUPPLY:-https://supply.coronium.ai}
ARCH=amd64
curl -fsSLO "$SUPPLY/kit/SHA256SUMS"
curl -fsSLO "$SUPPLY/kit/coronium-agent-linux-$ARCH.tar.gz"
grep " coronium-agent-linux-$ARCH.tar.gz\$" SHA256SUMS | sha256sum -c
tar -xzf "coronium-agent-linux-$ARCH.tar.gz"
grep " coronium-agent-linux-$ARCH/SHA256SUMS\$" SHA256SUMS | sha256sum -c
cd "coronium-agent-linux-$ARCH" && sha256sum -c SHA256SUMS
```

Expect: every line ends `OK`. If one does not, stop and write to the contact in `PARTNER-AGREEMENT.md`. Nothing is signed yet: the digests are only as trustworthy as the site they came from. Safe to repeat: yes.

2. Install, in the kit's folder. Without systemd, add `--no-systemd`: the installer then prints one command that runs the agent in the foreground as the user `nobody`, and nothing starts it after a reboot.

```sh
umask 077
sudo ./install.sh
```

Expect: `Installed.` and the consent record, which holds no secret. The settings go to `/etc/coronium-agent/agent.env`, readable by root only. If refused: `no_certificate_roots` (install the roots above), `kit_digest_mismatch` (download the kit again), `agreement_not_accepted` (the kit's agreement is not the text the account signed: sign the text in force, then enrol), `consent_not_given`, `bad_relay`, `bad_device_id` or `bad_secret` (run it again with the right value), `no_systemd` (add `--no-systemd`), `wrong_architecture`, `checksum_mismatch` or `consent_draft` (get a new kit). Safe to repeat: yes, and it keeps the settings.

3. Check.

```sh
umask 077
systemctl is-active coronium-agent
journalctl -u coronium-agent -n 20 --no-pager
```

Expect: `active` and `connected to the relay`. A problem is one log line with its cause and its fix, and the agent dials again by itself. If its settings are refused five times in five minutes the service stops: fix the cause, then `sudo systemctl restart coronium-agent`.

## Stop and remove

`sudo systemctl disable --now coronium-agent` stops it and keeps it stopped after a reboot; `sudo systemctl enable --now coronium-agent` starts it again. To remove the service, the program, its user and `/etc/coronium-agent` with the secret, run this in the kit's folder:

```sh
umask 077
sudo ./uninstall.sh
```

It warns, with the process id, about an agent you started yourself, which it does not stop. Removing the agent does not withdraw the device: withdrawing is a request to Coronium, at the contact in section 10 of `PARTNER-AGREEMENT.md`.
<!-- facts:end part.linux-kit -->

This page: https://coronium.ai/guides/device-docker.md.

# Run it in a container

The image runs the agent as user 65534, not as root, on a read-only filesystem, with no shell and no installer. It carries certificate roots of its own. Calls go to https://supply.coronium.ai.

## Needs

- Docker on Linux, outbound TCP to the relay, and no inbound port.
- `agent.env` from [enrolment](/guides/device-enrol.md). A person who has none yet makes it with `touch agent.env && chmod 600 agent.env`, then writes three lines into it in an editor, such as `nano agent.env`: `CORONIUM_RELAY=us1.almanac.channel:17001`, `CORONIUM_DEVICE=<device id>` and `CORONIUM_DEVICE_SECRET=<device secret>`, without quotes and never on a command line.
- One container per public address: when an earlier residential device already exits from that address, the later one is withheld as `same_exit`.

No installer shows the agreement here, so the signature and the acceptance stored at enrolment are its record.

## Steps

1. Download, check and load the image. `ARCH` is `amd64` for `x86_64` and `arm64` for `aarch64`.

```sh
umask 077
SUPPLY=${SUPPLY:-https://supply.coronium.ai}
ARCH=amd64
curl -fsSLO "$SUPPLY/kit/SHA256SUMS"
curl -fsSLO "$SUPPLY/kit/coronium-agent-docker-$ARCH.tar"
grep " coronium-agent-docker-$ARCH.tar\$" SHA256SUMS | sha256sum -c
docker load -i "coronium-agent-docker-$ARCH.tar"
curl -fsS "$SUPPLY/kit/index.json" | jq -r .version > coronium-version.txt
```

Expect: `OK`, then `Loaded image: coronium-agent:<version>`, with the version `coronium-version.txt` now holds. Stop if the check fails. Safe to repeat: yes.

2. Run it, beside `agent.env`.

```sh
umask 077
VERSION=$(cat coronium-version.txt)
docker run -d --name coronium-agent --restart unless-stopped --read-only \
  --cap-drop ALL --security-opt no-new-privileges --env-file agent.env "coronium-agent:$VERSION"
docker logs -n 20 coronium-agent
```

Expect: `connected to the relay`. A problem is one line with its cause and its fix. The agent does not retry a refused setting: Docker starts it again with a growing pause until the file is fixed. Docker reads `agent.env` only when it creates the container, so after a change run `docker rm -f coronium-agent` and this step again. Safe to repeat: after `docker rm -f coronium-agent` only; Docker refuses a second container of the same name.

## Stop and remove

`docker stop coronium-agent` stops sharing, and it stays stopped after a reboot; `docker start coronium-agent` starts it again. To remove the container, the settings file that holds the secret, and the image:

```sh
umask 077
VERSION=$(cat coronium-version.txt)
docker rm -f coronium-agent
rm agent.env
docker rmi "coronium-agent:$VERSION"
```

Removing it does not withdraw the device; [the states section](/guides/device-states.md) says how.

This page: https://coronium.ai/guides/device-program.md.

# Run the program alone

The program alone is built for Linux, Windows, macOS and routers; each file's state, its limits and what Coronium observed of it are listed below, under Each system. It has no installer and no service: start it from a shell with the three settings of `agent.env` in its environment, never as arguments, as an ordinary user and never as root, and keep it running with a supervisor of your own. On Linux with systemd, the kit's `coronium-agent.service` is one. Calls go to https://supply.coronium.ai.

## Needs

- The file for the system, checked as in [the files section](/guides/device-files.md), and `agent.env` from [enrolment](/guides/device-enrol.md).
- Outbound TCP to the relay, no inbound port, and one device per public address.
- On Linux and routers, the system's certificate roots: without them the program logs that the system has none, with the package to install. Windows and macOS check the relay's certificate with their own store.

## Steps

1. Start it. On Linux, macOS and routers, put the file's name in `FILE`:

```sh
umask 077
FILE=coronium-agent-linux-amd64
chmod 0755 "$FILE"
(set -a; . ./agent.env; set +a; exec "./$FILE")
```

On Windows, in PowerShell, in the folder of the file and `agent.env`:

```powershell
Get-Content agent.env | ForEach-Object { $name, $value = $_ -split '=', 2; Set-Item "env:$name" $value }
.\coronium-agent-windows-amd64.exe
```

Expect: `connected to the relay`. Each problem is one line, `not connected: <cause>. Fix: <fix>. Dialing again in <time>`, and the program dials again by itself after a lost connection. A setting it refuses ends it with exit status 2 and `<code>: <cause>. Fix: <fix>`: `bad_relay`, `bad_device_id` or `bad_secret` means `agent.env` is wrong. Safe to repeat: yes, one copy at a time; a second copy with the same settings replaces the first at the relay.

2. Know each system's limits, which `/kit/index.json` lists for each file.

- Windows and macOS: the file has no code signature, so the system may warn about it or block a copy a browser downloaded; a copy fetched with curl carries no download mark.
- Routers: copy the file to the router, and check that it has certificate roots, room in flash and memory, and a clock set by NTP, because a router that boots with its clock in the past fails the certificate check until the time is set. A router's memory, flash, resolver and clock are not measured by Coronium yet.

## Each system

The next build's state and limits of the program's files; `/kit/index.json` speaks for what this server publishes now:

<!-- facts:begin kit.program -->
- `linux` on `amd64`: `available`; limits `system_ca_roots_required`.
- `linux` on `arm64`, `armv7`, `armv6`, `riscv64`: `preview`; limits `not_run_by_coronium`, `system_ca_roots_required`.
- `linux` on `mips`, `mipsle`: `preview`; limits `not_run_by_coronium`, `no_installer`, `system_ca_roots_required`, `large_for_small_flash`.
- `windows` on `amd64`, `arm64`: `preview`; limits `not_run_by_coronium`, `unsigned`, `no_installer`.
- `darwin` on `arm64`: `preview`; limits `not_run_by_coronium`, `unsigned`, `no_installer`.
<!-- facts:end kit.program -->

What Coronium observed of each published file, the kit and the image included. A dated note speaks only for the digest it names:

- Linux `amd64` kit and program: `available` by a stated exception, on two runs of two earlier builds, until a device outside Coronium replaces both.
- Docker `amd64`, digest `bd501040b7432344`: on 26 November 2026, connected, measured and withheld as a data-centre network. No billed request.
- Windows `amd64` and `arm64`, digests `e2a3557e46c9e546` and `5ca66a8dec3becd9`: on 26 November 2026, started on hosted virtual machines of their architecture and reached the relay's refusal of an unknown device. Never enrolled.
- macOS `arm64`, digest `c739273a9de679a3`: on 26 November 2026, run once on a Mac on a home line: connected, measured and withheld as an unclassified network. No billed request.
- Linux `arm64`, `armv7`, `armv6`, `riscv64` and both router files: run only under emulation, which is not a run on that system.

## Stop and remove

Ctrl-C, or ending the process, stops it. Delete the file and `agent.env`, which holds the secret, to remove it. Removing it does not withdraw the device; [the states section](/guides/device-states.md) says how.

This page: https://coronium.ai/guides/device-states.md.

# Device states, earnings and payouts

Calls go to https://supply.coronium.ai, signed in as in [enrolment](/guides/device-enrol.md).

## Steps

1. Read the devices, about once a minute until the new one is measured.

```sh
umask 077
SUPPLY=${SUPPLY:-https://supply.coronium.ai}
curl -sS -b coronium.cookies "$SUPPLY/app/api/devices" | jq -c '.devices[] | {deviceId, status, state, reason}'
```

Expect: `online` once the agent connects. Then act on `state` and `reason`:

| Reads | Means | Do |
|---|---|---|
| `status` `offline` | the agent is not connected | read the agent's log: each line names its cause and fix |
| `new`, `not_measured` | connected, not measured yet | read again a minute later |
| `withheld`, `unclassified_asn` | Coronium has not classified this network yet | nothing: leave it running, tell your person, do not enrol again |
| `withheld`, `class_not_sold` | a network Coronium does not sell, such as a data centre | stop: this device will not carry buyer traffic |
| `withheld`, `same_exit` | an earlier residential device, of any account, exits from this address | move it to a connection of its own, or stop it |
| `withheld`, `exit_unverified` or `exit_changed` | three measurements in a row failed, or the country changed | keep it running: it is measured again |
| `withheld`, `supplier_blocked` | the operator blocked the account | tell your person |
| `admitted` | carries buyer traffic as fallback supply | done |
| `established` | carries traffic first, after the operator promoted it on a clean history | done |
| `paused`, `private` | the account's own choice | nothing, unless your person asks |
| `withdrawn` | permanent | a new enrolment, if your person wants one |

`requests`, `bytesUp` and `bytesDown` include Coronium's own measurements of the exit, one request each, which earn nothing. Safe to repeat: yes.

2. Read the earnings.

```sh
umask 077
SUPPLY=${SUPPLY:-https://supply.coronium.ai}
curl -sS -b coronium.cookies "$SUPPLY/app/api/earnings" | jq '{earned, held, available, requested, paid, payoutMinimumUsdMicros, terms}'
```

Expect: the totals; the full answer lists each day and device with the bytes carried, what buyers paid, the share and the release day. `terms` is what the ledger applies to this account: `holdDays`, `deviceLimit` (null without a limit), `shareBp` (null while Coronium does not charge buyers) and `charging`. Read them here, never from memory. Traffic from a free grant, traffic a buyer could not pay for and an account's own traffic earn nothing. Safe to repeat: yes.

3. Ask for a payout, only with your person's word: `POST /app/api/payouts` with the exact amount in whole cents, `asset` (`USDC` or `USDT`), `network`, `address` and the access code as proof. One request waits at a time, paid by hand once a month; an account that owes for its own buyer traffic is refused `buyer_in_debt`. Safe to repeat: no.

## Stop and withdraw

Stopping the agent stops sharing. Withdrawing a device, or more devices on one account, is a request to Coronium at the contact in section 10 of the partner agreement; there is no API call, and a withdrawal does not stop a running agent.

This page: https://coronium.ai/guides/device-tokens.md.

# Many devices: enrolment by token

A token lets each device enrol itself: no device holds the account's session or access code, and no device secret crosses the network. Calls go to https://supply.coronium.ai. The rules do not change, `terms.deviceLimit` of `GET /app/api/earnings` included.

## Needs

- The operator switches these routes on. Until then `POST /app/api/enrol-tokens`, `GET /app/api/enrol-tokens`, `POST /app/api/enrol-tokens/{tokenId}/revoke` and `PUT /app/api/devices/{deviceId}` answer 503 `enrol_tokens_off`: enrol each device as in [enrolment](/guides/device-enrol.md).
- An account signed in that signed the text in force ([enrolment](/guides/device-enrol.md), steps 1 to 3), and the yes of the devices' owner.
- Of several residential devices behind one public address only the first carries traffic (`same_exit`), and a data-centre device none (`class_not_sold`).

## Steps

1. Mint a token, with the access code as proof. A `uses` above what the account may still enrol is refused `invalid` with the limit in `most`; `expiresInHours` and `label` are optional.

```sh
umask 077
SUPPLY=${SUPPLY:-https://supply.coronium.ai}
jq -c '{consent: {version, sha256}, agreed: true, uses: 1, label: "rack_a"}' coronium-consent.json > coronium-mint.json
jq -c --slurpfile m coronium-mint.json '$m[0] + {proof: {code: .accessCode}}' coronium-account.json | curl -sS -b coronium.cookies -H 'Content-Type: application/json' -d @- "$SUPPLY/app/api/enrol-tokens" -o minted.json
if jq -e '.tokenId | strings' minted.json > /dev/null; then
  jq -r '"Authorization: Bearer \(.token)"' minted.json > token.header
  jq -c .consent minted.json > consent.json
else
  jq -r '"\(.code): \(.cause) Fix: \(.fix)"' minted.json; false
fi
```

Expect: `token.header` and `consent.json`, the files each device needs; the token is shown once. If refused, the block prints `<code>: <cause> Fix: <fix>`, ends with a non-zero status and writes neither file: `enrol_tokens_off` (enrol each device as in [enrolment](/guides/device-enrol.md)), `token_limit_reached` (revoke one), `device_cap_reached`, `agreement_unsigned`. Safe to repeat: no; each run mints another.

2. On each device, beside `token.header` and `consent.json`, make the id and secret and write `agent.env` before any call, so a lost answer is sent again with the same pair.

```sh
umask 077
[ -e agent.env ] || {
  head -c 32 /dev/urandom >secret.bin
  id=$(od -An -tx1 -N16 /dev/urandom | tr -d ' \n' | sed -E 's/^(.{8})(.{4})(.{4})(.{4})(.{12})$/\1-\2-\3-\4-\5/')
  printf 'CORONIUM_DEVICE=%s\nCORONIUM_DEVICE_SECRET=%s\n' "$id" "$(od -An -tx1 -v secret.bin | tr -d ' \n')" >agent.env
}
```

3. Exchange the token. The body is `secretSha256`, the SHA-256 of the raw secret bytes, never of their hex text, and `consent`.

```sh
umask 077
SUPPLY=${SUPPLY:-https://supply.coronium.ai}
id=$(sed -n 's/^CORONIUM_DEVICE=//p' agent.env)
printf '{"secretSha256":"%s","consent":%s}' "$(sha256sum secret.bin | cut -d' ' -f1)" "$(cat consent.json)" >exchange.json
code=$(curl -sS -o answer.json -w '%{http_code}' -X PUT -H @token.header -H 'Content-Type: application/json' \
  --data-binary @exchange.json "$SUPPLY/app/api/devices/$id")
case "$code" in 200|201) printf 'CORONIUM_RELAY=%s\n' "$(jq -r '.relay // empty' answer.json)" >>agent.env && rm -f token.header secret.bin exchange.json ;; esac
echo "$code"
```

Expect: `201` (`applied`), or `200` (`already_applied`, no use spent) for the same id, secret and token. The answer holds `deviceId`, `relay`, `state` and `consent`, never a secret. If refused: `bad_enrol_token`, `enrol_token_expired`, `enrol_token_used` or `enrol_token_revoked` (mint another), `consent_outdated` (sign the text in force, then mint again), `device_id_taken` (delete `agent.env` and `secret.bin`, start at step 2). A 429 means more than 5 requests a second from one address: wait and repeat. A null `relay` means ask the operator. Safe to repeat: yes.

Then run the agent with `agent.env` as for any device. A worked digest, with made-up bytes: the secret `000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f` has the `secretSha256` `630dcd2966c4336691125448bbb25b4ff412a49c732db2c8abc1b8581bd710dd`.

**Never bake `agent.env` into an image**: copies of one id and secret are one device, each replacing the last at the relay. Bake `token.header` and `consent.json`, and make the pair on first boot.

## Read and revoke

`GET /app/api/enrol-tokens` lists the tokens with `state` (`live`, `used`, `expired`, `revoked` or `outdated`) and the `devices` each made, never the token. `POST /app/api/enrol-tokens/{tokenId}/revoke` with `{}` revokes one; replacing the access code revokes all. Revoking withdraws no device.

This page: https://coronium.ai/guides/limits.md.

# Stated limits

This page lists what the service does not do, or does only within a bound. Each item is a property of the current build.

- Registration and the buyer proxy endpoint are opened by the operator. `POST /app/api/signup` answers `registration_closed` while registration is closed, and `endpoint.state` in `GET /app/api/proxy` reads `closed` while no buyer traffic is carried.
- The service sells peer devices of the mobile and residential classes. Carrier modems (`mbl`), ISP addresses and datacenter addresses asked for in a username are recorded as demand and answered `on_request`. A dedicated carrier modem is the Private mobile proxies product, which the operator switches on. Reserved addresses are not offered.
- Each product that the agent index of the buyer site, its `/llms.txt`, does not list as available is not built. A signed-in account asks for one with `POST /app/api/demand/device`; the request is recorded, and nothing is ordered or charged.
<!-- 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 -->
- IP class and carrier are decided by the network (ASN) a device exits from. The exit is measured on IPv4 only. A modified agent can recognise the measurement.
- A sticky session is a handle on one device while that device stays in the pool. When the device leaves, the session moves to another device.
- A city name that two states share selects both unless `state` is given.
- A proxy request to mail ports 25, 465, 587 and 2525, or to an IPv6 literal, is refused with `target_blocked`.
- The limit on simultaneous streams of one buyer is counted on each edge server.
- Traffic in flight when a balance runs out, an account is suspended or a byte cap is reached is charged in full until the stop takes effect. The time that takes is not measured yet. Traffic charged into debt earns the device owner nothing.
- A usage batch delivered more than 15 minutes late, across a device's change of country, is priced at the new country.
- A reversed payment does not take back earnings already credited to a device owner.
- A live route test sends one billed request to the operator's test origin.
- An account saves at most 64 session sets of up to 1,000 sessions each. Saved sessions have no traffic counters of their own.
- An account holds at most three open quotes with one provider. A refund or a dispute is recorded for the operator, who reverses the credit by hand.
- Enrolment by token, for many devices at once, is built and not switched on yet: `POST /app/api/enrol-tokens`, `GET /app/api/enrol-tokens`, `POST /app/api/enrol-tokens/{tokenId}/revoke` and `PUT /app/api/devices/{deviceId}` answer 503 `enrol_tokens_off` until the operator switches them on.
- Device sessions are opened by the operator: `POST /app/api/sessions/quote`, `POST /app/api/sessions`, `GET /app/api/sessions`, `GET /app/api/sessions/{sessionId}`, `POST /app/api/sessions/{sessionId}/extend`, `POST /app/api/sessions/{sessionId}/stop` and `POST /app/api/sessions/{sessionId}/token` answer 503 `device_sessions_off` while they are closed. One account's sessions are bounded by `limits.minutesMost`, `limits.concurrentMost` and `limits.startsPerDayMost` of every quote, the same for every account.
- A device on a network Coronium has not classified yet stays connected and carries no buyer traffic (`unclassified_asn`) until the operator classifies that network.
- An agent file marked `preview` in `/kit/index.json` was built for its system and has not yet been through Coronium's whole check there. Nothing in `/kit/` is signed yet.
- A new account holds at most the devices `terms.deviceLimit` of `GET /app/api/earnings` names. Payouts are made by hand, one request at a time, from the payout minimum up. A payout request is proven with the access code.
- Card and cryptocurrency top-ups are exercised against stand-ins of the providers. No live payment has been taken.
- No capacity figure is claimed for this build. Throughput gates are run on separate hardware and published with their hardware, node count and duration.

This page: https://coronium.ai/guides/buyers.md.

# Guide for buyers

A buyer sends web traffic through devices that their owners enrolled, and pays for the bytes carried. This guide follows the order a new buyer works in. An agent follows the same steps over HTTP in the [quickstart for agents](/guides/agents.md).

1. Create an account. Creating one asks for no details. The service shows one access code once: store it, because it signs the account in from then on. You can add an email address and a password later. Each of those changes, and replacing the access code, asks for the current password or the access code again.
2. Add funds. The balance is in US dollars. Choose an amount, check the quote, then confirm it to open the checkout by card or by cryptocurrency. The balance grows when the payment provider reports the payment as paid.
3. Make a proxy string. Choose a pool and a country, then optional filters: IP class, carrier, state or city. Choose how long a session stays on one device. The page prints the usernames and connection strings, and you paste your credential into them.
4. Send traffic. The proxy takes HTTP and SOCKS5. The page shows the host and ports once the endpoint is open. Until then it reads "Proxy endpoint: not open yet" and no buyer traffic is carried.
5. Read what you were charged. The statement lists each day and country with the price that applied, and every figure is an exact integer amount.

## Pages

<!-- facts:begin pages.list -->
- [Gigabytes](/buy)
- [Private devices](/buy/mobile)
- [Spawn GB proxies](/proxies): These proxies use your GB balance. You pay for the traffic you send.
- [Manage private proxies](/proxies/private): These are dedicated devices you rent for a period. They are not billed per GB.
<!-- facts:end pages.list -->

## What you pay for

You pay for the bytes sent and received through the proxy, at the list price of the country the traffic left from. One gigabyte is 1,000,000,000 bytes. [Prices](/guides/prices.md) explains the tiers, and [usernames](/guides/usernames.md) lists every option a username takes. A country or a filter with no device online is "on request": the request is recorded as demand, and the username works as soon as supply arrives.

"Test now" explains the route of one username. A live test sends one request to the operator's test origin, and that request is charged like any other. [Limits](/guides/limits.md) states what the service does not do yet.

This page: https://coronium.ai/guides/usernames.md.

# Proxy usernames

The proxy username says which device should carry a request. The password is always the account's credential. `POST /app/api/proxy/spawn` prints usernames for you, and this page is the full grammar for writing one by hand.

```
<account>-<pool>-<country>[-<key>-<value>]...
```

A username is lowercase ASCII and at most 255 bytes. Each key appears once, in any order. A username outside the grammar is refused with `bad_options`: the cause names the token and the fix shows the username to send.

Fixed words: `any`, `best`, `peer`, `mbl`, `sid`, `rot`, `iptype`, `carrier`, `asn`, `state`, `city`, `failover`, `pin-device`, `auto5`, `auto10`, `auto20`, `auto60`, `sticky`, `hard`, `mobile`, `residential`, `datacenter`, `isp`, `none`.

| Part | Values | Meaning |
| --- | --- | --- |
| account | 32 hex digits | The account id without dashes. It must be the account of the credential. |
| pool | `any`, `best`, `peer` | The peer network. `mbl` (carrier modems) is recorded as demand and answered `on_request`. |
| country | two letters, or `any` | The measured exit country. |
| `sid-<id>` | 1 to 64 of `a-z`, `0-9`, `_` | A session key. The same key reaches the same device while that device stays in the pool. |
| `rot-<mode>` | `auto5`, `auto10`, `auto20`, `auto60`, `sticky` | How many minutes a session stays on one device. It needs `sid`, and `auto10` applies when it is left out. `hard` means `sticky`. |
| `iptype-<class>` | `mobile`, `residential` | The IP class. `datacenter` and `isp` are recorded as demand and answered `on_request`. |
| `carrier-<slug>` | a slug from the stock | One carrier. |
| `asn-<number>` | 1 to 4294967295 | One network by its AS number. |
| `state-<code>`, `city-<slug>` | from the stock | A region or a city. Both need a country. |
| `failover-none` | | One attempt, with no second device. |
| `pin-device-<name>` | the rest of the username | Your own named device. It takes country `any` and no other key. |

A username takes at most one of `iptype`, `carrier` and `asn`. With `city` the only network key is `iptype`.

Examples, for the account `0123456789abcdef0123456789abcdef`:

- `0123456789abcdef0123456789abcdef-peer-de` picks any device in Germany for each request.
- `0123456789abcdef0123456789abcdef-peer-us-state-ca-sid-job_1-rot-sticky` keeps session `job_1` on one device in California.
- `0123456789abcdef0123456789abcdef-any-any-pin-device-my-phone` uses your own device named `my-phone`.

Read the carriers, states and cities that exist with `GET /app/api/proxy/stock?country=<code>`. A value with no device online is on request: the demand is recorded and the username works once supply arrives.

This page: https://coronium.ai/guides/prices.md.

# Prices and billing

The balance is in US dollars. A buyer pays for the bytes sent and received through the proxy, at the list price of the country the traffic left from. One gigabyte is 1,000,000,000 bytes.

Read the current list with `GET /app/api/prices`. It needs no account. Countries are grouped in tiers, and each tier has one price per gigabyte in `usdMicrosPerGb`, where one micro-USD is a millionth of a dollar. A country that is in no tier is charged at `defaultTier`. The owner sets the prices, and a price change applies to traffic carried after it. Traffic already carried keeps the price it was charged at.

## Exact amounts

Every amount is an integer. An amount on the wire is `{"usdMicros": "...", "n": "..."}`. `n` is the exact figure, in units of which `nPerUsdMicro` (10,000,000,000,000) make one micro-USD. `usdMicros` is `n` divided by that number, toward zero, for display. Add amounts with `n` and a big-integer type. A request of `b` bytes at a price of `p` micro-USD per gigabyte costs `b × p × 10,000` units.

A top-up is credited as its amount in micro-USD times `nPerUsdMicro`. Free credit from the operator is spent before paid credit. A balance below zero is owed: traffic that was already in flight when the balance ran out is charged in full.

- `GET /app/api/billing` returns the balance, its state and what this month was charged.
- `GET /app/api/billing/statement?month=YYYY-MM` lists each day and country with its tier, price, requests, bytes and charge.
- `GET /app/api/billing/payments` lists credits and open quotes.
- `POST /app/api/billing/quotes` then `POST /app/api/billing/topups` add funds. A quote lasts 30 minutes, and `providers` in the billing answer says which providers are configured, the only ones that take a quote, and the least and the most each takes.

A device owner's share and hold period are in the [guide for device owners](/guides/device-owners.md).

This page: https://coronium.ai/guides/agent-payments.md.

# Paying for a top-up as an agent

An agent adds funds to an account at one address, with no sign-in, no cookie and no credential. It pays with x402 (USDC) or with MPP and the Stripe method that `link-cli` uses.

Live payments are switched on by the operator. Until then this address answers `503` with the code `payments_unavailable`, nothing is offered and nothing is charged.

## The request

```
POST https://coronium.ai/v1/topup
Content-Type: application/json

{"accountId": "<32 hex digits>", "usdMicros": "5000000"}
```

- `accountId` is the 32 lowercase hex digits that start the account's proxy username. It is not a secret.
- `usdMicros` is the amount in micro-USD, as a string of digits: a whole number of cents from `1000000` (1 USD) to `1000000000` (1,000 USD). `5000000` is 5 USD.
- The request takes no query, no other field and no session. Repeat it unchanged when you pay.

## The 402

Without a payment the answer is `402 Payment Required`. It offers every method the operator switched on, together:

- `PAYMENT-REQUIRED` holds base64 JSON of an x402 version 2 offer. `accepts` has one entry per network (Base `eip155:8453`, Solana `solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp`): scheme `exact`, the USDC `asset`, `amount` in atomic units (one unit is one micro-USD), `payTo`, `maxTimeoutSeconds` 300, and `extra.paymentFlow` `upfront`, so the payment settles before the balance is credited.
- `WWW-Authenticate: Payment` holds an MPP challenge with `method="stripe"` and `intent="charge"`. Its `request` names the amount in cents and the Stripe profile in `methodDetails.networkId`. It is bound to this account and this amount, and lasts five minutes.
- The body is the refusal `payment_required`, with `cause`, `fix`, `methods` and `guide`.

The 402 is the same for every well-formed id and stores nothing. A payment for an id that has no account is refused with `unknown_account` before any money moves.

## Pay with x402

1. Send the request without a payment and read `PAYMENT-REQUIRED`.
2. Let your x402 version 2 client sign one entry of `accepts` exactly as offered. On Base the authorization must be valid now and for no longer than `maxTimeoutSeconds` (`validBefore` at most 300 seconds ahead). On Solana the transaction is version 0, with the offered `feePayer` first and one token instruction, a `TransferChecked` of the USDC amount. Send no `extensions`, and `resource` only as the 402 offered it.
3. Send the same request again with the `PAYMENT-SIGNATURE` header the client made.

The service settles the payment once at its facilitator and credits it once, when its chain shows the transfer: on Base 10 blocks deep, on Solana `finalized`. Until then the answer is `202 payment_pending`. An entry that was changed in any field is refused with `offer_not_issued`, before anything settles.

## Pay with link-cli

```
link-cli mpp pay https://coronium.ai/v1/topup \
  --method POST \
  --header "Content-Type: application/json" \
  --data '{"accountId":"<32 hex digits>","usdMicros":"5000000"}' \
  --context "<at least 100 characters: what this top-up buys and why, which the person reads when approving>"
```

link-cli sends the request, reads the challenge, creates a spend request of credential type `shared_payment_token` for the challenge's amount and network id, waits for the person to approve it in the Link app, and repeats the request with `Authorization: Payment`. With `--spend-request-id` for an approved spend request it skips the creation and `--context` is not needed. `link-cli mpp decode --challenge '<the WWW-Authenticate value>'` prints the network id. Link takes at most 500 USD per spend request.

## The receipt

A credited payment answers `200`:

```json
{"quoteId": "...", "provider": "x402", "state": "credited", "usdMicros": "5000000",
 "reference": "eip155:8453/0x...", "balance": {"usdMicros": "5000000", "n": "..."}}
```

With x402, `PAYMENT-RESPONSE` holds base64 JSON `{"success": true, "transaction", "network", "payer"}`. With MPP, `Payment-Receipt` holds base64url JSON `{"status": "success", "method": "stripe", "reference": "pi_...", "timestamp"}`.

Sending the same payment again credits nothing and answers `200` and `credited` again, without the balance: a payment on a chain is public, so only the request that first claimed it is told the balance.

A payment is not bound to an account until it is claimed: whoever sends it first is credited. Keep a signed payment private until you send it, as you would cash.

## When the outcome is not known yet

If the settlement is not confirmed in time the answer is `202` with the code `payment_pending`. Do not pay again. Send the same request with the same payment a minute later to read where it stands, even after its challenge or its authorization has expired. A pending payment is credited once when it settles; the service never asks for a second payment while one is pending.

## Refusals

| Code | Status | What to do |
| --- | --- | --- |
| `payments_unavailable` | 503 | No method is switched on. Ask the operator for a credit, or top up by card while signed in |
| `payment_required` | 402 | Pay one of the offers and repeat the request |
| `invalid` | 400 | Correct the body or the payment header the `cause` names |
| `not_whole_cents` | 400 | Send `usdMicros` as a multiple of `10000` |
| `amount_out_of_range` | 400 | Send an amount between `minUsdMicros` and `maxUsdMicros` |
| `offer_not_issued` | 400 | Sign an entry of `accepts` unchanged, from a 402 for the same body |
| `challenge_invalid` | 402 | Pay the fresh challenge of this answer with the body it was issued for |
| `challenge_expired` | 402 | Pay the fresh challenge of this answer within five minutes |
| `payment_pending` | 202 | Wait, then repeat the same request with the same payment |
| `payment_failed` | 402 | The facilitator or Stripe refused that payment and it is never credited. Pay again with a new one |
| `too_many_payments` | 429 | The account had 10 payments in the last hour that did not pay. Wait, or top up by card while signed in |
| `payment_claimed` | 409 | That payment was presented for another account or amount |
| `topups_closed` | 409 | Nothing settles while `GET /app/api/buy` answers `charging` false. Nothing was charged. Check `charging` before paying |
| `unknown_account` | 404 | Use the id that starts the account's proxy username |
| `provider_not_configured` | 503 | Pay with a method this 402 offers |
| `method_not_allowed` | 405 | Send POST |

This page: https://coronium.ai/agent-rails. Updated 2026-11-26.

---
title: Browser and phone sessions for agents that keep accounts
description: A planned Coronium session for an AI agent that signs up, fills forms and keeps its own accounts: what it will be, what it records, and how to ask for it.
product: rails
template: hub
updated: 2026-11-26
---

# Sessions for agents that keep their own accounts

<!-- facts:begin product.rails -->
**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. A signed-in account asks for it with `POST /app/api/demand/device` and the kind `rails`: the request is recorded, and nothing is ordered or charged.
<!-- facts:end product.rails -->

The plan is a browser or phone session that stays with one agent from one run to the next, with its traffic leaving from a carrier or residential exit, so the agent can sign up on a website or in an app, fill in its forms and come back to the same account later. Which exits are online now, `GET /app/api/prices` answers, and a count under the bound in the [stated limits](/guides/limits.md) reads `few`. No price, unit or date is decided.

## What a session will be

The session is planned on the device sessions of [Devices for AI agents](/devices-for-ai-agents): the agent drives a browser or a phone through the tools `snapshot` and `act`, and a person can watch it. What this product adds is time: a session that an agent keeps for accounts it holds over weeks, rather than one for a single task.

Some parts are not decided, and this page does not guess at them:

- what state a session keeps between runs, and for how long;
- whether a session is a browser, a phone or either;
- how an exit is chosen, and whether it stays the same between runs.

## What it will record

The device control gateway that runs in development keeps one audit record per tool call: the time, the session, the tool, the action, the element reference and the result code. It never records typed text, an address, page text or coordinates, so a password your agent types into a form is not in that record. The plan is that every tool call of a session is recorded this way.

## What it will refuse

These rules hold for the device control software in development today. They describe that software, not a decided rule set for this product:

- The host agent writes no system property, passes no property override and sets no user agent, so a session reports what its browser or device is.
- A development session's network allows its own loopback first. After that it drops traffic to the host's own addresses and to private, link-local, carrier-grade NAT, documentation, multicast and reserved ranges, and allows outbound only DNS to its resolver and TCP to ports 80 and 443.
- An action the host agent cannot read is refused with a `code`, a `cause` and a `fix`, and nothing is skipped.

Coronium does not plan to make a session pass for a device it is not. Any other rule is not decided.

## Your agent and the services it uses

A session gives your agent a browser or a phone and an exit, and the terms of each website and app it uses still apply to it and to you. Follow them: read each service's terms before your agent signs up, and keep to its rules on automated use and on how many accounts one person may hold.

Coronium makes no promise about how another service's sign-up checks, reviews or limits treat a session. Each service decides whether to accept one, and it may refuse a session or close an account the session opened.

## How do I ask for it?

Sign in and send the kind `rails`. A person uses the [Devices screen](/devices), which lists this product beside the device kinds. An agent sends the same request from its signed-in session, with `coronium.cookies` the cookie file that `POST /app/api/login` wrote in the [quickstart for agents](/guides/agents.md):

```sh
curl -s -b coronium.cookies -X POST https://coronium.ai/app/api/demand/device -H 'Content-Type: application/json' -d '{"kind": "rails", "note": "Keeps supplier portal accounts for a purchasing agent"}'
```

The answer is `{"recorded": true}`. With no signed-in session it is `401` with the code `sign_in_required`, and while coronium.ai is in private preview its API answers `403` with the code `private_preview`. One request is kept per account and kind, and asking again moves its time and replaces the note. Put no secret, password or email address in the note: the service refuses a note that holds one, with `invalid_note`.

## Questions

<!-- kit:faq -->
### How does a website treat a session?

Each service decides that under its own terms. A session reports what its browser or device is, and Coronium makes no promise about how a service treats it.

### Can my agent keep the accounts it opens?

That is the plan. What a session keeps between runs, and for how long, is not decided.

### Is it the same as a proxy?

No. A proxy carries your agent's own requests through an exit, as the [peer network page](/peer-proxy-network) explains. A session gives the agent a browser or a phone to drive, with its traffic leaving through an exit.
<!-- /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 -->

This page: https://coronium.ai/devices-for-ai-agents. Updated 2026-11-26.

---
title: Devices for AI agents: phones, emulators, Macs, browsers
description: The Android emulators and phones, iPhones and their simulators, Macs and cloud browsers an AI agent will drive on Coronium, and how to ask for one.
label: Devices for AI agents
template: hub
updated: 2026-11-26
---

# Phones, emulators, Macs and browsers for AI agents

<!-- facts:begin product.emulator+android+iphone+iphone-simulator+mac+cloud-browser -->
**Android emulator control**, **Android phone control**, **iPhone control**, **iPhone simulator control**, **Mac control** and **Cloud browser control**: Not available yet. A signed-in account asks for one with `POST /app/api/demand/device` and its kind, `emulator`, `android`, `iphone`, `iphone-simulator`, `mac` or `cloud-browser`: the request is recorded, and nothing is ordered or charged.
<!-- facts:end product.emulator+android+iphone+iphone-simulator+mac+cloud-browser -->

A device session is planned as one device leased to one account, which an AI agent drives through an endpoint of its own. The software that drives these sessions runs in development only, and the list below gives each kind's detail from Coronium's product list.

<!-- 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 first row's exits come from enrolled devices, and which countries have devices online now, `GET /app/api/prices` answers. The rows on this page are the device kinds; the [page for agents that keep accounts](/agent-rails) covers the last row.

## What a session will be

This is the plan, and nothing in it can be bought:

- The agent starts a session on one device kind and receives a token for that session alone.
- It drives the screen through one MCP endpoint per session, with the tools `snapshot` and `act` and no other. `snapshot` returns the screen as text, with a reference for each element. `act` performs one action on the screen: a tap, typed text, a key, a swipe, opening an address, or a wait.
- A person can watch the session in a live view.
- The session's traffic leaves through Coronium's network, from an exit that agrees with the device the session runs on.

Prices, units and session lengths are not decided, so this page states none.

## What runs today, in development

Two programs exist in development, and nothing here can be ordered. The control gateway serves one endpoint per device session with exactly the tools `snapshot` and `act`, checks the session's token, and forwards each call to a host agent. The host agent runs on a device host, where it starts, drives and destroys the device instances of that host.

The gateway keeps one audit record per tool call: the time, the session, the tool, the action, the element reference and the result code. It never records typed text, an address, page text or coordinates. Every refusal carries a `code`, a `cause` and a `fix`.

The development runs used a virtual Android device in a container on the build server, and an iOS-shaped fixture that replays a script written by hand, never captured from Apple software. No phone, Mac or desktop browser has been driven through them.

## An emulator says it is an emulator

The host agent never writes a system property, never passes a property override and never sets a user agent. An Android emulator session reports its kind as `android_emulator`, and its model is the image's own. A site or an app that looks can recognise it as an emulator, and Coronium does not change that.

The Android phone row is a physical phone on a carrier SIM. A session on it reports that phone's own properties.

## The device kinds

Each kind is asked for with its id as `kind`. Its state, what it is and who it is for are in the list at the top of this page.

| Kind | `kind` | Where it stands in development |
|---|---|---|
| Android emulator | `emulator` | The development runs drove this kind, in a container on the build server. |
| Android phone | `android` | The host agent has code for a phone attached by USB cable and refuses a phone it reaches over the network. No phone has been attached. A phone has to be wiped before a second account gets it, and that step is not built. |
| iPhone | `iphone` | Apple's licence terms govern leasing Apple devices and software, so this row waits on those terms. The iOS-shaped fixture is a test script, not an iPhone. |
| iPhone simulator | `iphone-simulator` | This row waits on Apple's licence terms too. No simulator has been driven in development. |
| Mac | `mac` | This row waits on Apple's licence terms too. |
| Cloud browser | `cloud-browser` | No desktop browser has been driven in development. |

## How do I ask for a device?

Sign in and send the kind. A person uses the [Devices screen](/devices), which sends the same request. An agent sends it from its signed-in session, with `coronium.cookies` the cookie file that `POST /app/api/login` wrote in the [quickstart for agents](/guides/agents.md):

<!-- kit:code -->
```sh
curl -s -b coronium.cookies -X POST https://coronium.ai/app/api/demand/device -H 'Content-Type: application/json' -d '{"kind": "emulator", "note": "Android app tests for a checkout flow"}'
```
```prompt
Read https://coronium.ai/devices-for-ai-agents.md and https://coronium.ai/llms.txt. Ask me which device kind I need and why, then send POST https://coronium.ai/app/api/demand/device with that kind and a one-line note from my signed-in session. Put no secret, password or email address in the note.
```
<!-- /kit:code -->

What the service answers:

| Case | Answer |
|---|---|
| Recorded | `{"recorded": true}` |
| No signed-in session | `401` with the code `sign_in_required` |
| coronium.ai in private preview | `403` with the code `private_preview` |
| A kind no product has | `400` with the code `unknown_product`, and the kinds it takes in `fix` |
| A product that can be used now | `409` with the code `product_available` |
| A note that is too long, has a line break or holds a credential | `400` with the code `invalid_note` |

One request is kept per account and kind. Asking again moves its time and replaces the note when it carries one. The note's size limit is in the [stated limits](/guides/limits.md). Whether new accounts are taken now, `GET /app/api/buy` answers in `registration`; an account an agent makes is the same account a person uses, as [Connect your agent](/agents) shows.

## What a session will not do

A session reports what the device is: the host agent changes no property and no user agent. Coronium makes no promise about how a website or an app treats it. The terms of each service your agent uses apply to the agent and to you, and you follow them.

Device owners who share a connection are a separate side of Coronium: [Sell bandwidth](/sell-bandwidth) covers it. The [peer network page](/peer-proxy-network) explains how a request is carried and counted.

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

This page: https://coronium.ai/mobile-proxies. Updated 2026-11-26.

---
title: Mobile proxies: carrier exits on the peer network
description: How mobile exits work on Coronium: a device on a carrier network, classed by that network, asked for with iptype-mobile and charged per GB by country.
label: Mobile proxies
template: hub
updated: 2026-11-26
---

# Mobile proxies

On Coronium, a mobile exit is an enrolled device whose connection leaves through a carrier's mobile network. The service measures which network that is and takes the class from the network's ASN, so nobody types the label. A mobile exit exists only once the operator has classed a carrier's network as mobile, and whether any device of that class is online in a country, the stock read below answers to a signed-in account. A username asks for the class with `iptype-mobile` or for one carrier with `carrier-<slug>`, and the traffic is charged per GB at the price of the exit country's tier.

<!-- kit:live -->
Which countries have devices online, and at what price, `GET /app/api/prices` answers with no account. Which IP classes and carriers have devices online in one country, `GET /app/api/proxy/stock?country=<code>` answers in `ipTypes` and `carriers`, for a signed-in account. A class with no device online is on request: a username for it is answered `on_request`, and the demand is recorded. While coronium.ai is in private preview, the stock read answers `403` with the code `private_preview` instead.
<!-- /kit:live -->

## How does a device become a mobile exit?

1. Its owner signs the partner agreement and enrols it, as the [guide for device owners](/guides/device-owners.md) describes, and the agent on it connects out to a relay.
2. The service measures where the device exits: country, region, city, network and carrier.
3. The class and the carrier follow from the network the device exits from, its [ASN](/peer-proxy-network/glossary#asn). The operator classes a network once, as `mobile`, `residential` or `datacenter`, and every measured device on it takes that class.
4. A device on a network the operator has not classed yet stays connected and carries nothing, with `unclassified_asn`, until the network is classed. A device on a network Coronium does not sell, such as a data centre, is [withheld](/peer-proxy-network/glossary#withheld) with `class_not_sold`.

So a mobile exit exists only where a network classed as mobile has devices online. Neither the device owner nor the buyer can set the class.

### Which devices does a mobile username reach?

Established devices. A new device that carries [fallback supply](/peer-proxy-network/glossary#fallback-supply) serves only usernames with a pool and a country and nothing else, so a username with `iptype` or `carrier` never reaches one. The operator promotes a device to established after a clean history.

## How do I ask for a mobile exit?

Put the class or the carrier in the proxy username. These follow the grammar of [Proxy usernames](/guides/usernames.md), for its example account:

```text
0123456789abcdef0123456789abcdef-peer-de-iptype-mobile
0123456789abcdef0123456789abcdef-peer-de-iptype-mobile-sid-job_1-rot-sticky
0123456789abcdef0123456789abcdef-peer-de-carrier-<slug>
```

The first sends each request through a mobile device in Germany. The second keeps one [sticky session](/proxies-for-ai-agents/sticky-and-rotating-sessions) on one mobile device. The third names one carrier by the slug the stock lists; the stock lists a carrier only once enough of its devices are online, by the bound the [stated limits](/guides/limits.md) give. A username takes at most one of `iptype`, `carrier` and `asn`, and with `city` the only network key is `iptype`.

`POST /app/api/proxy/spawn` prints the same usernames for a signed-in account when the body carries `"ipType": "mobile"`. Its answer has `stock.status`: `available`, or `on_request` with the demand recorded.

**What is `mbl`, then?** It is a pool name for carrier modems, a different supply from enrolled devices. A username with `mbl` is recorded as demand and answered `on_request`. A dedicated modem that one account holds alone is the product on [Private modems](/private-modems).

## What does a mobile exit cost?

The same as any exit from that country. The price list has one price per GB for each tier of countries, and the class does not change it: the ledger charges the bytes the edge counted at the tier of the country the traffic left from. [Pay per GB](/pay-per-gb) has the live list and the arithmetic.

## What does the class tell a site?

Only what the network is. The site sees the address of the device's carrier network, because the device opens the connection itself. The exit is measured on IPv4 only, and a modified agent can recognise the measurement, as the stated limits say. A proxy changes the address and nothing else in a request; [Proxies for AI agents](/proxies-for-ai-agents) says what stays with the agent.

## What if no mobile exit is online?

The request is still useful. The edge answers `on_request` and records the demand, and `POST /app/api/proxy/spawn` records it too, by pool, country and class. Keep the username: the same one works once a mobile device in that country comes online. Device owners on mobile networks add supply by enrolling, as the guide for device owners says.

<!-- kit:code -->
```sh
curl -s https://coronium.ai/app/api/prices
curl -sS -b coronium.cookies "https://coronium.ai/app/api/proxy/stock?country=de"
```
```python
import requests

session = requests.Session()  # sign in first, as the quickstart for agents shows; without it the answer is a refusal
stock = session.get("https://coronium.ai/app/api/proxy/stock", params={"country": "de"}, timeout=30).json()
for entry in stock.get("ipTypes", []):
    print(entry["ipType"], entry["online"])
print(stock.get("code", "read"))
```
```prompt
Read https://coronium.ai/mobile-proxies.md and https://coronium.ai/guides/agents.md. Sign in as the quickstart says, then call GET https://coronium.ai/app/api/proxy/stock?country=de and tell me whether the mobile class has devices online there. Use HTTP calls only.
```
<!-- /kit:code -->

Without a session cookie the stock call is refused with `401` and `sign_in_required`. How one request travels from the edge to the device is on [How the peer proxy network carries a request](/peer-proxy-network).

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

This page: https://coronium.ai/pay-per-gb. Updated 2026-11-26.

---
title: Pay per GB proxies: how the price works and what a GB is
description: Coronium charges for the bytes sent and received, at the price per GB of the exit country's tier. Read the live list, the unit and how a cost is worked out.
label: Pay per GB
template: hub
updated: 2026-11-26
---

# Pay per GB

Coronium charges an account for the bytes its traffic sends and receives, at the price per GB of the tier its exit country is in. One US dollar balance pays for every product, every amount is a whole number, and the price list is public.

<!-- kit:live -->
The tiers, the price of each in `usdMicrosPerGb` and the countries in each, `GET /app/api/prices` answers with no account. The same answer gives `unitBytes`, the bytes in one GB, and each country's `online`: `0`, `few` or a count. Whether traffic is charged now, `GET /app/api/buy` answers in `charging`.
<!-- /kit:live -->

## At a glance

| Question | Answer |
| --- | --- |
| What one GB is | `unitBytes` in the price list, a decimal gigabyte, as [Prices and billing](/guides/prices.md) gives it |
| What is counted | The bytes of each stream in both directions, counted once at the edge |
| Which price applies | The tier of the country the traffic left from; a country in no tier is charged at the tier `defaultTier` names |
| Who sets the prices | The owner. A change applies to traffic carried after it, and traffic already carried keeps its price |
| What pays | One balance in US dollars, kept in micro-USD |
| What a class costs | The same as any exit from that country: the tier decides, the IP class does not |

## Where are today's prices?

In the live read under the first paragraph, and as JSON at `GET /app/api/prices`. Every country on the list shows its state: devices online, few, or on request. A username for a country with no device online is still accepted, and the demand is recorded, so the same username works once supply arrives.

The [tier](/peer-proxy-network/glossary#tier-and-default-tier) prices are list prices. Until charging starts, the public edge refuses buyer traffic with `traffic_stopped`, and `charging` in `GET /app/api/buy` says when it has started.

## What are you charged for?

The bytes the edge counts for your account, and nothing else: there is no fee per request, per session or per country. How the edge counts them, and how a byte count becomes an amount, is on [How traffic is counted](/pay-per-gb/how-traffic-is-counted).

**Which credit is spent first?** Free credit from the operator is spent before paid credit. A balance below zero is owed.

**What happens when a balance runs out mid-job?** Traffic that was already in flight when the balance ran out is charged in full until the stop takes effect. An account with no funds carries no traffic once charging is on, and `state` in `GET /app/api/billing` says which [balance state](/peer-proxy-network/glossary#balance-states) it is in.

## How is a cost worked out?

<!-- kit:cost -->
A total of `b` bytes at a tier price of `p` micro-USD per GB costs `b × p × 10,000` units of `n`, and `nPerUsdMicro` units of `n` make one micro-USD. Type a byte count and choose a tier of the live list: the calculator works the sum one step a row, in whole numbers.
<!-- /kit:cost -->

Where the bytes per request come from, and how to measure them, is on [How many GB do I need](/pay-per-gb/how-many-gb-do-i-need).

<!-- kit:code -->
```sh
curl -s https://coronium.ai/app/api/prices
curl -s https://coronium.ai/app/api/buy
```
```python
import requests

answer = requests.get("https://coronium.ai/app/api/prices", timeout=30)
prices = answer.json()
if answer.status_code != 200:
    raise SystemExit(prices["code"] + ": " + prices["fix"])
for tier in prices["tiers"]:
    print(tier["name"], tier["usdMicrosPerGb"], "micro-USD per GB")
print("bytes in one GB:", prices["unitBytes"], "default tier:", prices["defaultTier"])
```
```prompt
Read https://coronium.ai/pay-per-gb.md. Then call GET https://coronium.ai/app/api/prices and GET https://coronium.ai/app/api/buy, and tell me the price per GB for the country I name and whether traffic is charged now. Use HTTP calls only.
```
<!-- /kit:code -->

## How are funds added?

A signed-in account asks for a quote with `POST /app/api/billing/quotes`. A quote names an amount and owes nothing; `POST /app/api/billing/topups` confirms it and opens the checkout. The [stated limits](/guides/limits.md) give how long a quote lasts and how many can be open at once. Whether card and crypto payments are taken, `GET /app/api/buy` answers in `card` and `crypto`, each with the least and the most one payment takes.

An agent can also pay from its own wallet at `POST /v1/topup`, as [Agent payments](/guides/agent-payments.md) says; `agent.configured` in `GET /app/api/buy` answers whether it takes payments. The screen for people is [Buy proxies](/buy).

## Where does the traffic go?

Through the devices of the peer network: [How the peer proxy network carries a request](/peer-proxy-network) follows one request from the edge to the site. To send traffic from an agent, start at [Proxies for AI agents](/proxies-for-ai-agents). Device owners earn a share of settled buyer payments, under the terms that [selling bandwidth](/sell-bandwidth) points to.

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

This page: https://coronium.ai/pay-per-gb/how-many-gb-do-i-need. Updated 2026-11-26.

---
title: How many GB of proxy traffic do I need? A calculator
description: Estimate proxy traffic from your own figures: pages, repeated fetches and bytes per page. The arithmetic first, then the cost at each live tier.
label: How many GB do I need
template: article
updated: 2026-11-26
---

# How many GB do you need

Add the pages a job fetches to the fetches it repeats, and multiply by the bytes each one sends and receives: the product is the traffic in bytes, and dividing it by `unitBytes` from the price list gives GB. Coronium publishes no typical page size, so both figures come from your own job. This page is part of [Pay per GB](/pay-per-gb).

## The estimate

<!-- kit:calculator -->
Traffic in bytes is (pages + repeated fetches) × bytes per page, and GB is that total divided by `unitBytes`. The calculator takes the three figures as whole numbers and shows the bytes, the GB and the cost at each tier of `GET /app/api/prices`, read when the calculator comes into view. That read needs no account.
<!-- /kit:calculator -->

Count each retry as one more fetch. A browser that loads a page also requests its images, scripts, styles and fonts, and each of those carries bytes of its own, so for a browser-driven job measure the whole page load as one figure. A job that fetches only the HTML of each page counts that alone.

## How do I measure bytes per page?

Fetch one page the way the job will, and add what went each way. curl reports the parts it sent and received:

```sh
curl -s -o /dev/null -w '%{size_request} %{size_upload} %{size_header} %{size_download}\n' https://example.com/
```

The figures are the request head, the request body, the answer headers and the answer body, in bytes; add them for one request. Measure several pages of the kind the job fetches and use the larger figures.

<!-- kit:callout note -->
Through an HTTPS tunnel the edge also counts the TLS handshake and the record framing, which curl does not report here. The sum curl gives is therefore lower than what the edge counts for the same page. [How traffic is counted](/pay-per-gb/how-traffic-is-counted) says what a stream holds.
<!-- /kit:callout -->

## How does it turn into a cost?

The ledger prices a byte count at the tier of the country the traffic left from: `b` bytes at `p` micro-USD per GB cost `b × p × 10,000` units of `n`, and `nPerUsdMicro` units make one micro-USD. The same sum in integers, for your own script:

<!-- kit:code -->
```python
def cost_usd_micros(pages: int, repeats: int, bytes_per_page: int, usd_micros_per_gb: int, prices: dict) -> int:
    """Whole micro-USD, toward zero, as the statement shows them."""
    total = (pages + repeats) * bytes_per_page
    n = total * usd_micros_per_gb * int(prices["nPerUsdMicro"]) // int(prices["unitBytes"])
    return n // int(prices["nPerUsdMicro"])
```
```typescript
type Prices = { unitBytes: string; nPerUsdMicro: string }

function costUsdMicros(pages: bigint, repeats: bigint, bytesPerPage: bigint, usdMicrosPerGb: bigint, prices: Prices): bigint {
  const total = (pages + repeats) * bytesPerPage
  const n = (total * usdMicrosPerGb * BigInt(prices.nPerUsdMicro)) / BigInt(prices.unitBytes)
  return n / BigInt(prices.nPerUsdMicro)
}
```
```prompt
Read https://coronium.ai/pay-per-gb/how-many-gb-do-i-need.md. I will give you my page count, my repeated fetches and my bytes per page. Call GET https://coronium.ai/app/api/prices and tell me the traffic in GB and its cost at the tier of the country I name, with integers only. Use HTTP calls only.
```
<!-- /kit:code -->

Read `usdMicrosPerGb` for the tier from `GET /app/api/prices`; a country that is in no tier is charged at the tier `defaultTier` names.

## Why is the statement the authority?

The estimate predicts; the edge's count decides. After a first run, `GET /app/api/billing/statement?month=YYYY-MM` gives the requests, the bytes and the charge for each day and country. Divide the bytes by the pages the job fetched to get its own bytes per page, and use that figure for the next estimate.

An attempt that reaches no device costs nothing, so failed attempts before a stream opens do not add to the count. A request that reaches the site is counted whatever the site answers, an error page included.

The [stated limits](/guides/limits.md) list what the service does only within a bound, and [Buy proxies](/buy) adds funds to the balance.

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

This page: https://coronium.ai/pay-per-gb/how-traffic-is-counted. Updated 2026-11-26.

---
title: How proxy traffic is counted and charged, to the byte
description: One meter at Coronium's edge counts whole bytes. The formula from bytes to dollars, how to work out an amount, and how a lost or repeated count is refused.
label: How traffic is counted
template: article
updated: 2026-11-26
---

# How traffic is counted and charged

The edge, the server a buyer connects to, counts the bytes of every stream in each direction as whole numbers, and the ledger charges that count at the price per GB of the exit country's tier. No device, relay or other part of the network reports usage, and nothing they count changes what a buyer pays. This page belongs to [Pay per GB](/pay-per-gb), which has the live price list.

## Where are the bytes counted?

The [edge](/peer-proxy-network/glossary#edge) counts the payload of the stream between itself and the device: what the buyer sends toward the site, and what the site sends back. It keeps one counter for each account and device, and those counters are the only usage the ledger records. The [peer network page](/peer-proxy-network) draws the whole path of a request.

<!-- kit:path -->
1. The buyer or the agent connects to the edge with a proxy username and the account's credential, and nothing is counted yet.
2. The edge chooses a device, opens a stream to it, and from then on adds the bytes of that stream to the account's counter, in each direction.
3. The relay carries the stream to the device and counts nothing that is billed.
4. The device opens the connection to the site and counts nothing that is billed.
5. The site's answer comes back through the device and the relay, and the edge adds its bytes to the same counter.
<!-- /kit:path -->

### What does a stream hold?

- An HTTPS request goes through a tunnel opened with `CONNECT host:443`. The stream carries every byte inside the tunnel, the TLS handshake and its records included. The `CONNECT` line and the edge's answer to it stay between the buyer and the edge, and are not counted.
- A plain `http://` request is rewritten by the edge to the form a server expects, without the headers meant for the proxy. The stream carries that request head, the request body and the whole answer.

### Is an attempt that reaches no device charged?

No. When the device the edge chose turns out to be gone, full or closing before the stream opens, the edge tries another, and the attempt costs the buyer nothing. With `failover-none` in the username the edge makes one attempt only.

## The formula

**From bytes to units of `n`.** A line of `b` bytes at a tier price of `p` micro-USD per GB costs `b × p × 10,000` units of `n`. The ledger computes exactly that: bytes sent plus bytes received, times the price, times `10,000`, in whole numbers. `b × p × nPerUsdMicro ÷ unitBytes` is the same figure written with the fields of the price list.

**From `n` to micro-USD.** `nPerUsdMicro` in `GET /app/api/prices` says how many units of `n` make one micro-USD. `usdMicros` is `n` divided by it, toward zero, and is there for display. Every amount on the wire carries both, as `{"usdMicros": "...", "n": "..."}`.

**Adding amounts.** Add amounts with `n` and a big-integer type, never with floating point. A [micro-USD](/peer-proxy-network/glossary#micro-usd-and-n) is a millionth of a US dollar, and [Prices and billing](/guides/prices.md) states the rule in full.

## How do I work out an amount?

Read the list, put in the bytes from your statement or your own estimate, and compute with integers. The samples below price one byte count at every tier. The price list needs no account.

<!-- kit:code -->
```python
import requests

answer = requests.get("https://coronium.ai/app/api/prices", timeout=30)
prices = answer.json()
if answer.status_code != 200:
    raise SystemExit(prices["code"] + ": " + prices["fix"])
bytes_carried = 2500000000  # from your statement or your own estimate
per_micro = int(prices["nPerUsdMicro"])
for tier in prices["tiers"]:
    n = bytes_carried * int(tier["usdMicrosPerGb"]) * per_micro // int(prices["unitBytes"])
    print(tier["name"], n // per_micro, "micro-USD")
```
```typescript
const answer = await fetch("https://coronium.ai/app/api/prices")
const list = await answer.json()
if (!answer.ok) throw new Error(`${list.code}: ${list.fix}`)
const bytesCarried = BigInt("2500000000") // from your statement or your own estimate
const perMicro = BigInt(list.nPerUsdMicro)
for (const tier of list.tiers) {
  const n = (bytesCarried * BigInt(tier.usdMicrosPerGb) * perMicro) / BigInt(list.unitBytes)
  console.log(tier.name, (n / perMicro).toString(), "micro-USD")
}
```
```prompt
Read https://coronium.ai/pay-per-gb/how-traffic-is-counted.md. Then call GET https://coronium.ai/app/api/prices and tell me what the byte count I give you costs at each tier, computed with integers only. Use HTTP calls only.
```
<!-- /kit:code -->

## What happens to a lost or repeated count?

The edge turns its counters into numbered batches, one sequence for each meter, and writes each batch to disk before it first sends it. It keeps the batch, byte for byte, until the ledger acknowledges it, so a batch sent again is always the same batch, and a restart or a crash loses nothing that was cut.

The ledger takes each batch once:

- A batch sent again answers `already_applied` and changes nothing.
- A batch that arrives after a missing one is refused with `gap` until the missing one arrives.
- A different batch under a sequence number or batch id already used is refused with `conflict`, and the meter stops for the operator.

A batch delivered late across a device's change of country is priced at the new country, by the bound the [stated limits](/guides/limits.md) give. Until charging starts, the public edge refuses buyer traffic with `traffic_stopped`; whether it has started, `GET /app/api/buy` answers in `charging`.

<!-- kit:callout limit -->
Traffic in flight when a balance runs out, an account is suspended or a byte cap is reached is charged in full until the stop takes effect. The time that takes is not measured yet.
<!-- /kit:callout -->

## How do I read it back?

`GET /app/api/billing/statement?month=YYYY-MM` lists each day and country with its tier, price, requests, bytes and charge, for a signed-in account. `GET /app/api/billing` gives the balance, its state and what this month was charged. To estimate traffic before a job runs, see [How many GB do I need](/pay-per-gb/how-many-gb-do-i-need), and to see what the balance pays for, [Buy proxies](/buy).

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

This page: https://coronium.ai/peer-proxy-network. Updated 2026-11-26.

---
title: Peer proxy network: how a request is carried and counted
description: What happens to one request on Coronium's peer network: the edge that meters it, the relay, the enrolled device, and how the IP class is decided.
product: peer
template: hub
updated: 2026-11-26
---

# How the peer proxy network carries a request

<!-- facts:begin product.peer -->
**Peer network proxies**: Available. Exits from enrolled devices on networks Coronium classifies as residential or mobile, over HTTP, SOCKS5 and the fetch API. Available means built. Whether new accounts are taken now, `GET /app/api/buy` answers in `registration`.
<!-- facts:end product.peer -->

A buyer or an AI agent sends a request to Coronium's edge. The edge passes it over a relay to a device that its owner enrolled, the device fetches the page from the site, and the answer comes back the same way. The edge is the only place where bytes are counted, and the ledger records that count and no other.

<!-- kit:live -->
Which countries have devices online now, and at what price, `GET /app/api/prices` answers with no account: each country's `online` reads `0`, `few` or a count, and `few` is a count under the bound the [stated limits](/guides/limits.md) give. `GET /app/api/buy` answers whether new accounts are taken and whether traffic is charged.
<!-- /kit:live -->

## One request, five stations

<!-- kit:path -->
1. The buyer or the agent sends the request with a proxy username that says which device should carry it, and the account's credential as the password.
2. The edge checks the credential from a copy of the directory it holds in memory, chooses an eligible device for the username, and counts the bytes of the request and of the answer.
3. The relay holds the connection that the device opened outward, so the device needs no open port, and carries the stream to it.
4. The device opens the connection to the site from its own network, and the site sees the device's address.
5. The site answers, and the answer travels back through the device, the relay and the edge.
<!-- /kit:path -->

## One meter, at the edge

The [edge](/peer-proxy-network/glossary#edge) counts the payload bytes of each stream, in each direction, as whole numbers. No device, relay or other part of the network reports its own usage. The partner agreement tells device owners the same: their devices and the agent report no usage of their own.

The edge groups the counted bytes by buyer and device and sends them to the ledger in numbered batches. The ledger takes each batch once. A batch sent again is answered `already_applied` and changes nothing, and a batch that arrives after a missing one is refused with `gap` until the missing one arrives. [Prices and billing](/guides/prices.md) shows how the counted bytes become an exact amount, and [paying per GB](/pay-per-gb) explains what a buyer is charged for.

## Who supplies the devices

A device owner signs up, signs the partner agreement and enrols each device. The [guide for device owners](/guides/device-owners.md) covers each step, and [selling bandwidth](/sell-bandwidth) sets out what an owner agrees to.

### A signed agreement and a receipt for each device

The service stores each signature with the time it arrived and a keyed [receipt](/peer-proxy-network/glossary#receipt) that shows the record was not changed afterwards. Each device records the version and the digest of the text its owner signed, with a receipt of its own. [The signing contract](/kit/SIGNING.md) states what is stored and how a record is checked.

### New devices are fallback supply

A device waits as `new` until its first measurement. It is admitted once its network is classified as one Coronium sells, and until then it is withheld with `unclassified_asn`. Once admitted, it carries traffic as [fallback supply](/peer-proxy-network/glossary#fallback-supply), which buyers reach when no established device can serve them. The operator promotes a device to `established` after a clean history, and established devices carry traffic first.

### Networks Coronium does not sell are withheld

A device on a network Coronium does not sell, such as a data centre, is [withheld](/peer-proxy-network/glossary#withheld) with `class_not_sold`. A device on a network the operator has not classified yet stays connected and carries nothing, with `unclassified_asn`, until that network is classified.

## How the IP class is decided

The service measures where each device exits: its country, region, city, network and carrier. The [IP class](/peer-proxy-network/glossary#ip-class) and the carrier follow from the network, its [ASN](/peer-proxy-network/glossary#asn), and nobody types those labels. The measurement does not store the address it measured. The exit is measured on IPv4 only, and a modified agent can recognise the measurement, as the [stated limits](/guides/limits.md) say.

## What is sold and what is on request

The peer network sells exits of the mobile and residential classes from enrolled devices, once their networks are classified. Carrier modems (`mbl`), ISP addresses and datacenter addresses asked for in a username are recorded as demand and answered [on request](/peer-proxy-network/glossary#on-request). The live read under the first paragraph of this page shows which countries have devices online now. An AI agent that sends its traffic through the network starts from [proxies for AI agents](/proxies-for-ai-agents).

Read the price list from a terminal or an agent:

<!-- kit:code -->
```sh
curl -s https://coronium.ai/app/api/prices
```
```python
import requests

answer = requests.get("https://coronium.ai/app/api/prices", timeout=30)
prices = answer.json()
if answer.status_code != 200:
    raise SystemExit(prices["code"] + ": " + prices["fix"])
for tier in prices["tiers"]:
    print(tier["name"], tier["usdMicrosPerGb"], [(c["code"], c["online"]) for c in tier["countries"]])
```
```typescript
const answer = await fetch("https://coronium.ai/app/api/prices")
const prices = await answer.json()
if (!answer.ok) throw new Error(`${prices.code}: ${prices.fix}`)
for (const tier of prices.tiers) console.log(tier.name, tier.usdMicrosPerGb, tier.countries)
```
```prompt
Read https://coronium.ai/peer-proxy-network.md and https://coronium.ai/llms.txt. Then call GET https://coronium.ai/app/api/prices and tell me which countries have devices online. Use HTTP calls only.
```
<!-- /kit:code -->

Terms used on this page are defined in the [glossary](/peer-proxy-network/glossary).

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

This page: https://coronium.ai/peer-proxy-network/glossary. Updated 2026-11-26.

---
title: Peer proxy glossary: sessions, exits, tiers and holds
description: Short definitions of the terms Coronium uses, each with the parameter or field an agent sends or reads: sid, rot, few, on request, micro-USD, withheld.
label: Glossary
template: glossary
updated: 2026-11-26
---

# Glossary

Each term below is defined in its first sentence. The lines after it name the parameter an agent sends or the field it reads, and the page that covers it in full. Terms are grouped by where they appear: the network, sessions, prices and accounts, and the supply side.

## The network

<!-- kit:glossary -->
### Peer proxy network

A peer proxy network carries a buyer's web traffic through devices that their owners connected, so a request leaves from the device's own network. In Coronium, a request goes from the buyer to the edge, over a relay, to an enrolled device and then to the site, as the [peer network page](/peer-proxy-network) draws it.

### Exit

The exit is the network and place a request leaves from: the device's country, region, city, network and carrier, as the service measures them. Nobody types these labels. A username asks for an exit with its country and its optional keys, as [Proxy usernames](/guides/usernames.md) lists.

### IP class

The IP class says what kind of network an exit is on: `mobile`, `residential`, `isp` or `datacenter`. It follows from the network's ASN. A username asks for one with `iptype-mobile` or `iptype-residential`; `isp` and `datacenter` are recorded as demand and answered `on_request`.

### ASN

An ASN, an autonomous system number, names one network on the internet. Coronium decides a device's IP class and carrier from the ASN it exits from, and a device on a network the operator has not classified carries nothing until it is (`unclassified_asn`). A username can ask for one network with `asn-<number>`.

### Edge

The edge is the server a buyer connects to, over the HTTP proxy, SOCKS5 or `POST /v1/fetch`. It checks the credential, chooses an eligible device and counts the bytes of every stream in both directions. It is the only meter: no device, relay or other part reports its own usage.

### Relay

The relay holds the connections that devices open outward and carries buyer streams between the edge and a device. A device needs no open port, because it dials the relay itself.
<!-- /kit:glossary -->

## Sessions

<!-- kit:glossary -->
### Session key (`sid`)

A session key keeps a buyer's requests on one device. `sid-<id>` takes letters `a-z`, digits and `_`, and the same key reaches the same device while that device stays in the pool. When the device leaves, the session moves to another device, as the [stated limits](/guides/limits.md) say.

### Rotation (`rot`)

Rotation says how long a session stays on one device before it moves. `rot-auto5`, `rot-auto10`, `rot-auto20` and `rot-auto60` name the minutes, `rot-sticky` keeps the device while it stays in the pool, and `hard` means `sticky`. It needs `sid`, and `auto10` applies when it is left out.

### Failover

Failover is the edge trying another eligible device when the one it chose cannot carry a request, before the request's stream opens. `failover-none` in the username asks for one attempt only, with no second try.
<!-- /kit:glossary -->

## Prices and accounts

<!-- kit:glossary -->
### Few

Few is how the price list shows a small number of devices online in a country. A country's `online` in `GET /app/api/prices` reads `0`, `few` or a count, and the [stated limits](/guides/limits.md) give the bound under which it reads `few`. A city, carrier or network under that bound is not listed.

### On request

On request means the service records the demand and serves it once supply exists. A country with no device online is on request, and so is a class the network does not carry, such as carrier modems (`mbl`). The answer code is `on_request`, and the same username works once supply arrives, as [Proxy usernames](/guides/usernames.md) says.

### Tier and default tier

A tier is a group of countries with one price per GB. `GET /app/api/prices` lists each tier with its `usdMicrosPerGb`, and a country in no tier is charged at the tier `defaultTier` names. The owner sets the prices, as [Prices and billing](/guides/prices.md) explains.

### Micro-USD and `n`

A micro-USD is a millionth of a US dollar, the unit every amount is written in. `n` is the exact figure behind an amount: `nPerUsdMicro` units of `n` make one micro-USD, and `usdMicros` is `n` divided by that, toward zero, for display. Add amounts with `n` and a big-integer type.

### Quote

A quote names an amount to add to the balance and owes nothing. `POST /app/api/billing/quotes` makes one, a repeat with the same `requestId` answers the same quote, and `POST /app/api/billing/topups` confirms it and opens the checkout. The [stated limits](/guides/limits.md) give how long a quote lasts.

### Balance states

The balance state says whether an account's traffic is carried. `state` in `GET /app/api/billing` reads `active`, `unfunded`, `suspended`, `byte_cap` or `traffic_stopped`. The [quickstart for agents](/guides/agents.md) shows where each one comes from.
<!-- /kit:glossary -->

## The supply side

<!-- kit:glossary -->
### Fallback supply

Fallback supply is the traffic a new device carries: buyers reach it when no established device can serve them. A device becomes `admitted` after its first measurement once its network is classified as one Coronium sells, and carries fallback traffic until the operator promotes it. Until its network is classified it is withheld with `unclassified_asn`.

### Established device

An established device carries traffic first. The operator promotes a device to `established` after a clean history, as the [guide for device owners](/guides/device-owners.md) describes.

### Withheld

A withheld device stays connected and carries nothing until its reason clears. The reason names why: `exit_unverified`, `exit_changed`, `unclassified_asn`, `class_not_sold` for a network Coronium does not sell, `same_exit` for a second residential device behind one connection, and `supplier_blocked`.

### Hold

The hold is the time a device owner's earnings wait before they can be paid out. An amount is released the day after its hold has passed, counted from the day the ledger recorded the traffic, and `terms.holdDays` in `GET /app/api/earnings` gives the hold in force.

### Payout minimum

The payout minimum is the least available amount a device owner can ask to be paid. `payoutMinimumUsdMicros` in `GET /app/api/earnings` answers it, and the partner agreement states the limits it stays within.

### Receipt

A receipt is a keyed record that shows a stored signature or enrolment was not changed afterwards. The service keeps one for each signature of the partner agreement and one for each device enrolled under it. [The signing contract](/kit/SIGNING.md) says how a record is checked.

### Enrolment token

An enrolment token lets a device enrol itself, for many devices at once. `POST /app/api/enrol-tokens` mints one after signing, and the device enrols with `PUT /app/api/devices/{deviceId}`. While the operator keeps it closed, the token routes answer `enrol_tokens_off`.
<!-- /kit:glossary -->

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

This page: https://coronium.ai/private-modems. Updated 2026-11-26.

---
title: Private modems: a dedicated 4G or 5G line for one account
description: A dedicated modem on a carrier SIM that one account holds for the period it ordered: what an order will give, how logins are read, how lines rotate.
product: mobile
template: hub
updated: 2026-11-26
---

# Private modems

<!-- facts:begin product.mobile -->
**Private mobile proxies**: Not available yet. A dedicated 4G/5G modem on a carrier SIM, yours alone for the period. A signed-in account asks for it with `POST /app/api/demand/device` and the kind `mobile`: the request is recorded, and nothing is ordered or charged.
<!-- facts:end product.mobile -->

A private modem is a 4G or 5G modem on a carrier SIM that one account holds alone for the period it ordered, reached over HTTP or SOCKS5 with logins of its own. The order calls are part of the service and wait for the operator: whether orders are taken, `GET /app/api/buy` answers in `private.configured`. While it is false, the offers, the quote, the order, the logins and the line actions answer `private_not_configured` and nothing is charged; the order list and the order read still answer, without lines, and `POST /app/api/private/requests` records a request.

## What will an order give?

An order buys one or more modems from the paid balance, and each modem is one line of the order:

- Each line has its own `lineId`, the time its period ends in `expiresAt`, whether it is online, and what it can do in `capabilities`.
- Each line has two logins, one for HTTP and one for SOCKS5, each a host, a port, a username and a password.
- A line whose `capabilities.rotate` is true takes a new IP address when the buyer asks, with `confirm` true, and nothing is charged for it.
- A line whose `capabilities.replace` is true can be replaced by another modem, with `confirm` true. The new line has a new `lineId` and new logins, and nothing is charged for it.
- What is not in stock when the order is placed is recorded as demand, answered in `onRequest` and never charged.

The modem is yours alone for the period: no other Coronium buyer is routed through it. That is the difference from a [mobile exit on the peer network](/mobile-proxies), where any buyer whose username matches can reach the same device.

## How are the logins kept?

The service keeps the logins in memory and gives them out through one route, `GET /app/api/private/orders/{orderId}/credentials`, answered with `Cache-Control: no-store`. The order list and the read of one order carry no logins. A line with no address to show answers `hostPending` true.

On the order screen the logins are read only when the buyer opens them and stay covered until the buyer reveals them. A rotation or a replacement closes them, because either can change them. An agent reads the logins when it needs them, and never stores them or passes them to a chat model.

## How will an order be paid?

From the paid balance only, never from credit the operator granted, and debited once, in the same step that writes the order. The current offers and their prices come from `GET /app/api/private/offers`, which needs no account; this page shows none. While coronium.ai is in private preview, that read answers `403` with the code `private_preview` instead.

<!-- kit:steps -->
1. Read the offers.
2. Ask for a quote.
3. Confirm it.
4. Read the order.
5. Read the logins.
<!-- /kit:steps -->

Each call is in [the guide](/guides/private-proxies.md).

An order whose outcome is uncertain keeps its debit and is settled later from what the modem supply shows, never by a second purchase. Orders appear on the monthly statement under `orders`, counted in purchases. Every request and answer shape is in [the OpenAPI document](/openapi.json).

## How do I ask for one now?

Record the request on your account. A signed-in account sends `POST /app/api/demand/device` with the kind `mobile` and, if it likes, a one-line note of where and for how long, within the bound the [stated limits](/guides/limits.md) give. The request is recorded, nothing is ordered or charged, and no date is promised. The same route records requests for the [devices an agent will drive](/devices-for-ai-agents) and for [sessions for agents that keep accounts](/agent-rails).

<!-- kit:code -->
```sh
curl -s https://coronium.ai/app/api/buy
curl -sS -b coronium.cookies -H 'Content-Type: application/json' -d '{"kind": "mobile", "note": "Germany, for a month"}' https://coronium.ai/app/api/demand/device
```
```python
import requests

answer = requests.get("https://coronium.ai/app/api/buy", timeout=30)
buy = answer.json()
if answer.status_code != 200:
    raise SystemExit(buy["code"] + ": " + buy["fix"])
print("orders taken:", buy["private"]["configured"])
session = requests.Session()  # sign in first, as the quickstart for agents shows; without it the answer is a refusal
answer = session.post("https://coronium.ai/app/api/demand/device", json={"kind": "mobile", "note": "Germany, for a month"}, timeout=30)
print(answer.status_code, answer.json())
```
```prompt
Read https://coronium.ai/private-modems.md. Call GET https://coronium.ai/app/api/buy and tell me whether private modems can be ordered. If they cannot, and I am signed in, record my request with POST https://coronium.ai/app/api/demand/device and the kind mobile. Ask me before you send anything that spends money.
```
<!-- /kit:code -->

The demand call answers `{"recorded": true}`. Without a session cookie it is refused with `401` and `sign_in_required`. The note takes no email address and no secret.

<!-- kit:callout note -->
The note is kept on the request record. The operator reads how many accounts asked for each product, so one request from each account is enough.
<!-- /kit:callout -->

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

This page: https://coronium.ai/proxies-for-ai-agents. Updated 2026-11-26.

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

This page: https://coronium.ai/proxies-for-ai-agents/sticky-and-rotating-sessions. Updated 2026-11-26.

---
title: Sticky and rotating proxy sessions for AI agents
description: 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.
label: Sticky and rotating sessions
template: article
updated: 2026-11-26
---

# Sticky and rotating sessions

A proxy username without `sid` sends each request through a device chosen for it. With `sid-<id>`, every request that carries the same key goes to the same device, and `rot` says how long it stays there: `rot-sticky` while the device stays in the pool, or a window of minutes after which the session moves to another device. Both are parts of the username an agent already sends, described for the whole journey on [Proxies for AI agents](/proxies-for-ai-agents).

## Three ways to send requests

<!-- kit:compare read=2026-11-26 -->
The three modes of a proxy username, from [Proxy usernames](/guides/usernames.md) and the edge's choice of device.
| Mode | In the username | Where the requests go | Fits |
| --- | --- | --- | --- |
| No session | no `sid` | A device picked at random for each request | Independent page fetches |
| Rotating session | `sid-<id>` with `rot-auto5`, `rot-auto10`, `rot-auto20` or `rot-auto60` | One device for each window of that many minutes, then the next device for the key | Long jobs that should spread over devices in steps |
| Sticky session | `sid-<id>` with `rot-sticky`, or `rot-hard`, which means the same | One device while it stays in the pool | Signed-in flows and anything that keeps state on the site |
<!-- /kit:compare -->

`rot` needs `sid`, and `auto10` applies when a username has `sid` and no `rot`.

## What is a session key?

A [session key](/peer-proxy-network/glossary#session-key-sid) is the `<id>` in `sid-<id>`: lower case letters, digits and `_`, up to the length [Proxy usernames](/guides/usernames.md) gives. The key is part of the username, so no edge stores a session. Every edge ranks the devices for a key the same way, from the account, the other options in the username, the key and the time window, and so every edge picks the same device for the same session.

### When does a rotating session move?

At the end of each window. The window of `rot-auto5` to `rot-auto60` is counted on the clock, from the Unix epoch, not from the session's first request. A session therefore moves at fixed times, and its first window can be shorter than the rest. `rot-sticky` has no window.

### What happens when the device leaves?

A sticky session is a handle on one device while that device stays in the pool. When the device leaves, the session moves to the next device the ranking gives for its key, and requests leave from that device's network from then on, as the [stated limits](/guides/limits.md) say.

When the device the edge chose is gone, full or closing before the stream opens, the edge tries another, and the attempt costs nothing. A username with `failover-none` asks for one attempt only: the request is refused rather than sent through a second device.

### Which devices can a session reach?

Established devices only. A new device that carries [fallback supply](/peer-proxy-network/glossary#fallback-supply) serves only usernames with a pool and a country and nothing else, so a username with `sid`, or with any of `iptype`, `carrier`, `asn`, `state` and `city`, never reaches one.

## How do I make session usernames?

`POST /app/api/proxy/spawn` prints them for a signed-in account. Send `rotation` as a `rot` mode and a `count`, and each string gets its own session key. `sessionPrefix` names the keys, and `save` keeps the set on the account. With `rotation` set to `none` the answer is one username without a session.

```sh
curl -sS -b coronium.cookies -H 'Content-Type: application/json' -d '{"count": 10, "pool": "peer", "country": "de", "protocol": "http", "format": "url", "rotation": "sticky", "sessionPrefix": "job"}' https://coronium.ai/app/api/proxy/spawn
```

Each string in the answer holds `{credential}`, which the agent fills in from its own file, and `{host}` and `{port}` while the endpoint is closed. Without a session cookie the call is refused with `401` and `sign_in_required`. Two of the examples in [Proxy usernames](/guides/usernames.md), for the example account there:

```text
0123456789abcdef0123456789abcdef-peer-de
0123456789abcdef0123456789abcdef-peer-us-state-ca-sid-job_1-rot-sticky
```

The first picks any device in Germany for each request. The second keeps session `job_1` on one device in California.

<!-- kit:username -->
The builder spells a username from its parts: pool, country, state and city, one network key, session key, rotation, `failover-none` or a device of your own. It runs in the browser, sends nothing to the service, and answers with the username the edge accepts or the refusal the edge would send, in the selector's words for each rule; a value with a dash in it is refused whole, where the edge would name the piece it cannot read. It uses the example account of [Proxy usernames](/guides/usernames.md); put your own account id in its place.
<!-- /kit:username -->

**When is a username refused?** A username outside the grammar is refused with `bad_options`: the cause names the token, and the fix shows the username to send. The spawn call refuses `sessionPrefix` or `save` with `rotation` `none`, because a username without a session has no key to name. The full grammar, with every key and its values, is in [Proxy usernames](/guides/usernames.md).

## Can an account keep its sessions?

Yes. `save` stores a set of sessions under its prefix, and the [stated limits](/guides/limits.md) give how many sets an account keeps and how large each can be. `GET /app/api/proxy/sessions` lists them, newest first, and `POST /app/api/proxy/sessions/{prefix}/forget` with `confirm` true removes one. Saved sessions have no traffic counters of their own: the statement counts traffic by day and country.

## Which mode fits a job?

- Send independent page fetches without `sid`, so each request goes through a device picked for it.
- Use `rot-sticky` for a flow that signs in, fills a cart or keeps any state that the site ties to an address.
- Use a rotating window for a long job that should move between devices at fixed times, and pick the window by how long one device should carry it.
- Add `failover-none` when the job must know that its first device was not reached, instead of a second device taking the request.
- Give each parallel worker its own key, so the workers spread over devices.

The words for these terms are in the [glossary](/peer-proxy-network/glossary), and the cost of a job does not depend on the mode: [Pay per GB](/pay-per-gb) charges the bytes alone. [Connect your agent](/agents) walks through the calls from sign-up to the first proxy string.

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

This page: https://coronium.ai/sell-bandwidth. Updated 2026-11-26.

---
title: Sell bandwidth: share a connection with the Coronium agent
description: Run Coronium's agent on a Linux machine or in Docker and earn a share of what buyers pay for the traffic it carries. The agreement, the terms, the payout.
label: Sell bandwidth
template: hub
audience: device-owners
updated: 2026-11-26
---

# Sell bandwidth with the Coronium agent

You sign Coronium's partner agreement, enrol a device you own or may use this way, and run Coronium's downloadable agent on it. Buyers then send web traffic out through your connection, Coronium's edge counts the bytes, and you earn a share of what buyers paid for that traffic, at the share Coronium publishes. While Coronium does not charge buyers, statements read Unpriced and no earnings accrue. Whether new accounts are taken now, `GET /app/api/buy` answers in `registration`, and whether buyers are charged, in `charging`.

## What sharing your connection means

A buyer on the Coronium network sends a request, and the agent on your device opens the connection to the address the buyer asked for and passes the bytes both ways. The site at the other end sees your device's public internet address. Coronium does not limit buyers to one site: a buyer can reach any public internet address except the destinations the agent and Coronium's servers refuse, which the partner agreement lists in section 4.

Everything sent through your device counts against your connection's data allowance, and names are looked up with your device's own DNS settings. The agent opens no port on your network: it dials out to Coronium's [relay](/peer-proxy-network/glossary#relay) and keeps that one connection open. [What the agent does on your device](/sell-bandwidth/what-the-agent-does) covers what it runs, reads, sends and refuses. The [peer network page](/peer-proxy-network) follows one buyer request from the edge to the site and back.

## Which devices may I enrol?

You confirm each of these for every device you enrol, as section 2 of the agreement states them:

- The device and its internet connection are yours to use this way, and your internet provider's terms allow it.
- You do not enrol a device on a network you do not control or are not authorised to use, such as an employer, school, library or hotel network.
- Anyone else who uses the connection knows that it is shared.
- The device runs no malware, is not part of a botnet, and was not enrolled with someone else's account details.

Run one agent per public address. On a residential network, a second device behind the same connection is [withheld](/peer-proxy-network/glossary#withheld) as `same_exit`: the device enrolled first keeps the exit. A device on a network Coronium does not sell, such as a data centre, is withheld as `class_not_sold`.

## How do I start sharing?

<!-- kit:steps -->
1. Create a device owner account in the [farmer portal](/farmer) on the supply site. While registration is closed, sign-up answers `registration_closed`.
2. Read the partner agreement and sign it with the full legal name of the person or organisation that controls the account.
3. Add a device. The answer shows the device id, the device secret and the relay address once, so copy the secret into the agent's settings before you leave the page.
4. Run the agent with the Linux kit or with [Docker](/sell-bandwidth/docker), using those three settings.
5. Watch the device in the portal: it waits as `new` until its first measurement. It then carries traffic as fallback supply once its network is classified as one Coronium sells, and until then it is withheld with `unclassified_asn`.
<!-- /kit:steps -->

An AI agent can take the same steps over HTTP for the person or company it acts for, as the [guide for supply agents](/guides/supply-agents.md) describes. The person or company that controls the account is the partner and is bound by what the agent signs.

## What does my signature record?

The service stores each signature as a record: the account, the name and any organisation you gave, the version line of the agreement, the SHA-256 of its exact text, the time you stated and a fingerprint over all of those. It adds the time it received the signature, the internet address, client software and language setting the request came from, the sign-in session, and a keyed [receipt](/peer-proxy-network/glossary#receipt) that shows the stored record was not altered afterwards. Each device you add gets an acceptance record and a receipt of its own. [The signing contract](/kit/SIGNING.md) states every field and how anyone holding the record and the text can check it.

A signature cannot be withdrawn. When Coronium changes the text, it gives it a new version line, and the portal asks you to sign the new version before you add another device.

## Ways to connect

The supply site lists every file at `/kit/index.json`, with its SHA-256 digest, size and state, and the farmer portal shows the same list. A file reads `available` only when Coronium has taken that exact file through its whole check on that system, and `preview` when it was built for the system and not taken through that check. The Linux kit for x86-64 and the agent alone for x86-64 read `available`, a state that rests on two runs of two earlier builds, as the guide for device owners records. The Docker image, the ARM64 kit and the agent for other systems read `preview`, and the [guide for supply agents](/guides/supply-agents.md) explains each preview's limits. Coronium offers no Android app SDK, because the app store allows proxying for others only as an app's own main purpose, and no iOS app, because the platform's review rules allow background services only for listed purposes and a proxy is not one.

Nothing in `/kit/` is signed yet, so a digest is only as trustworthy as the HTTPS connection to the supply site. The [guide for device owners](/guides/device-owners.md) has the Linux kit's commands.

## What earns and what earns nothing

Coronium's [edge](/peer-proxy-network/glossary#edge) counts the bytes each device carries, in whole bytes, and that count is the only one used for billing and earnings. Your devices and the agent report no usage of their own. Buyers pay for the same count, as [paying per GB](/pay-per-gb) explains, and many of them are AI agents that start from [proxies for AI agents](/proxies-for-ai-agents). Your statement lists each day, device and country with the bytes carried, what buyers paid, your share in basis points and the day the amount is released.

Section 6 of the agreement states: "Traffic that was invented or padded, or carried by a device that breaks section 2, earns nothing. Coronium may void such amounts while they are held."

Separately, the [guide for device owners](/guides/device-owners.md) states that traffic paid from a free grant, traffic a buyer could not pay for, and your own traffic through your own device earn nothing. The agreement promises no minimum traffic and no earnings.

## Which terms are in force for my account?

The farmer portal shows the terms in force for your account, and `GET /app/api/earnings` answers the same values from the ledger to the signed-in account:

| Field | What it holds |
|---|---|
| `terms.holdDays` | the hold, counted from the UTC day the ledger recorded the traffic |
| `payoutMinimumUsdMicros` | the payout minimum, in micro-USD |
| `terms.deviceLimit` | the devices a new account may hold |
| `terms.shareBp` | your share in basis points, or null while Coronium does not charge buyers |
| `terms.charging` | whether Coronium charges buyers |

Read the values there instead of assuming them. The partner agreement states the limits of these terms in section 8. Coronium may move a term within those limits, and a term outside them needs a new version of the agreement that you sign. A signed-in account reads the agreement's exact text from `GET /app/api/consent` and on the agreement screen of the supply site, and each Linux kit carries the same file as `PARTNER-AGREEMENT.md`.

## How is a payout made?

A payout is made on request. Once your released amount reaches the payout minimum, you ask for an exact amount in your signed-in account or with `POST /app/api/payouts`, name the asset (USDC or USDT), the network and your address on it, and prove the request with your access code. One request waits at a time. The operator pays the requests received monthly, by hand, and records each payment with a reference. An account that owes Coronium for traffic it used as a buyer is paid only after that debt is settled.

Before a first payout above a threshold Coronium publishes, Coronium may ask you to confirm your identity, and that payout waits until you have. You pay your own taxes, electricity, data and device costs.

## How do I stop?

Stopping the agent is the only step that stops traffic, and you can take it at any time without asking. With the Linux kit run `sudo systemctl disable --now coronium-agent`, and it stays stopped after a reboot. With Docker run `docker stop coronium-agent`, and a container started with `--restart unless-stopped` stays stopped after a reboot. With the kit, `sudo ./uninstall.sh` removes the files and the secret. With Docker, `docker rm -f coronium-agent` removes the container; delete `agent.env` yourself, because it holds the secret. Withdrawing a device is a request to Coronium at the contact in section 10 of the agreement: from then on its servers start no new connection through the device, and it does not stop an agent that is still running, so stop it yourself. [What the agent does on your device](/sell-bandwidth/what-the-agent-does) lists the commands for each.

## Device states

| State | What it means |
|---|---|
| `new` | waits for its first measurement |
| `admitted` | carries traffic as [fallback supply](/peer-proxy-network/glossary#fallback-supply), which buyers reach when no established device can serve them |
| `established` | carries traffic first; the operator promotes a device after a clean history |
| `withheld` | carries nothing until its reason clears, such as `unclassified_asn` while Coronium reviews the device's network |
| `paused`, `private` | your own choices |
| `withdrawn` | follows your request to Coronium, or Coronium's own action under section 8 of the agreement |

The [guide for device owners](/guides/device-owners.md) lists every reason a device is withheld. The [stated limits](/guides/limits.md) list what is not built.

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

This page: https://coronium.ai/sell-bandwidth/docker. Updated 2026-11-26.

---
title: Run the Coronium device agent in Docker
description: Check the image digest, load it, and run the agent read-only with no shell as an unprivileged user. The log line to expect, and how to stop and remove it.
label: Run it in Docker
template: article
audience: device-owners
updated: 2026-11-26
---

# Run the agent in Docker

The Docker image runs Coronium's device agent as a container with no shell and no installer, as user 65534 rather than root, on a read-only filesystem. You download the image, check its digest, load it, write a settings file that only you can read, and run one container per public address. This page holds the Docker steps of [Sell bandwidth](/sell-bandwidth); the [guide for device owners](/guides/device-owners.md) is the full text, with the Linux kit and every device state.

<!-- kit:callout limit -->
The image is a preview. Its state in `/kit/index.json` is `preview`, with the limit `not_run_by_coronium`. An earlier build of the image connected on Coronium's relay. Each build is a new file, and Coronium has not run the published one. A billed request and the image's removal were not done with either.
<!-- /kit:callout -->

## What you need first

- A device owner account in the [farmer portal](/farmer), with the partner agreement signed and the device added. Adding it shows the device id, the device secret and the relay address once.
- Docker on Linux, and outbound TCP to the relay. The agent needs no inbound port.
- The image for your machine: `uname -m` prints `x86_64` for `amd64` and `aarch64` for `arm64`. The commands below use `amd64`.

With Docker there is no installer to show you the agreement, so your signature and the acceptance stored when you added the device are the record for it.

## Download, check and load the image

Download the list of digests and the image from the supply site, check the image against the list, and load it:

```sh
curl -fsSLO https://supply.coronium.ai/kit/SHA256SUMS
curl -fsSLO https://supply.coronium.ai/kit/coronium-agent-docker-amd64.tar
grep ' coronium-agent-docker-amd64.tar$' SHA256SUMS | sha256sum -c
docker load -i coronium-agent-docker-amd64.tar
```

The check must say `OK`. Stop if it does not. Nothing in `/kit/` is signed yet, so the digest is only as trustworthy as the HTTPS connection to the supply site. `docker load` prints the image name, `coronium-agent:<version>`, which the next steps use.

## Write the settings file

Make a file that only you can read, then open it in an editor:

```sh
touch agent.env && chmod 600 agent.env
nano agent.env
```

Write three lines into `agent.env` with the values from adding the device, with no quotes:

```sh
CORONIUM_RELAY=us1.almanac.channel:17001
CORONIUM_DEVICE=<device id>
CORONIUM_DEVICE_SECRET=<device secret>
```

Type or paste the secret into the editor, never on a command line, in an email or in a chat.

## Run the container

Run it with the image name `docker load` printed, and read its log:

```sh
docker run -d --name coronium-agent --restart unless-stopped --read-only \
  --cap-drop ALL --security-opt no-new-privileges --env-file agent.env coronium-agent:<version>
docker logs -n 20 coronium-agent
```

## How do I know it is connected?

The log says `connected to the relay` once the device is up, and states the cause and the fix of any problem.

A setting the agent refuses is not retried by the agent: Docker starts it again with a growing pause until you fix the file, remove the container and run it again. In the farmer portal the device then waits as `new` until its first measurement.

## How do I change a setting?

Docker reads `agent.env` when it creates the container, so `docker restart` keeps the old settings. After you change the file, run `docker rm -f coronium-agent` and the `docker run` line again.

## How do I stop or remove it?

`docker stop coronium-agent` stops sharing, and it stays stopped after a reboot. `docker start coronium-agent` starts it again.

To remove it, delete the container, the settings file that holds the secret, and the image if you want it gone:

```sh
docker rm -f coronium-agent
rm agent.env                          # it holds the secret
docker rmi coronium-agent:<version>   # if you want the image gone too
```

Then tell the operator, so the device is withdrawn. Withdrawal does not stop a running container, so stop it first.

## What the container holds and sends

The image holds the agent and public certificate roots, and nothing else. The agent writes no files and logs one line when its connection to the relay goes up or down, with no line per request and no destination address. It sends Coronium the device id, the device secret, the protocol version, its name and version, and how many connections it will carry at once. [What the agent does on your device](/sell-bandwidth/what-the-agent-does) covers what it refuses to connect to and what Coronium records.

Run one container per public address. On a residential network, a second device behind the same connection is [withheld](/peer-proxy-network/glossary#withheld) as `same_exit`: the device enrolled first keeps the exit. The [stated limits](/guides/limits.md) list what is not built.

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

This page: https://coronium.ai/sell-bandwidth/what-the-agent-does. Updated 2026-11-26.

---
title: What the Coronium device agent does on your device
description: The agent connects out to Coronium's relay and needs no open port. What it carries, what it refuses, what is measured and recorded, and how to stop it.
label: What the agent does
template: article
audience: device-owners
updated: 2026-11-26
---

# What the agent does on your device

The agent makes one outgoing, encrypted connection to Coronium's relay and keeps it open, and it opens no listening port on your device. When the relay asks, it opens a TCP connection from your device to the address a buyer requested and passes the bytes both ways. It refuses local and private destinations, writes no files of its own, logs only when its connection to the relay goes up or down, and stops when you stop it. This page is part of [Sell bandwidth](/sell-bandwidth), and each statement on it comes from the partner agreement and the kit's own guides.

## One connection, opened by your device

The agent dials Coronium's [relay](/peer-proxy-network/glossary#relay) over TLS 1.3, at the relay address you were given when you added the device, and needs outbound TCP to it and no inbound port. Nothing connects in: buyer streams reach your device over the connection it opened itself. If the connection drops, the agent dials again by itself.

Run one agent per public address. On a residential network, a second device behind the same connection is [withheld](/peer-proxy-network/glossary#withheld) as `same_exit`: the device enrolled first keeps the exit.

## What it carries

<!-- kit:path -->
1. A buyer or an AI agent sends a request to Coronium's edge with a username that says which kind of device should carry it.
2. The edge chooses an eligible device and counts the bytes of the request and of the answer, in whole bytes.
3. The relay carries the stream over the connection your device opened outward.
4. The agent checks the destination, opens the connection from your device, and the site sees your device's public internet address.
5. The site answers, and the answer travels back through your device, the relay and the edge.
<!-- /kit:path -->

Coronium does not restrict buyers to one site. A buyer can send a request through your device to any public internet address, except the destinations below. Names are looked up with your device's own DNS settings, so your DNS provider sees the names that are requested. The software sets no daily limit on bytes, and everything sent through the device counts against your connection's data allowance. Section 3 of the partner agreement states how many connections the agent carries at once.

## What it refuses to connect to

Coronium's servers refuse buyer traffic to mail ports and to a destination written as an IPv6 address; the [stated limits](/guides/limits.md) give the ports. The agent on your device refuses these destinations, whoever asks:

- your device itself (loopback) and the unspecified addresses;
- private home and office ranges;
- link-local addresses;
- carrier-grade NAT;
- multicast and reserved ranges, broadcast included;
- IPv6 addresses that carry one of those IPv4 addresses inside them.

The agent checks a name after it is looked up. If any of its addresses is on the list, the whole name is refused, and the agent connects only to an address it checked. Section 4 of the partner agreement lists each range exactly.

<!-- kit:callout limit -->
The list is by address range. If devices on your local network have public addresses, which is common with IPv6, the agent does not tell them apart from the rest of the internet, and the same holds for your device's own public address. These are the only destination rules the software enforces.
<!-- /kit:callout -->

## What it reads, writes and sends

- **Reads:** its settings (the relay and the device id) from its command line or environment, the device secret from its environment, and the system's DNS settings and certificate roots. It reads no other files, no browsing data and no other programs' traffic.
- **Writes:** the agent writes no files. The Linux kit's installer writes the program, the service file and `/etc/coronium-agent` with the settings, the secret and a record of your acceptance. The Docker image keeps nothing on the device; the settings file you pass with `--env-file` is yours to create and protect.
- **Logs:** one line when the connection to the relay goes up or down, with the cause. No line per request and no destination addresses.
- **Sends to Coronium:** the device id, the device secret, the protocol version, the software name and version, and the number of connections it will carry at once.

The agent keeps no record of destinations, so you cannot check them on your device. You can ask Coronium for its record of the requests and bytes carried through your device.

## What Coronium measures and records

Coronium's servers see your device's public internet address and when it is connected, and its [edge](/peer-proxy-network/glossary#edge) counts the bytes carried through it. That count is the only one used for billing and earnings: your device and the agent report no usage of their own.

The server measures where the device exits: its country, region, city, network and carrier. Nobody types those labels, and the measurement does not store the address it measured. The IP class and the carrier follow from the network's [ASN](/peer-proxy-network/glossary#asn). The exit is measured on IPv4 only, and a modified agent can recognise the measurement. A device waits as `new` until its first measurement. A device on a network Coronium does not sell, such as a data centre, is withheld with `class_not_sold`, and one on a network not classified yet stays connected and carries nothing, with `unclassified_asn`.

Coronium records the measured location and network of the device's public address, the byte counts, your earnings and payout requests, and your signing record. A buyer can learn your device's public address, as any site reached through it can.

## The signing record and the receipt

You sign the partner agreement before any device is added. The signature's fingerprint is the SHA-256 of one line of fields joined by `|`:

```text
coronium-partner-agreement|<version>|<accountId>|<name>|<organisation>|<sha256>|<signedAt>
```

The service computes the fingerprint again from what it received and refuses any difference with `bad_signature`. It stores the record with the time it received it, the client address, the `User-Agent` and `Accept-Language` headers, the session it came through, and a [receipt](/peer-proxy-network/glossary#receipt): an HMAC-SHA-256 keyed with a key the service reads from a file, which never enters the database. A row rewritten by someone with access to the database alone no longer matches its receipt. Each device you add has an acceptance row with a receipt of its own. Records are never changed or removed.

The Linux kit's installer also asks you to type the agreement digest from your device page, shows you the agreement on the device and goes on only when you type the words it asks for. A kit whose agreement text does not match that digest is refused with `agreement_not_accepted`. The Docker image has no installer, so the acceptance stored when you added the device is the record for it. [The signing contract](/kit/SIGNING.md) states every field, with worked examples to check a record by hand.

## How do I stop and remove it?

Stopping is the only step that stops traffic, and you can take it at any time without asking. With the Linux kit, the first line stops the agent and keeps it stopped after a reboot, and the second starts it again:

```sh
sudo systemctl disable --now coronium-agent   # stops it, and keeps it stopped after a reboot
sudo systemctl enable --now coronium-agent    # starts it again
```

An agent started in a terminal stops with Ctrl-C, and a container with `docker stop coronium-agent`. To remove the Linux kit, run the remover from the kit folder. It removes the service, the program, the service user and `/etc/coronium-agent` with the secret, and warns when it still finds an agent you started yourself:

```sh
sudo ./uninstall.sh
```

Log lines already in the system journal stay until the journal drops them. [Run the agent in Docker](/sell-bandwidth/docker) lists the commands that remove a container, its settings file and its image.

Your device owner account is in the [farmer portal](/farmer). Withdrawing a device is a request to Coronium at the contact in section 10 of the agreement. From then on its servers start no new connection through the device, and its id and secret no longer work for a new start. Withdrawal does not disconnect an agent that is already running, so stop it yourself. Withdrawal is permanent for that device id, and the record of bytes already carried is kept.

## What is not done yet

Nothing in `/kit/` is signed, so a digest is only as trustworthy as the HTTPS connection to the supply site. A file marked `preview` in `/kit/index.json` was built for its system and has not been run by Coronium there. The partner agreement places responsibility for each enrolled device, its connection and any complaint that reaches you on you, in section 9; read it before you enrol.

## Questions device owners ask

<!-- kit:faq -->
### Does the agent open a port on my router?

No. The agent dials out to the relay, and buyer streams come back over that connection. It opens no listening port on your device.

### Does my device report its own usage?

No. Coronium's edge counts the bytes, and that count is the only one used for billing and earnings.

### Can I see which sites were reached through my device?

Not on the device: the agent keeps no record of destinations. Ask Coronium for its record of the requests and bytes carried through your device.
<!-- /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 -->
