← Blog

Bring your own proxy for an Orgo computer's browser

Route a computer's browser through your own HTTP CONNECT proxy to change its exit IP.

Updated

Orgo computers run in data centers, and some websites challenge or restrict traffic from data center addresses. Browser networking sends a computer's Chrome traffic through your own HTTP CONNECT proxy, so websites see your proxy's exit IP instead. You set it with one API call on a running Linux computer. It covers Chrome, not every program on the computer, and the first time you turn it on, Chrome restarts if it is open. A proxy does not guarantee that a website will accept automated traffic. The browser networking guide is the reference.

How it works

By default a computer's browser traffic leaves from the data center the computer runs in. With a custom upstream, a small relay on the computer forwards Chrome's traffic to a proxy you provide, and websites see that proxy's address. It is a setting on each computer; the computer is still a full desktop with a browser, terminal and files.

Many websites treat traffic from data center address ranges differently from traffic from homes and offices: a captcha, a block page, or a page that loads differently than on your own network. A proxy changes one input to that decision, the exit IP, and nothing else a website may look at.

Default (data center exit)Custom upstream (your proxy)
Exit IP websites seeThe data center address the computer runs fromYour proxy's exit IP
Who picks the networkOrgoYou, through your proxy provider
SetupNothing to configureOne API call per running Linux computer
Traffic coveredEverything leaves from the data centerChrome goes through the proxy; other programs do not
Effect on ChromeNoneThe first enable restarts Chrome if it is open; later changes restart only the relay
If the proxy stops answeringNot applicableChrome's requests fail; they do not fall back to the data center address
Site acceptanceNot guaranteedStill not guaranteed

Orgo also sells residential IP data, which sends a Linux computer's Chrome out through a home connection in the US. Every paid plan includes some each month (1 GB on Starter, 5 GB on Growth, 20 GB on Scale), and more is $3 a GB (pricing). Bring your own proxy when you already have a provider or need other countries.

Setting a proxy

Send POST /api/computers/{id}/egress/upstream with "mode": "custom" and your proxy's details. The API base URL is https://www.orgo.ai/api, and every request carries your Orgo API key as Authorization: Bearer $ORGO_API_KEY (authentication).

bash
curl -X POST "https://www.orgo.ai/api/computers/$COMPUTER_ID/egress/upstream" \
  -H "Authorization: Bearer $ORGO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "mode": "custom",
    "upstream": {
      "host": "proxy.example.com",
      "port": 443,
      "user": "your-proxy-user",
      "pass": "your-proxy-password",
      "tls": true
    }
  }'
  • host: your proxy's hostname or IPv4 address, with no scheme, port or path (proxy.example.com, not https://proxy.example.com).
  • port: your proxy's port, from 1 to 65535.
  • user and pass: your proxy credentials, sent to the proxy with Basic authentication. The username cannot contain a colon. The password is encrypted when stored.
  • tls: whether the computer connects to the proxy over TLS. It describes the hop to the proxy, not to the website, and defaults to false. With true, the proxy must present a certificate the computer trusts that matches the host you set. Without TLS, your proxy credentials travel unencrypted to the proxy, so turn it on if your provider supports it.

Orgo supports HTTP proxies that support CONNECT, with optional Basic authentication and an optional TLS connection to the proxy. SOCKS proxies are not supported. Use the host, port and TLS setting your provider gives you. Each call replaces the whole upstream, so send the password again whenever you change any field.

The response includes proxy_on and exit_ip, the address Orgo saw when it checked the new route through your proxy, or null if it could not read one.

Checking a computer's proxy

Send GET /api/computers/{id}/egress/upstream:

json
{
  "mode": "custom",
  "device_id": null,
  "upstream": { "host": "proxy.example.com", "port": 443, "user": "your-proxy-user", "tls": true },
  "proxy_on": true,
  "exit_ip": "203.0.113.10"
}

The response never includes the proxy password, so you can log it. proxy_on says whether Chrome is routed through the relay, and exit_ip is the address Orgo measured through your proxy when it applied the route. If your provider rotates addresses, websites may see others. A computer you never set answers "proxy_on": false, and its browser goes out directly from the data center.

What happens to Chrome

The first time you set a custom upstream, Orgo installs the relay and points Chrome at it with a managed Chrome policy. If Chrome is open, it restarts to pick up the policy, so save browser work first. After that, changing the upstream restarts only the relay. Chrome keeps running; open connections drop and Chrome reconnects on its next request. Set the proxy before your agent starts a long browser session.

What goes through the proxy

Traffic on the computerGoes through your proxy?
Chrome on the desktopYes
Chrome requests to localhostNo
Other programs, such as curl in a terminal, package installs or a background scriptNo
Other browsers you installNo, they do not read Chrome's policy

The same policy turns off QUIC in Chrome and stops WebRTC from sending UDP outside the proxy. If an agent mixes browser work with direct HTTP calls from a script, expect the two to exit from different IP addresses.

Errors and failures

  • 400: the request is malformed. Common causes are a missing or misspelled mode, a host that includes a scheme or path, a port outside 1 to 65535, or a username with a colon.
  • 409: the change could not be applied. An asleep computer answers with the code computer_asleep, and a computer that is not ready answers 409 too, so start or wake it and try again. A 409 can also mean Orgo could not reach the internet through your proxy, in which case it kept the previous route.

Orgo tests a new route before it keeps it: from the computer, it requests https://api.ipify.org through your proxy. If that fails, because of a wrong host, wrong credentials or a proxy that refuses the request, the computer keeps its previous route and Orgo restores the previous setting. Confirm the change with the GET call before you hand the computer back to your agent.

If your proxy goes down later, Chrome's requests fail until it answers again. Orgo does not send them out from the data center address in the meantime, so check your provider's status before you look for a problem on the computer.

Template egress policies

A template can declare an egress_policy with allow or block rules for domains, IPs and CIDR ranges, which filters the names the computer can look up and the addresses it can connect to. Browser networking sets where Chrome's traffic exits. Publishing templates needs Scale or higher.

With both, Chrome's traffic goes to one place: your proxy. The policy's rules apply to that connection, not to the sites Chrome reaches through it. With an allow policy, add your proxy's hostname or IP to the rules, or the computer may not be able to reach the proxy.

Other details

  • Linux only. Browser networking works only on running Linux computers, not Windows or macOS.
  • Per computer. The upstream is set per computer, so when every agent or user has its own computer, each can have its own proxy. See how to scale agent computers.
  • Site terms. Treat a proxy as one option for sites that restrict data center addresses, and follow each site's terms for automated access.