A lightweight CLI tool that automatically runs your dev server and opens localhost in Google Chrome Incognito mode — no cache conflicts, no login sessions, just a clean slate every time. Click here to visit the official website.
npm install -g incognito-dev
# or use without install
npx incognito-devnpm run dev, no more yarn dev!
Instead, just run:
incognito-devYour development server will automatically open in incognito mode - no more manual clicks or browser switching!
The tool will:
- Detect your package manager (npm, yarn, pnpm, or bun)
- Run the appropriate dev command (npm run dev, etc.)
- Detect the local URL from your dev server's output (e.g., localhost:3000, localhost:5173)
- Launch your browser in private/incognito mode with the local server URL
incognito-dev --browser edge # chrome (default), brave, edge
incognito-dev --helpBefore:
npm run dev
# Server starts, but you have to manually click the URL or copy-paste it
# ...and it opens in your current browser session with all cookies/historyAfter:
incognito-dev
# Everything happens automatically in incognito mode! ____ _ __ _____ __ __
/ _/___ _________ ____ _____ (_) /_____ / ___// /_____ ______/ /_
/ // __ \/ ___/ __ \/ __ `/ __ \/ / __/ __ \ \__ \/ __/ __ `/ ___/ __/
_/ // / / / /__/ /_/ / /_/ / / / / / /_/ /_/ / ___/ / /_/ /_/ / / / /_
/___/_/ /_/\___/\____/\__, /_/ /_/_/\__/\____/ /____/\__/\__,_/_/ \__/
/____/
╔═ Launch Summary ════════════════════════════╗
║ ║
║ Incognito Dev Mode ║
║ ║
║ ✔ Dev Command: npm run dev ║
║ ✔ Browser: Google Chrome (Incognito Mode) ║
║ ║
╚═════════════════════════════════════════════╝- Zero dependencies —
npx incognito-devstarts nearly instantly - Supports all major package managers:
npm,yarn,pnpm,bun - Opens a private/incognito window — no history, no saved logins
- Choose your browser: Chrome (default), Brave, or Edge via
--browser - Great for testing login pages or clean sessions
- Works with various dev servers (Vite, Next.js, Create React App, etc.)
- Node.js 20.12 or newer
- A
devscript must exist in yourpackage.json:
"scripts": {
"dev": "vite"
}MIT
Made with 🎲 by @clicelee
