Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By vrev0.2.0MITIn 1 marketplace
Drives a running Firefox from the command line: list tabs, run JavaScript, take screenshots, and read console output over WebDriver BiDi. Its README calls it a test tool and says Firefox sets navigator.webdriver=true, which anti-bot systems detect.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
firefox, webdriver-bidi, browser-automation, browser-testing, screenshots, console-logs, cli, javascript-eval ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Control Firefox via WebDriver BiDi from the command line. Python CLI, no geckodriver, direct WebSocket to Firefox's native BiDi implementation.
Test tool — Firefox sets navigator.webdriver=true on any remote debugging session. Every anti-bot system detects this. For production agent workflows, use Chrome CDP tooling instead.
Once connected to Firefox:
JavaScript evaluation covers anything the DOM helpers don't:
# Extract structured data
./firefoxctl.py CONTEXT eval "({title: document.title, url: location.href})"
# Await async operations (top-level await supported)
./firefoxctl.py CONTEXT eval "await fetch('/api').then(r => r.json())"
Firefox made three decisions that kill it for agent browser automation:
navigator.webdriver = true — Firefox sets this flag on any remote debugging session (Bug 1719505, Firefox 101+). Every anti-bot system checks this. Chrome CDP does not set it.
No extension-based automation — Chrome has chrome.debugger, which lets extensions get full CDP access without opening a debug port. Firefox has no equivalent API — no browser.debugger, nothing.
Launch-time only — --remote-debugging-port must be set when Firefox starts. Chrome M144+ lets you enable debugging at runtime via chrome://inspect/#remote-debugging. Firefox has no runtime toggle.
The BiDi protocol itself is solid — W3C standard, clean WebSocket API, native Firefox implementation with no intermediary. Mozilla just surrounded it with restrictions that make it useless for the "automate your real browser" use case that agents need.
claude plugin marketplace add vre/flow-state
claude plugin install firefox-control@flow-state
Tell your LLM to install the skill from https://github.com/vre/flow-state/firefox-control
cd flow-state/firefox-control
chmod +x firefoxctl.py
./firefoxctl.py --help
Requires uv — the script's shebang handles dependencies automatically.
firefox --remote-debugging-port 9223
The daemon starts automatically on first command. No explicit start needed.
# If port differs from default (9222):
./firefoxctl.py --port 9223 list
The daemon holds the BiDi WebSocket open so each CLI call is instant — no connection overhead per command. Each CLI invocation sends one request to the daemon via Unix socket and exits; the caller holds no persistent state. The daemon shuts down after 5 minutes of inactivity. Socket: /tmp/firefoxctl-<uid>.sock. You can also start it explicitly with ./firefoxctl.py start.
# List open tabs
./firefoxctl.py list
# Open a new tab
./firefoxctl.py open https://example.com
# Check daemon status
./firefoxctl.py status
# Run JavaScript (use context ID from list output)
./firefoxctl.py CONTEXT eval "document.title"
# Take a screenshot
./firefoxctl.py CONTEXT screenshot -o page.png
# Monitor console output
./firefoxctl.py CONTEXT console-tail --for 30
# DOM helpers
./firefoxctl.py CONTEXT click "button.submit"
./firefoxctl.py CONTEXT get-text h1
./firefoxctl.py CONTEXT type "input[name=q]" "search term"
# JSON output for scripting
./firefoxctl.py --json list
# Or use netcat directly
echo '{"cmd":"list"}' | nc -U /tmp/firefoxctl-$(id -u).sock
./firefoxctl.py stop
./firefoxctl.py bidi browser.getClientWindows
./firefoxctl.py bidi session.status
Firefox (--remote-debugging-port 9223)
└── BiDi WebSocket: ws://127.0.0.1:9223/session
↕
firefoxctl daemon (Unix socket: /tmp/firefoxctl-{uid}.sock)
↕
firefoxctl CLI / LLM agent / echo '{"cmd":"list"}' | nc -U <socket>
--json for machine-parseable outputBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub vre/flow-state --plugin firefox-controlPlugins from other owners that cover similar ground