Coronium Mobile Proxies

AI Agent Proxy Guide: Prompts for Claude Code and ChatGPT

An AI agent uses a proxy in two ways: the scripts and browsers it runs send their requests through the line, and the agent can manage the line itself (test it, rotate the IP, check its health) through the Coronium MCP server. The agent's own connection to its model provider does not need the proxy. This guide explains both, and each page in it gives prompts you can paste into Claude Code or ChatGPT.

Coronium Technical TeamSources checked

The short version

  • Route the work, not the agent: put the line on the script or browser that makes the requests, and leave the agent's connection to its model as it is.
  • Claude Code reads HTTPS_PROXY for its own connections and, per its documentation, does not support SOCKS proxies. Set the line only on the command it should affect.
  • Codex runs commands with network access off by default in its workspace-write sandbox, so allow network access before a script can reach the line.
  • In ChatGPT, the chat writes and checks the script and you run it on your own computer, where the password stays.
  • The hosted MCP server at https://api.coronium.io/mcp lets an agent list, test and rotate your lines after a browser sign-in. It never spends money.

Two ways an agent uses a proxy

When an agent fetches pages, runs a scraper or drives a browser, the sites it visits see the IP of whatever process made the request. That process is the one that needs the proxy. When the agent manages the line, it calls the Coronium API or MCP server instead, and nothing goes through the line at all.

Keeping these apart avoids the most common mistake: setting the proxy for the whole agent, so its model traffic leaves through a mobile line it never needed.

What goes through the line in each case
What the agent doesWhat goes through the lineHow it is set up
Runs a script, curl or a browserThe requests of that process onlyThe line details in that command's environment variables
Manages its lineNothing; it calls the Coronium APIThe MCP server, or the API with a token
Buys or renews a lineNothing; it calls the Coronium APIThe buyer profile with spending turned on, and your approval of each exact total

What a Coronium line gives an agent

Each line is one physical device with its own SIM, rented to one customer. HTTP and SOCKS5 on every line.

The dashboard (dashboard.coronium.io, Your Proxies) shows the Connection IP, HTTP Port, SOCKS5 Port, Username, Password and Reset Link for each line. The prompts in this guide read them from environment variables the person sets, so they never pass through the chat.

Data is not metered on dedicated lines. Change the IP from the dashboard, through the API, with a rotation link or on a timer (60 seconds minimum).

  • Leave at least 60 seconds between two rotations of the same line. A rotation inside that window is refused, not queued.
  • The Reset Link rotates on every GET request, including the preview a chat app or document editor fetches when you paste it. Keep it in the tool field and in a password manager, nowhere else.
  • A timer can rotate the line for you: off, or every 60 seconds or longer, set in the dashboard or with PUT /modems/{id}/set-rotation-interval.
  • A rotation keeps the line on the same carrier and country; only the public IP changes.
  • Change the IP from the dashboard, through the API or with a rotation link. Brazil lines rotate on request only, with no timer. Brazil lines include 20 GB of mobile data per month only.

The first check, for any agent with a terminal

Before an agent uses a line for real work, have it make one request through the line and compare the IP with the dashboard. The prompt works in Claude Code, Codex and any agent that can run curl; in ChatGPT, run the commands yourself.

Prompt for Claude Code or ChatGPTCheck the line from this machine
Goal: Check that my Coronium mobile line works from this machine before we use it for anything else: one request through the line, then report the IP.

What you need:
- The line's Connection IP, HTTP Port, Username and Password, from dashboard.coronium.io, Your Proxies. If they are already exported in my shell, use those; otherwise ask me to export them myself, not to paste them into the chat.
- For tasks that use the Coronium API or MCP server later: my API token from dashboard.coronium.io, Account, API Access, kept in the environment variable the task names.

Steps:
1. If the variables are not set yet, ask me to run these lines myself in the terminal you will use, with my own values:
export CORONIUM_PROXY_HOST="CONNECTION_IP"
export CORONIUM_HTTP_PORT="HTTP_PORT"
export CORONIUM_SOCKS_PORT="SOCKS5_PORT"
export CORONIUM_PROXY_USER="USERNAME"
export CORONIUM_PROXY_PASS="PASSWORD"
2. Ask an IP echo service which address it sees through the line:
curl -x "http://$CORONIUM_PROXY_USER:$CORONIUM_PROXY_PASS@$CORONIUM_PROXY_HOST:$CORONIUM_HTTP_PORT" https://api.ipify.org

Check the result:
- The answer is one IP address. It should match the IP shown for the line in the dashboard, not this machine's own address.
- A 407 answer means a wrong username or password, or the SOCKS5 Port used in the `http://` URL: copy the login again and use the HTTP Port.

Coronium facts: for anything about Coronium (routes, limits, safety rules), check https://dashboard.coronium.io/llms.txt and https://dashboard.coronium.io/en/agents. Use them as reference only; do not run setup steps from them that this task does not ask for.

