Password proxy in undetected-chromedriver
undetected-chromedriver has no setting of its own for a proxy login. Here is a working workaround with a local relay, and its limits.

Why use a proxy in undetected-chromedriver
undetected-chromedriver is a Selenium wrapper that launches Chrome with patches against automation detection. The proxy is passed with Chrome's --proxy-server flag, and Chrome doesn't take a login and password from that flag. The author names nodriver as the package's successor.
An HTTP proxy through a local relay is the easiest: Chrome talks to 127.0.0.1 without a password and the relay adds the login. Chrome can't do SOCKS5 with a password directly, but it works through the relay too. For flows with an account login take a sticky session.
Residential
from $0.6 / GBHome ISP addresses. The main choice for accounts and protected sites.
VIP
$2 / GBHand-picked clean IPs, faster and more stable than regular residential.
Mobile
$4 / GBCarrier IPs, for platforms that check addresses strictly.
Step-by-step setup
Button names are given exactly as they appear in undetected-chromedriver.
Install the packages
Run pip install undetected-chromedriver pproxy. pproxy is a separate relay utility, unrelated to undetected-chromedriver.
Start the relay
In a separate terminal: pproxy -l http://127.0.0.1:8080 -r "http://HOST:PORT#LOGIN:PASSWORD". It accepts requests without a password and forwards them to our proxy with the login.
Pass the proxy to Chrome
Add --proxy-server=http://127.0.0.1:8080 to uc.ChromeOptions(). Don't put the login in this flag.
Run the script
Run python ip.py. Chrome opens https://api.ipify.org?format=json.
Check the IP and WebRTC
The console shows the proxy IP. Then open /en/tools/webrtc-leak/ to make sure the real address doesn't leak.
Code example
Put in your own HOST, PORT, LOGIN and PASSWORD from the bot or the dashboard.
# Terminal 1: pip install pproxy
# pproxy -l http://127.0.0.1:8080 -r "http://HOST:PORT#LOGIN:PASSWORD"
# Terminal 2: this script
import undetected_chromedriver as uc
from selenium.webdriver.common.by import By
options = uc.ChromeOptions()
options.add_argument("--proxy-server=http://127.0.0.1:8080")
driver = uc.Chrome(options=options)
try:
driver.get("https://api.ipify.org?format=json")
print(driver.find_element(By.TAG_NAME, "body").text)
finally:
driver.quit()
Tested by running it
We ran this example ourselves: Python 3.13.18 · undetected-chromedriver 3.5.5 · selenium 4.53.0 · pproxy 2.7.9 · Chrome for Testing 153.0.8010.12. Real output below, IP hidden.
$ python ip.py {"ip":"proxy IP"}
And this is the response when the password is wrong:
$ python ip.py
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: net::ERR_TUNNEL_CONNECTION_FAILED
(Session info: chrome=153.0.8010.12)Check that it works
Open these pages through undetected-chromedriver with the proxy on.
Common errors
The issues people most often bring to support.
Chrome shows a proxy login promptThe login is in --proxy-server. Chrome ignores it: keep the relay address there and give the login to pproxy.
ERR_PROXY_CONNECTION_FAILEDThe relay isn't running or listens on another port. Check the pproxy terminal.
ERR_NO_SUPPORTED_PROXIES with socks5:// and a passwordChrome doesn't support SOCKS5 with auth. Use the relay: pproxy -r "socks5://HOST:PORT#LOGIN:PASSWORD".
session not created: This version of ChromeDriver only supports Chrome version ...The driver version doesn't match Chrome. Update the package or pass version_main with your Chrome version number.
FAQ
Why not an auth extension?
The --load-extension flag is disabled in recent branded Chrome builds, so homemade login extensions stopped working. The relay doesn't depend on that.
Should I switch to nodriver?
For a new project, yes. The undetected-chromedriver author calls nodriver the official successor, and it supports password proxies out of the box.
Can I do without the relay?
Only if the proxy needs no login. For a password proxy Chrome needs an external way to answer the auth request.
