docs/src/app/proxy/page.mdx
Use proxies for corporate networks, geo-testing, scraping infrastructure, and traffic routing through a controlled egress point.
agent-browser --proxy "http://proxy.example.com:8080" open https://example.com
agent-browser --proxy "http://user:[email protected]:8080" open https://example.com
agent-browser --proxy "http://proxy.example.com:8080" --proxy-bypass "localhost,*.internal.com" open https://example.com
AGENT_BROWSER_PROXY takes precedence over standard proxy variables. The CLI also accepts credentials embedded in the proxy URL and separates them before passing launch options to the daemon.
export ALL_PROXY="socks5://proxy.example.com:1080"
agent-browser open https://example.com
export ALL_PROXY="socks5://user:[email protected]:1080"
agent-browser open https://example.com
export AGENT_BROWSER_PROXY="http://proxy.example.com:8080"
export AGENT_BROWSER_PROXY_BYPASS="localhost,127.0.0.1,*.internal.com"
agent-browser open https://external.example.com
agent-browser open http://localhost:3000
agent-browser open https://httpbin.org/ip
agent-browser get text body
The response should show the proxy egress address, not the machine's direct network address.