bdg Browser Debugger

Drive Chrome step by step from the terminal and inspect the DOM, network, console, and page state.

Stars
★ 187
Last updated
6d ago v0.23.0
FARS reviewed
Nov 08, 2026
License
MIT
Primary language
TypeScript

At a glance

How it runs
CLIAgent plugin / skill
Works with
Universal · cross-platformCodex · Claude Code
Cost
Free, no paid service needed
Setup effort
Low · running in minutes
You'll need
Node.js 22.12+Chrome, Chromium or Microsoft EdgeShell / CLINetwork accessLocal filesystem
Typical use
A frontend developer investigating an unresponsive button can click it and inspect the resulting request, HTTP error, and console messages.
Not a fit if
  • Teams that need Firefox or Safari support
  • Users who need native PowerShell or Git Bash
  • Teams building long scripted test suites
Maintenance
Commits in the last 30 dayslast commit 2026-11-27latest release v0.23.0 (2026-11-04)
Source review
73/100 · Some gaps

What does this agent do, and when should you use it?

bdg is a Node.js CLI that keeps a Chromium browser session open in the background and lets users interact through separate shell commands. It provides commands for navigation, clicks, form filling, waiting for elements, inspecting DOM and styles, and reading network requests, cookies, and console messages. For DevTools features without a dedicated command, bdg cdp calls the Chrome DevTools Protocol directly. Output is compact, with --json available for machine processing or filtering through jq. It is built for coding agents such as Claude Code, Codex, and Gemini CLI, and can also be used directly from a developer's terminal; it requires Node.js 22.12+ and Chrome, Chromium, or Microsoft Edge.

After installing browser-debugger-cli, run bdg <URL> to start a browser session, then use bdg dom commands to navigate, click, fill, wait, and inspect elements. Use bdg network to view requests, headers, cookies, and HAR; bdg console to read page messages; and bdg eval to execute JavaScript. bdg cdp searches, describes, or invokes CDP methods, while the CLI also provides machine-readable help, JSON output, and actionable error suggestions. Sessions can run side by side under different names or attach to a browser with remote debugging enabled.

  1. A frontend developer investigating an unresponsive button can click it and inspect the resulting request, HTTP error, and console messages.
  2. A coding agent can fill a form and read the page response step by step without a Playwright script written in advance.
  3. A developer can inspect CSS rules, element layout, the accessibility tree, or page contrast issues.
  4. A tester can examine failed requests, HAR, cookies, or authorization headers to investigate login and API problems.
  5. A performance engineer can use CDP to read metrics, enable CPU throttling, or run heap and CPU profiling.

Key setup facts

Pulled from the install and usage notes below. The project README has the current values.

Install / run
  • npm install -g browser-debugger-cli
Runtime
Node.js 22.12+

How do you install or deploy this agent?

Requires Node.js 22.12+ and Chrome, Chromium, or Microsoft Edge. Install globally with npm:

npm install -g browser-debugger-cli

To install its skill for agents such as Claude Code, Codex, and Gemini CLI:

bdg install-skill

For Claude Code only:

bdg install-skill --claude

Start a new agent session after installing the skill. The documentation does not require an API key.

How do you use this agent?

Start a page and leave the browser session running:

bdg localhost:3000

Then interact and inspect results step by step:

bdg dom fill 'input[name="q"]' "shoes"
bdg dom click 'button:has-text("Search")'
bdg dom wait "#result" --visible
bdg network list --preset errors
bdg console
bdg stop

Use bdg cdp <method-name> to call a CDP method, for example bdg cdp Network.getCookies. Add --json for JSON output.

Safety boundaries, hardening & integrations

Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.

Declared capability surface (blast radius)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

What are this agent's strengths and limitations?

Pros
  • Commands drive a persistent browser session one step at a time, so an agent can adapt to each returned page result.
  • bdg cdp can call the Chrome DevTools Protocol for DevTools capabilities beyond the built-in commands.
  • Includes inspection for network, console, cookies, HAR, DOM, CSS, accessibility, and performance.
  • Help, command descriptions, method search, and error suggestions are designed for machine-driven agent use.
Limitations
  • Requires Node.js 22.12+ and a Chromium-based browser; Firefox and Safari are unsupported.
  • Native PowerShell and Git Bash are not supported; Windows users need WSL.
  • Playwright or Puppeteer is a better fit for long scripted test suites.
  • The README's benchmark is a single five-task run from November 2025, and it notes that both tools have changed since.

How does this agent compare with similar options?

Compared with Playwright and Puppeteer, bdg is aimed at step-by-step interaction with and debugging of live pages; the README points to those tools for long scripted test suites. Compared with Chrome DevTools MCP, bdg runs as CLI commands and does not require MCP; the README cites existing MCP setups and Lighthouse audits, performance trace insights, and heap snapshot analysis as reasons to choose MCP. The reported benchmark was one five-task run in November 2025, not a general current performance claim.

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
bdg Browser Debugger This agent 73 · Some gaps CLIFree ★ 187 6d ago TypeScript Codex · Claude Code
Chrome DevTools MCP 77 · Some gaps MCP serverFree ★ 60k 1d ago TypeScript Codex · Claude Code
JS Reverse MCP 72 · Some gaps MCP serverFree ★ 3.1k 3mo ago TypeScript Codex · Claude Code
browser-control 55 · Major gaps CLIFree ★ 3.2k 3mo ago Rust —

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Some gaps
73/ 100 5-point scale 3.7 / 5
Trust 12/29
Reliability 11/14
Adaptability 16/18
Convention 16/18
Effectiveness 12/13
Verifiability 6/8
Why each dimension lost points
Trust12 / 29 · 2.1/5

