Claude Code Prompts for a Mobile Proxy Line
Paste these prompts into Claude Code to check a Coronium mobile line, send one script through it, connect the Coronium MCP server and rotate the IP. Each prompt sends only the script's requests through the line and keeps the proxy password out of the chat, so Claude Code's own connection stays as it is.
The short version
- Claude Code reads HTTPS_PROXY and HTTP_PROXY for its own connections when it starts. Its documentation says it does not support SOCKS proxies.
- To send only a script through the line, put the line details in that script's environment, not in Claude Code's settings.
- The hosted MCP server at https://api.coronium.io/mcp lets Claude Code list, test and rotate your lines after a browser sign-in, and it never spends money.
- Leave at least 60 seconds between two rotations of the same line, and read the result: a rotation can keep the same IP.
Claude Code's proxy and the script's proxy
Claude Code has its own proxy setting for its connections to the Claude API and to sign-in. It reads the standard variables HTTPS_PROXY, HTTP_PROXY and NO_PROXY once at startup, or from the env block of settings.json. Basic authentication goes in the proxy URL, SOCKS proxies are not supported, and /status in a session shows the active proxy. That setting is for networks where every connection must leave through a company proxy.
A mobile line is usually meant for something else: the requests a script or browser makes to the sites you work with. If you set the line as Claude Code's HTTPS_PROXY, its own API traffic leaves through the line too. The prompts below set the line only on the command that does the work.
| Setting | What goes through it | Where it is set |
|---|---|---|
| Claude Code's HTTPS_PROXY | Claude Code's own connections | The shell before launch, or the env block of settings.json |
| The script's proxy URL | Only the requests of that script | Environment variables the script reads, set by you in the terminal |
Check the line first
One request through the line tells you the credentials work and which IP the sites will see. Compare it with the IP the dashboard shows for the line.
Goal: Check which public IP my Coronium mobile line gives this machine, with one request through the line.
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.
Steps:
1. Export the line's details once, in the terminal you will run the check from:
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.Send one script through the line
This prompt has Claude Code write a short Python script that reads the line from environment variables and makes its requests through it. Once it works, ask Claude Code to replace the test URL with the real task.
Goal: Write fetch_through_line.py, a Python script that sends its requests through my Coronium mobile line, and run it once. Only this script uses the line; do not change HTTPS_PROXY or HTTP_PROXY for Claude Code itself or for my shell.
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.
- Python 3 with the requests package. If requests is missing, ask before installing anything.
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. Write fetch_through_line.py. It builds the proxy URL as http://USER:PASS@HOST:PORT from CORONIUM_PROXY_USER, CORONIUM_PROXY_PASS, CORONIUM_PROXY_HOST and CORONIUM_HTTP_PORT, passes it to requests for both http and https, uses a 30 second timeout, fetches https://api.ipify.org and prints the status code and the body. It never prints the proxy URL or the password.
3. Run python3 fetch_through_line.py once.
Check the result:
- The status code is 200 and the body is one IP address. 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.Connect the Coronium MCP server
With the MCP server connected, Claude Code can work with your lines directly. The hosted server at https://api.coronium.io/mcp signs in with your Coronium account in the browser, so there is no token to paste.
The Claude Code plugin coronium-mobile-proxies connects to the same hosted server and cannot buy, renew, top up or cancel. It installs from Coronium's own marketplace with /plugin marketplace add coroniumio/coronium-proxy-mcp and /plugin install coronium-mobile-proxies@coronium. For the local server with an API token, the profiles and every tool, see the MCP server page.
Goal: Connect Claude Code to the hosted Coronium MCP server so you can list, test and rotate my Coronium lines from this session. Nothing is bought.
What you need:
- My Coronium dashboard account. I sign in myself in the browser; no API token is needed for this server.
Steps:
1. Ask me to run this in my terminal, outside the chat:
claude mcp add --transport http coronium-remote https://api.coronium.io/mcp
2. Ask me to run /mcp in Claude Code and finish the Coronium sign-in in the browser.
3. List the Coronium tools you can now see.
Check the result:
- The tool list includes coronium_get_proxies, coronium_test_modem and coronium_rotate_modem.
- There are no buy, renew or top-up tools: this server runs the directory profile, which never spends money.
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.Rotate the IP between tasks
Rotate between tasks, not in the middle of one. A rotation answers done, rotating or unchanged; the prompt waits for the result and never sends a second rotation within 60 seconds.
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.Keep secrets out of the session
Anything typed into the chat becomes part of the conversation history. The prompts ask you to export the line details yourself for that reason. The rules the Coronium agent guides follow:
- 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_proxiescontains proxy passwords. Treat it, the Reset Link and any OpenVPN profile as secrets. coronium_replace_modemis 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.
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.
- Claude Code docs: Enterprise network configuration
HTTPS_PROXY, HTTP_PROXY and NO_PROXY, basic authentication in the proxy URL, no SOCKS support, /status shows the active proxy.
- Coronium dashboard reference for agents (llms.txt)
Account and token, MCP profiles and hosted server, buying rules, rotation and health.
- coronium-proxy-mcp README
Tool profiles, spending opt-in and host configuration.
Frequently asked questions
More in the AI agent proxy guide
One page per agent, each built around prompts you can paste.
Related pages
The full setup guide for Claude Code with Coronium lines.
Profiles, tools and the local server with an API token.
Give the agent a browser that leaves through the line.
The same split for Cursor and its MCP settings.