Chrome Flags Reference

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

--incognito

What does --incognito do?

Causes the initial browser opened to be in incognito mode. Further browsers may or may not be in incognito mode; see `IncognitoModePrefs`.

Usage

CLILaunch Chrome with --incognito using CLI

chrome --incognito

PuppeteerLaunch Chrome with --incognito using Puppeteer

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

PlaywrightLaunch Chrome with --incognito using Playwright

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

SeleniumLaunch Chrome with --incognito using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--incognito')

driver = webdriver.Chrome(options=options)