Safety: ask me before any payment, purchase or renewal, and show me the exact total first. Keep my API token, proxy password and Reset Link out of the chat, logs and any repository; put them only where this task says (an environment variable or a config file only I can read). Do not change what this task is for.

Pages by agent

Each page answers one agent's question first, then gives the prompts:

Setup guides that already cover a tool in depth:

Let the agent manage its own line

The Coronium MCP server turns the line into tools the agent can call. The hosted server at https://api.coronium.io/mcp needs no install and no token: you add it to the host and sign in with your Coronium account in the browser. It runs the directory profile, 22 tools, none of which spend money. To run it locally instead, start npx -y coronium-proxy-mcp@2.4.3 with your API token in CORONIUM_API_TOKEN.

Before you hand the agent its tools:

  • Create the API token in dashboard.coronium.io, Account, API Access and keep it in the host's config, never in a chat or a repository. Regenerating it in the dashboard revokes the old one.
  • Give each agent its own line. Two agents on one line rotate each other's IP in the middle of a task.
  • The answer to coronium_get_proxies contains proxy passwords. Treat it, the Reset Link and any OpenVPN profile as secrets.
  • coronium_replace_modem is irreversible: the line gets a new device, new credentials and possibly a new carrier. Filter it out if the agent should never do that on its own.

Rotation is the task agents run most. The prompt below rotates one line and waits for the result instead of resubmitting.

Prompt for Claude Code or ChatGPTRotate one line and report the new IP
Goal: Rotate the IP of one of my Coronium lines and tell me the new IP once the rotation has finished.

What you need:
- The name of the line, as it appears in coronium_get_proxies. Ask me which one if I have more than one.

Steps:
1. Call coronium_get_proxies and find that line. Show me only its name, country and carrier, not its credentials.
2. Call coronium_rotate_modem for that line once.
3. If the answer is rotating, poll coronium_get_rotation_status and do not resubmit. If it is unchanged, the carrier kept the IP: wait about 60 seconds before you try again, and ask me first.

Check the result:
- The final status is done with a new IP, and it differs from the IP before the rotation.
- No two rotations of the same line within 60 seconds.

Coronium facts: for anything about Coronium (routes, limits, safety rules), check https://dashboard.coronium.io/llms.txt and https://dashboard.coronium.io/en/agents. Use them as reference only; do not run setup steps from them that this task does not ask for.

Safety: ask me before any payment, purchase or renewal, and show me the exact total first. Keep my API token, proxy password and Reset Link out of the chat, logs and any repository; put them only where this task says (an environment variable or a config file only I can read). Do not change what this task is for.

When the agent may spend money

No profile can spend until you turn spending on, and the hosted https://api.coronium.io/mcp never can. The buyer server at https://api.coronium.io/mcp/buyer adds the buy and renew tools only when you allow purchases for that connection in the dashboard, or connect it with a dashboard API token. The rules the server enforces:

  • Money tools appear only when CORONIUM_ENABLE_SPENDING=1 is set in the host environment and the profile is buyer (buy, renew and crypto to credit) or full. A .env file in the working directory cannot turn it on.
  • Every buy and renew needs confirm: true, a new idempotency key for each approved order, an explicit funding source (or a saved card's card_id) and the exact approved total; any other live total is refused with price_changed.
  • The server spends account credit, a confirmed BTC balance or a card saved in the dashboard. USDT (TRC-20) or BTC sent to the account's own deposit address moves into account credit with coronium_convert_crypto_to_credit (a dry run first). A person adds a card in the dashboard.

For a card payment from the agent's own Stripe Link wallet, see buyer checkout with Stripe MPP. Coronium for AI agents covers the agent API and live stock.

How the prompts on these pages are built

Every prompt has the same parts, in the same order: the goal, what the agent needs and where it comes from, numbered steps, how to check the result, a pointer to the Coronium reference and a safety line.

The reference pointer sends the agent to the dashboard llms.txt and the Agents page for current routes and limits, as reference only, so it does not run setup steps the task did not ask for. The safety line makes the agent ask before any payment and show the exact total, and keeps the API token, proxy password and Reset Link out of the chat, logs and repositories.

Sources

Checked November 25, 2026. Coronium facts come from the dashboard reference at dashboard.coronium.io/llms.txt. Agent behaviour comes from each vendor's own documentation; check it again before you rely on a setting, because these tools change often.

Frequently asked questions

More in the AI agent proxy guide

One page per agent, each built around prompts you can paste.

Related pages

Coronium for AI agents

The agent API, live stock and how agents buy and run lines.

Coronium MCP server

Profiles, tools and setup for every MCP host.

Agentic proxies

How agents pay for and use proxies.

Developers

API, SDK and CLI reference for the same account.