Chrome Flags Reference

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

--no-sandbox

What does --no-sandbox do?

Disables the sandbox for all process types that are normally sandboxed. Meant to be used as a browser-level switch for testing purposes only.

Usage

CLILaunch Chrome with --no-sandbox using CLI

chrome --no-sandbox

PuppeteerLaunch Chrome with --no-sandbox using Puppeteer

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

PlaywrightLaunch Chrome with --no-sandbox using Playwright

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

SeleniumLaunch Chrome with --no-sandbox using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--no-sandbox')

driver = webdriver.Chrome(options=options)