Chrome Flags Reference

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

--autofill-api-key

What does --autofill-api-key do?

Sets the API key that will be used when calling Autofill API instead of using Chrome's baked key by default. You can use this to test new versions of the API that are not linked to the Chrome baked key yet.

Usage

CLILaunch Chrome with --autofill-api-key using CLI

chrome --autofill-api-key

PuppeteerLaunch Chrome with --autofill-api-key using Puppeteer

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

PlaywrightLaunch Chrome with --autofill-api-key using Playwright

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

SeleniumLaunch Chrome with --autofill-api-key using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--autofill-api-key')

driver = webdriver.Chrome(options=options)