The source describes a CLI that drives Chrome/CDP through a local Unix socket, and the skill says the browser session remains open, making the purpose and local data flow partly visible. The packet does not show permission isolation, sensitive-value redaction, or confirmation before use. The README demonstrates reading Authorization, cookies, and an access token, then copying cookies into curl, so least privilege, confirmation, sensitive-data handling, and external effects receive only partial credit. Attach is described as prompting in Chrome and stop can end a session, but recovery is limited. package.json names an author, while publisher identity remains unknown, so attribution evidence is limited.

Reliability11 / 14 · 3.9/5

CLAUDE.md specifies a consistent JSON envelope, exit codes, and structured errors; the README shows recovery hints, and the entry source describes handling CLI-load failures and interrupts. README examples, the skill, and the product description are broadly consistent, though this sample cannot verify every claim. Dependencies have package names and version ranges, and CI/release workflows describe installation, build, and checks; these do not establish actual availability or a complete dependency-risk review.

Adaptability16 / 18 · 4.4/5

The README and bdg skill explicitly target coding agents and developers and cover debugging, interaction, telemetry, and automation, while identifying alternatives and boundaries including Playwright/Puppeteer, MCP, Firefox/Safari, and platform support. The skill gives fairly specific activation scenarios, but still triggers broadly on browser debugging and scraping needs and does not clearly bound access to sensitive sessions.

Convention16 / 18 · 4.4/5

The README, CLI documentation entry point, and skill provide clear information architecture, installation requirements, quick examples, and alternatives. The MIT license is included in full. The package has a version, and the README dates its benchmark to 0.6.x and notes it needs updating, but the packet contains no formal changelog. Contribution routes, author metadata, and a release workflow are visible, though ongoing maintenance responsibility and support commitments are not fully clear.

Effectiveness12 / 13 · 4.6/5

Command-based interaction, compact JSON output, machine-readable help, recovery hints, and inspection without screenshots offer directly usable browser-debugging capabilities for agents. Examples and a benchmark provide some evidence of value. Cost-benefit does not receive full marks because the benchmark covers only one run of five tasks and the README acknowledges that the compared tool has since changed, limiting the relevance of the comparison.

Verifiability6 / 8 · 3.8/5

The README gives concrete commands for core claims, the skill provides workflow examples, and package.json and source support the product form and some technical conventions. The README also limits its comparative performance claim to an older version and a single run. The CI file describes build and check workflows, but static evidence cannot show that they passed; the README and skill corroborate one another, but independent corroboration is limited.

Risks and how to mitigate them
  • bdg can access and print cookies, Authorization request headers, and page storage tokens from a browser session. Confirm that the selected Chrome profile and page are appropriate to expose to the shell and agent.
  • This review uses a limited static file sample and did not execute the program or verify CI. The README benchmark is a one-run comparison against older versions and is not a current performance guarantee.
Evidence confidence: Low Reviewed Nov 08, 2026 Reviewed revision f7f388690ef9 New commits since this review; the score may not cover them
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/browser-debugger-cli.svg)](https://followagents.com/en/agents/browser-debugger-cli)
<a href="https://followagents.com/en/agents/browser-debugger-cli"><img src="https://followagents.com/badge/browser-debugger-cli.svg" alt="FARS review"></a>

Recent releases

Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.

  1. v0.23.0
    Release notes excerpt
    dom fill now judges what the page did with your value the same way right after the fill and 2 s later: formatting passes with Page shows:, and a value the page throws away (restored, blanked or replaced with unrelated text) fails with exit 90. Also new: eval --raw, a page navigate hint when a session is already running, and suggestions on attach and screenshot errors. Highlights …
    View on GitHub ↗
  2. v0.22.0
    Release notes excerpt
    Three false verdicts found by a red-team round of agents (#864) are fixed: a navigation Chrome refused, a fill the page undid a moment later, and a click that only changed a control's value no longer report success or "no visible effect". Highlights - A redirect to an app or script URL fails the navigation (#899, #890). When a server redirects to myapp://…, javascript: or view-source:, bdg <url>, page navigate, page reload, dom click on a link and dom submit print Could not load <url> (redirected to <target>): net::ERR_ABORTED and exit 80, with a suggestion that the …
    View on GitHub ↗
  3. v0.21.0
    Release notes excerpt
    v0.21.0: fewer false successes, logpoints, a11y audit Fewer false successes: a page that failed to load, an action whose navigation failed, a fill the page didn't keep and an eval on a paused page now say so, with an exit code a script can check. New: logpoints (bdg debug), an accessibility audit, and request timing phases. Changed behaviour …
    View on GitHub ↗

FAQ

Do I need a paid model or API key to use it?
The README requires no model, API key, or paid service. bdg runs as a standalone CLI; using it through a coding agent is optional.
Which browsers can it drive?
It supports Chrome, Chromium, and Microsoft Edge. Firefox and Safari are unsupported because bdg uses the Chrome DevTools Protocol.
Can I use an already logged-in browser session?
Yes. bdg attach can list and attach to tabs in a browser with remote debugging enabled without reloading the page; Chrome asks you to allow each connection.
Can it replace a Playwright test suite?
The README positions bdg for step-by-step interaction with and understanding of live pages, and recommends Playwright or Puppeteer for long scripted test suites.
Was this page helpful?
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related concepts