You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature Request] Add proxy configuration option for browser tool #8079
Add a configuration option to specify a proxy server for the browser tool. Currently, when OpenClaw starts Chrome/Chromium, there's no way to configure it to use a proxy server.
Use Case
Users behind corporate firewalls need proxy access
Users in regions with restricted internet access need to route browser traffic through a proxy
Server deployments where the server IP is blocked by certain websites
Proposed Solution
Add a proxy option under the browser configuration section:
Hi, I’m interested in contributing to this issue.
Could you please point me to the browser launch code path?
I’d like to understand where Chrome args are constructed.
Hi @nehaksharma11, thanks for your interest in contributing! 🎉
The browser launch code is in:
src/browser/chrome.ts
Specifically, look at the spawnOnce() function (around line 124-150 in the compiled dist/browser/chrome.js). This is where Chrome args are constructed:
constargs=[`--remote-debugging-port=${profile.cdpPort}`,`--user-data-dir=${userDataDir}`,"--no-first-run",// ... more args];if(resolved.headless){args.push("--headless=new");args.push("--disable-gpu");}if(resolved.noSandbox){args.push("--no-sandbox");args.push("--disable-setuid-sandbox");}
For the proxy feature, you would:
Add a proxy?: string option in src/browser/config.ts (browser config schema)
This is implemented in #20578. Adds browser.proxy config with HTTP/HTTPS/SOCKS5 support, authenticated proxies via CDP Fetch.authRequired, per-profile overrides, and credential isolation. Awaiting maintainer review.
Current main already supports the requested browser proxy routing via browser.extraArgs, which accepts Chromium flags like --proxy-server=..., carries them through resolved browser config, and appends them to Chrome launch args. The same implementation is present in release v2026.4.22.
What I checked:
Browser config surface exposes extra launch args:BrowserConfig includes extraArgs?: string[] as additional Chrome launch arguments. (src/config/types.browser.ts:63, cec34821754a)
Chrome launch args include configured proxy flag:buildOpenClawChromeLaunchArgs() appends resolved.extraArgs directly to Chromium's startup arguments, so --proxy-server=... is passed through. (extensions/browser/src/browser/chrome.ts:135, cec34821754a)
Tests explicitly cover proxy-server usage: Schema regression test accepts browser.extraArgs: ["--proxy-server=http://127.0.0.1:7890"], and the browser launch-args test asserts that --proxy-server=http://localhost:3128 is propagated. (src/config/config.schema-regressions.test.ts:208, cec34821754a)
Released tag already contains the same support: The v2026.4.22 tag contains the same extraArgs handling in browser config, Chrome launch, and proxy regression coverage; diffing those files against HEAD showed no change in the implementation path. (00bd2cf7a376)
So I’m closing this as already implemented rather than keeping a duplicate issue open.
Activity
nehaksharma11 commentedon Feb 3, 2026
Hi, I’m interested in contributing to this issue.
Could you please point me to the browser launch code path?
I’d like to understand where Chrome args are constructed.
skaas777 commentedon Feb 3, 2026
Hi @nehaksharma11, thanks for your interest in contributing! 🎉
The browser launch code is in:
src/browser/chrome.tsSpecifically, look at the
spawnOnce()function (around line 124-150 in the compileddist/browser/chrome.js). This is where Chrome args are constructed:For the proxy feature, you would:
proxy?: stringoption insrc/browser/config.ts(browser config schema)chrome.ts, add something like:Related files:
src/browser/config.ts- Browser configuration schemasrc/browser/chrome.ts- Chrome launch logicLet me know if you need any more guidance! 🐱
nehaksharma11 commentedon Feb 4, 2026
Thanks for the guidance!
I’ll work on adding the proxy option to the browser config and Chrome args and submit a PR shortly.
illusivejosiah commentedon Mar 2, 2026
This is implemented in #20578. Adds
browser.proxyconfig with HTTP/HTTPS/SOCKS5 support, authenticated proxies via CDP Fetch.authRequired, per-profile overrides, and credential isolation. Awaiting maintainer review.nehaksharma11 commentedon Mar 3, 2026
Thanks for the update!
Glad to see it implemented.
Looking forward to contributing to another issue 😊
steipete commentedon Apr 24, 2026
Closing this as implemented after Codex review.
Current
mainalready supports the requested browser proxy routing viabrowser.extraArgs, which accepts Chromium flags like--proxy-server=..., carries them through resolved browser config, and appends them to Chrome launch args. The same implementation is present in releasev2026.4.22.What I checked:
BrowserConfigincludesextraArgs?: string[]as additional Chrome launch arguments. (src/config/types.browser.ts:63, cec34821754a)ResolvedBrowserConfigincludesextraArgs, andresolveBrowserConfig()filters and returnscfg.extraArgs. (extensions/browser/src/browser/config.ts:72, cec34821754a)buildOpenClawChromeLaunchArgs()appendsresolved.extraArgsdirectly to Chromium's startup arguments, so--proxy-server=...is passed through. (extensions/browser/src/browser/chrome.ts:135, cec34821754a)browser.extraArgs: ["--proxy-server=http://127.0.0.1:7890"], and the browser launch-args test asserts that--proxy-server=http://localhost:3128is propagated. (src/config/config.schema-regressions.test.ts:208, cec34821754a)v2026.4.22tag contains the sameextraArgshandling in browser config, Chrome launch, and proxy regression coverage; diffing those files againstHEADshowed no change in the implementation path. (00bd2cf7a376)So I’m closing this as already implemented rather than keeping a duplicate issue open.
Review notes: reviewed against cec34821754a; fix evidence: release v2026.4.22, commit 00bd2cf7a376.