Zero-dependency browser automation from your terminal. One command, full control.
npx cdpilot launch # Start browser with CDP
npx cdpilot go https://example.com
npx cdpilot shot # Take screenshotNo config files. No boilerplate. Just npx and go.
AI agents and developers need browser control that just works:
- Zero config ā
npx cdpilot launchstarts an isolated browser session - Zero dependency ā No Puppeteer, no Playwright, no Selenium. Pure CDP over HTTP
- 40+ commands ā Navigate, click, type, screenshot, network, console, accessibility, and more
- AI-agent friendly ā Designed for Claude, GPT, Gemini, and any LLM tool-use workflow
- Isolated sessions ā Your personal browser stays untouched. cdpilot runs in its own profile
- Visual feedback ā Green glow overlay, cursor visualization, click ripples, and keystroke display keep you informed during automation
- Multi-project isolation ā Each project gets its own browser instance and port automatically, no conflicts
- AI control warning ā Red toast notification appears when you hover during active automation
- Privacy-first ā Everything runs locally. No data leaves your machine
cdpilot picks the right browser for what you're doing. auto (default) is a
two-axis policy ā extension workload Ć platform stability:
| Your workload | Auto-pick order |
|---|---|
Has extensions registered (ext-install) |
vivaldi ā brave ā edge ā chromium ā chrome |
| No extensions (pure automation) | chrome ā vivaldi ā edge ā chromium ā brave |
Override anytime:
cdpilot browser # show current pick + reason
cdpilot browser vivaldi # pin to Vivaldi
cdpilot browser auto # restore smart defaultWhy the split?
- Chrome 147+ silently drops
--load-extensionfor unpacked extensions (no error, no warning). Verified āchrome://extensionsshows 0 items. - Vivaldi, Brave, Edge, Chromium honor
--load-extension(tested). - On macOS 26 (Tahoe) Brave 1.89 crashes deterministically at ~7min uptime (SIGTRAP in ThreadPoolForegroundWorker). cdpilot detects the OS and demotes Brave automatically until a fixed Brave release ships.
Each browser gets its own isolated profile (~/.cdpilot/.../profile-vivaldi
etc.) so switching never causes prefs corruption.
# Use directly (no install needed)
npx cdpilot <command>
# Or install globally
npm i -g cdpilotRequirements: Node.js 18+ and one of: Brave Browser, Google Chrome, or Chromium.
npx cdpilot setup # Auto-detect browser, create isolated profile
npx cdpilot launch # Start browser with CDP enabled
npx cdpilot status # Check connectioncdpilot go <url> # Navigate to URL
cdpilot content # Get page text content
cdpilot html # Get page HTML
cdpilot shot [file] # Take screenshot (PNG)
cdpilot pdf [file] # Save page as PDFcdpilot click <selector> # Click element
cdpilot type <selector> <text># Type into input
cdpilot fill <selector> <val> # Set input value (React-compatible)
cdpilot submit <form> # Submit form
cdpilot hover <selector> # Hover element
cdpilot keys <combo> # Keyboard shortcut (ctrl+a, enter, etc.)
cdpilot scroll-to <selector> # Scroll element into view
cdpilot drag <from> <to> # Drag and dropcdpilot console [url] # Capture console logs
cdpilot network [url] # Monitor network requests
cdpilot debug [url] # Full diagnostic (console+network+perf+shot)
cdpilot perf # Performance metrics
cdpilot eval <js> # Execute JavaScriptcdpilot tabs # List open tabs
cdpilot new-tab [url] # Open new tab
cdpilot switch-tab <id> # Switch to tab
cdpilot close-tab [id] # Close tab
cdpilot close # Close active tabcdpilot throttle slow3g # Simulate slow 3G
cdpilot throttle fast3g # Simulate fast 3G
cdpilot throttle offline # Go offline
cdpilot throttle off # Back to normal
cdpilot proxy <url> # Set proxy
cdpilot proxy off # Remove proxycdpilot intercept block <pattern> # Block requests
cdpilot intercept mock <pattern> <json-file> # Mock responses
cdpilot intercept headers <pattern> <header:value> # Add headers
cdpilot intercept list # List active rules
cdpilot intercept clear # Clear all rulescdpilot emulate iphone # iPhone emulation
cdpilot emulate ipad # iPad emulation
cdpilot emulate android # Android emulation
cdpilot emulate reset # Back to desktopcdpilot geo istanbul # Set location to Istanbul
cdpilot geo london # Set location to London
cdpilot geo 41.01 28.97 # Custom coordinates
cdpilot geo off # Remove overridecdpilot a11y # Full accessibility tree
cdpilot a11y summary # Quick summary
cdpilot a11y find <role> # Find elements by ARIA rolecdpilot session # Current session info
cdpilot sessions # List all sessions
cdpilot session-close [id] # Close sessioncdpilot cookies [domain] # List cookies
cdpilot storage # localStorage contents
cdpilot upload <sel> <file> # Upload file to input
cdpilot multi-eval <js> # Execute JS in all tabs
cdpilot headless [on|off] # Toggle headless mode
cdpilot frame list # List iframes
cdpilot dialog auto-accept # Auto-accept dialogs
cdpilot permission grant geo # Grant geolocationZero-dependency anti-fingerprint layer ā patches navigator.webdriver,
chrome.runtime, plugins (proper PluginArray inheritance), WebGL
vendor/renderer, permissions, hardware concurrency, and the Worker
constructor. Injected via Page.addScriptToEvaluateOnNewDocument before
any page script runs. Disabled by default; opt-in.
cdpilot stealth on # enable fingerprint patches (opt-in)
cdpilot stealth off # disable (default)
cdpilot stealth status # show which patches are applied
cdpilot captcha-check # JSON detection of Turnstile/hCaptcha/reCAPTCHA/
# DataDome/PerimeterX/Arkose/GeeTest. Exit 0/3
cdpilot captcha-wait [sec] # block until user solves (interactive)
# or poll with JSON stream (non-interactive)Verified against public bot-detection panels:
- bot.sannysoft.com: 24/24 PASS (WebDriver, Chrome obj, Plugins as PluginArray, WebGL, PHANTOM_, HEADCHR_, SELENIUM_DRIVER)
- bot.incolumitas.com intoli: 6/6 OK ā new-tests: 6/7 OK (one FAIL = pure CDP presence, cannot be JS-patched)
- nowsecure.nl (Cloudflare full challenge): passed
- arh.antoinevastel.com/areyouheadless: "You are not Chrome headless"
cdpilot browser [name|auto] # workload-aware browser selection
cdpilot health # JSON: alive, port, tabs, browser, today's crashescdpilot health is designed for shell watchdogs:
until cdpilot health >/dev/null; do cdpilot launch; sleep 2; doneSurfaces today's Brave crash count from ~/Library/Logs/DiagnosticReports/
on macOS ā spot degradation before your automation silently stalls.
cdpilot is designed to be called by AI agents as a tool:
{
"mcpServers": {
"cdpilot": {
"command": "npx",
"args": ["cdpilot", "mcp"]
}
}
}{
"name": "browser",
"description": "Control a browser via CDP",
"parameters": {
"command": "go https://example.com"
}
}import subprocess
result = subprocess.run(["npx", "cdpilot", "go", url], capture_output=True, text=True)
print(result.stdout)| Variable | Default | Description |
|---|---|---|
CDP_PORT |
9222 |
CDP debugging port |
CHROME_BIN |
Auto-detect | Browser binary path |
CDPILOT_PROFILE |
~/.cdpilot/profile |
Isolated browser profile |
BROWSER_SESSION |
Auto | Session identifier |
āāāāāāāāāāāāāāā HTTP/WebSocket āāāāāāāāāāāāāāāā
ā cdpilot ā āāāāāāāāāāāāāāāāāāāāāāāāŗ ā Brave/Chrome ā
ā (CLI) ā Chrome DevTools ā (CDP mode) ā
āāāāāāāāāāāāāāā Protocol āāāāāāāāāāāāāāāā
ā ā
ā Zero dependencies ā Isolated profile
ā Pure HTTP + WebSocket ā Separate from your
ā ~2500 lines, single file ā personal browser
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
No Puppeteer. No Playwright. No Selenium. Just direct CDP communication.
| Feature | cdpilot | Puppeteer | Playwright | Selenium |
|---|---|---|---|---|
| Install size | ~50KB | 400MB+ | 200MB+ | 100MB+ |
| Dependencies | 0 | 50+ | 30+ | Java + drivers |
| Setup time | instant | minutes | minutes | painful |
| AI-agent ready | yes | manual | manual | manual |
| Browser download | no | yes (Chromium) | yes (3 browsers) | no |
| CLI-first | yes | no (library) | no (library) | no |
| MCP support | yes | no | no | no |
cdpilot CLI is and will always be free and open source (MIT).
Future paid offerings:
- cdpilot cloud ā Remote browser instances, no local browser needed
- Team dashboard ā Shared sessions, audit logs, usage analytics
- Priority support ā Direct help for enterprise integrations
- Isolated browser profile ā cdpilot runs in
~/.cdpilot/profile, separate from your daily browser. Your cookies, passwords, and history are never exposed. - No arbitrary file access ā MCP screenshot filenames are sanitized and restricted to the screenshots directory. Path traversal is blocked.
- Safe CSS selectors ā All selectors passed to
querySelectorare JSON-escaped to prevent injection. - No network exposure ā CDP listens on
127.0.0.1only. Remote connections are not possible by default. - No dependencies ā Zero npm/Python runtime dependencies means zero supply-chain attack surface.
Found a vulnerability? Please email the maintainer directly instead of opening a public issue.
The only browser MCP with built-in test assertions. Here's what we've shipped and what's next:
- 60+ CLI commands (navigate, click, fill, screenshot, PDF, console, network...)
- MCP server for AI agent integration (Claude Code, Cursor, etc.)
- 10 built-in test assertions ā assert, assert-url, assert-title, assert-count, assert-value, assert-attr, assert-visible/hidden, wait-for, check (batch), screenshot-diff
- Accessibility tree snapshot (
a11y-snapshot) ā structured data with @ref references, 500x fewer tokens than screenshots - Token-efficient screenshots ā element-level crop (13x smaller), JPEG quality control, format selection
- Vision fallback (
describe) ā a11y + screenshot + text in one call - Annotated screenshots ā @N badge overlays on interactive elements
- Auto-wait ā MutationObserver-based, 5s automatic element waiting
- Batch commands ā pipe JSON arrays via stdin for multi-step automation
- Visual feedback system (persistent green glow, cursor, ripples, keystroke display)
- AI control warning toast (red warning when user interacts during automation)
- Multi-project browser isolation (each project gets its own port + profile)
- Pre-flight wizard (auto-installs dependencies on first run)
- Persistent MCP glow (stays on during entire AI session, like Claude's orange glow)
- DevExtension system (native JS injection without browser store)
- Smart commands ā
smart-click,smart-fill,smart-selectā interact by visible text, no CSS selectors needed, no LLM required - Data extraction (
extract) ā structured DOM data in text, JSON, or list format - Page observation (
observe) ā list all interactive elements with available actions - Script runner (
run) ā execute.cdpscript files with pass/fail reporting
- iframe & Shadow DOM support ā interact with elements inside iframes and shadow roots
- Session recording & replay ā record browser sessions and replay them deterministically
- Stealth mode (Pro) ā human-like mouse/typing, anti-fingerprint, CAPTCHA solving
- cdpilot Cloud ā hosted browser sessions API, REST + WebSocket MCP endpoint
- Chrome Extension ā use cdpilot from any browser without CLI
- Performance audit ā Core Web Vitals (LCP, CLS, INP) via CDP Performance domain
- WCAG accessibility audit ā automated a11y compliance reporting
- Claude Code Skill mode ā run as a
.claude/skills/skill in addition to MCP
Have an idea? Open an issue or submit a PR!
git clone https://github.com/mehmetnadir/cdpilot.git
cd cdpilot
npm install
npm testPRs welcome! Please read CONTRIBUTING.md first.
MIT ā do whatever you want.
Built with the cdpilot mindset: one tool, one job, done right.

