Chrome Flags Reference

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

--app-mode-auth-code

What does --app-mode-auth-code do?

Value of GAIA auth code for --force-app-mode.

Usage

CLILaunch Chrome with --app-mode-auth-code using CLI

chrome --app-mode-auth-code

PuppeteerLaunch Chrome with --app-mode-auth-code using Puppeteer

const browser = await puppeteer.launch({
  args: ['--app-mode-auth-code']
});

PlaywrightLaunch Chrome with --app-mode-auth-code using Playwright

const browser = await chromium.launch({
  args: ['--app-mode-auth-code']
});

SeleniumLaunch Chrome with --app-mode-auth-code using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--app-mode-auth-code')

driver = webdriver.Chrome(options=options)