Chrome Flags Reference

Chrome command line switches and startup flags for automation, headless mode, and debugging.

--proxy-auto-detect

What does --proxy-auto-detect do?

Forces proxy auto-detection.

Usage

CLILaunch Chrome with --proxy-auto-detect using CLI

chrome --proxy-auto-detect

PuppeteerLaunch Chrome with --proxy-auto-detect using Puppeteer

const browser = await puppeteer.launch({
  args: ['--proxy-auto-detect']
});

PlaywrightLaunch Chrome with --proxy-auto-detect using Playwright

const browser = await chromium.launch({
  args: ['--proxy-auto-detect']
});

SeleniumLaunch Chrome with --proxy-auto-detect using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--proxy-auto-detect')

driver = webdriver.Chrome(options=options)