Overview
Thestart command (default command when no subcommand is specified) launches a Chrome browser instance and starts collecting telemetry data including DOM, network requests, and console messages.
Syntax
Target URL to navigate to. Supports:
- Full URLs:
https://example.com - Domains:
example.com(prependshttps://) - Localhost:
localhost:3000(prependshttp://) - IP addresses:
192.168.1.100:8080
Running
bdg without a URL displays comprehensive help with agent discovery resources and common task examples.Options
Basic Options
Chrome debugging port for CDP connection
Auto-stop session after specified seconds (1-3600). Unlimited if not specified.
Custom Chrome profile directory. Defaults to session directory (
~/.bdg/chrome-profile/).Data Collection Options
Include all network data (disable filtering of tracking/analytics requests)
Maximum response body size in megabytes (1-100). Bodies larger than this are truncated.
Use compact JSON format (no indentation) for output files. Reduces file size by ~30%.
Chrome Options
Run Chrome in headless mode. Auto-enabled if no display server detected (X11/Wayland).
Show browser window (disable headless mode)
Connect to existing Chrome instance via WebSocket URL (skips Chrome launch)
Custom Chrome flags (space-separated). Merged with
BDG_CHROME_FLAGS environment variable.Output Options
Quiet mode - minimal output for AI agents. Suppresses verbose landing page.
Examples
Basic Session
Headless Mode
Custom Configuration
Connect to Existing Chrome
Custom Chrome Flags
Output
Success
On successful start, displays a landing page with available commands:--quiet to suppress this output:
Error
If the URL is invalid:Session Files
Session data is stored in~/.bdg/:
- daemon.pid - Daemon process ID
- daemon.sock - Unix socket for IPC
- session.meta.json - Session metadata (Chrome PID, CDP port, target info)
- chrome-profile/ - Chrome user data directory
- session.json - Final output (written only on
bdg stop)
Data stays in memory during the session. Only written to
session.json on stop.Exit Codes
Session started successfully
Invalid URL format or unreachable URL
Session already exists (stop existing session first)
Chrome browser failed to launch
Failed to connect to Chrome DevTools Protocol
CDP connection or page load timed out
Related Commands
bdg status
Check session status and statistics
bdg stop
Stop session and save telemetry data
bdg cleanup
Clean up stale session files
bdg peek
Preview collected data in real-time

