Skip to content

Proxies

How a browser’s proxy is chosen when it is created is in the Proxies guide. These routes read and change it while the browser runs, without restarting Chrome.

{ "mode": "managed", "country": "de", "sticky": true, "exitIp": "84.150.12.7" }
Field
mode managed (a residential proxy of Datum’s), direct (no proxy: the machine’s own address) or custom (your proxy)
country The residential proxy’s country, else null
sticky BrowserReal’s own: whether a residential proxy keeps one address. null unless managed
exitIp The address sites see. For a residential proxy, the address last seen for it; null for a custom proxy

GET /browsers/{id}/proxy → the proxy. 409 proxy_unavailable when the browser is not running.

PATCH /browsers/{id}/proxy → the proxy

Body Does
{ "mode": "managed", "country": "fr" } A residential address in another country
{ "rotate": true } A new address, same country
{ "target": "https://example.com" } A new address, same country (Browser Use’s form)
{ "sticky": false } / { "sticky": true } BrowserReal’s own: rotating or sticky from now on
{ "mode": "direct" } No proxy
{ "mode": "custom", "customProxy": { … } } Your proxy

Open connections are closed and the next ones go the new way. Tabs, cookies and storage stay.

Errors, as at Browser Use: 422 invalid_change for a custom proxy with a country, target or rotate, and for sticky without a residential proxy; 409 mode_required to rotate a browser without a proxy (ask for mode: "managed") and for a change on a custom proxy that does not name its mode; 409 proxy_busy for a change while another is under way; 409 proxy_unavailable for a stopped browser; 503 proxy_pool_empty, with Retry-After: 5, when no residential address in the country passed its check in time. See Errors.