What is agent-browser?
Browser automation CLI for AI agents. Prefer local Open Design preview URLs unless the user explicitly asks for external browsing.
nexu-io/open-design
Browser automation CLI for AI agents. Use when the user needs to inspect, test, or automate browser behavior: navigating pages, filling forms, clicking buttons, taking screenshots, extracting page data, reading selected Open Design browser-tab context, testing web apps, dogfooding Open Design previews, QA, bug hunts, or reviewing app quality. Prefer local Open Design preview URLs unless the user explicitly asks for external browsing.
npx skills add https://github.com/nexu-io/open-design --skill "skills/agent-browser"Quick start
Install it or open the source, trigger it with a clear task, then follow the source workflow.
npx skills add https://github.com/nexu-io/open-design --skill "skills/agent-browser"Use agent-browser to help me with: [describe your task]. Before you begin, tell me what input you need, the steps you will follow, and the expected output.
5 key workflow steps, examples, and cautions are distilled below.
Continue to the workflowDirect answers
Browser automation CLI for AI agents. Prefer local Open Design preview URLs unless the user explicitly asks for external browsing.
It is relevant to workflows involving Testing, Engineering, Design, Operations.
SkillSignal detected this source-specific command: npx skills add https://github.com/nexu-io/open-design --skill "skills/agent-browser". Inspect the repository and command before running it.
The upstream source does not declare a dedicated Agent platform.
Static analysis detected exec-script, network signals. Review the cited source lines before installing; these signals are not a security audit.
This page combines upstream documentation with deterministic repository, quality, and static-risk signals. It is not described as a manual test or security review.
SkillSignal brief
Browser automation CLI for AI agents. Prefer local Open Design preview URLs unless the user explicitly asks for external browsing.
Useful in these contexts
Core capabilities
Distilled from the source
About 4 min · 9 sections
Use when the user needs to inspect, test, or automate browser behavior: navigating pages, filling forms, clicking buttons, taking screenshots, extracting page data, reading selected Open Design browser-tab context, test…
Verify agent-browser is installed.
Redirect upstream docs to temp files; quote only relevant lines.
Ensure CDP is reachable, starting Chrome with open -na if needed.
Connect with agent-browser connect http://127.0.0.1:9223.
Open the local preview URL.
Quality breakdown
Based on traceable docs and repository signals; stars are not treated as quality.
Compare before choosing
These links are selected from shared tasks, functions, stacks, platforms, and same-name variants. Compare the source owner, documentation, permissions, and maintenance signals.
Use when the user says "review the design", "check the UI", or wants a comprehensive UI/UX review. Uses a 7-phase methodology covering interaction, responsiveness, accessibility, and more.
Use when writing Playwright E2E tests — browser automation, visual regression testing, Page Objects, fixtures, and reliable test patterns.
Design AI evals that catch regressions before users do: rubrics, test cases, failure modes, acceptance gates, and AI-SPEC artifacts.
This skill enables visual inspection of websites running locally or remotely to identify and fix design issues. Triggers on requests like "review website design", "check the UI", "fix the layout", "find design problems". Detects issues with responsive design, accessibility, visual consistency, and layout breakage, then performs fixes at the source code level.
Use this skill to automate visual testing and UI interaction verification using browser automation after deploying features.
Use agent-browser for local Open Design preview validation: inspect rendered
state, click/type when requested, and capture one screenshot when visual evidence
matters. Keep the browser local-first unless the user explicitly asks for
external browsing.
When the run prompt contains selected workspace context, prefer the selected
browser tab URL/title as the target. Treat user phrases like "this page",
"the current browser", "right-side tab", "extract the logo", "get the palette",
"take an element screenshot", or "check OG/a11y" as requests about that selected
tab unless the user names another target.
Verify the CLI before doing any browser work:
command -v agent-browser
If missing, stop and tell the user to install it:
npm i -g agent-browser
agent-browser install
Do not replace the CLI with ad hoc browser scripts.
Never print full upstream guides into chat or tool output. Save them to temp files and extract only task-relevant lines:
AGENT_BROWSER_CORE="${TMPDIR:-/tmp}/agent-browser-core.$$.md"
agent-browser skills get core > "$AGENT_BROWSER_CORE"
rg -n "cdp|connect|snapshot|screenshot|click|type|wait|get title|get url" "$AGENT_BROWSER_CORE"
Use agent-browser skills get core --full only when needed, and redirect it to
a temp file the same way.
For selected Open Design browser tabs and browser-use/browser-harness-style tasks, collect the smallest useful evidence first:
agent-browser get title and agent-browser get url.agent-browser snapshot before any extraction or click.Save extracted design evidence as compact notes or assets in the project when the user is building from the reference. Do not paste full page HTML or large asset dumps into chat; summarize the relevant selectors, tokens, URLs, and screenshots.
agent-browser must attach to an existing CDP endpoint. Never run
agent-browser open before agent-browser connect; doing so can make the CLI
auto-launch Chrome and re-enter the crash path.
Do not run Open Design's own daemon CLI as a browser automation tool. Commands
such as od browser snapshot, daemon-cli.mjs browser snapshot, or
$OD_NODE_BIN $OD_BIN browser snapshot are not valid browser tools; they can be
misinterpreted as daemon startup and open an internal 127.0.0.1:<port> service
in the system browser. Use the external agent-browser CLI attached to CDP
instead.
Use this sequence:
if ! curl -fsS http://127.0.0.1:9223/json/version | rg -q webSocketDebuggerUrl; then
open -na "Google Chrome" --args \
--remote-debugging-port=9223 \
--user-data-dir=/tmp/od-agent-browser-chrome \
--no-first-run \
--no-default-browser-check
for i in {1..20}; do
if curl -fsS http://127.0.0.1:9223/json/version | rg -q webSocketDebuggerUrl; then
break
fi
sleep 0.5
done
fi
curl -fsS http://127.0.0.1:9223/json/version | rg webSocketDebuggerUrl
agent-browser connect http://127.0.0.1:9223
If CDP is still unavailable after polling, stop and ask the user to launch Chrome manually from Terminal:
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome \
--remote-debugging-port=9223 \
--user-data-dir=/tmp/od-agent-browser-chrome \
--no-first-run \
--no-default-browser-check
If Chrome exits before CDP is ready or reports DevToolsActivePort, report:
"Chrome crashed before CDP became available; start Chrome manually with
--remote-debugging-port and retry attach."
Lightpanda is optional. Do not try --engine lightpanda unless
command -v lightpanda succeeds.
Use a temp home and stable session:
export HOME=/tmp/agent-browser-home
export AGENT_BROWSER_SESSION=od-local-preview
When you start a temporary Chrome profile for this smoke path, close it before finishing the task. Prefer a shell trap around the whole smoke script:
CHROME_USER_DATA_DIR=/tmp/od-agent-browser-chrome
cleanup_agent_browser() {
pkill -f -- "--user-data-dir=${CHROME_USER_DATA_DIR}" 2>/dev/null || true
}
trap cleanup_agent_browser EXIT INT TERM
With the Open Design preview at http://127.0.0.1:17573/, run:
if ! curl -fsS http://127.0.0.1:9223/json/version | rg -q webSocketDebuggerUrl; then
open -na "Google Chrome" --args \
--remote-debugging-port=9223 \
--user-data-dir="$CHROME_USER_DATA_DIR" \
--no-first-run \
--no-default-browser-check
for i in {1..20}; do
if curl -fsS http://127.0.0.1:9223/json/version | rg -q webSocketDebuggerUrl; then
break
fi
sleep 0.5
done
fi
curl -fsS http://127.0.0.1:9223/json/version | rg webSocketDebuggerUrl
agent-browser connect http://127.0.0.1:9223
agent-browser open http://127.0.0.1:17573/
agent-browser get title
agent-browser get url
agent-browser snapshot
agent-browser screenshot /tmp/od-agent-browser.png
Expected success: title Open Design, current URL under 127.0.0.1:17573,
visible Open Design UI text in the snapshot, and a screenshot at
/tmp/od-agent-browser.png.
agent-browser is installed.open -na if needed.agent-browser connect http://127.0.0.1:9223.Load these only when directly needed, and always redirect to temp files:
agent-browser skills get electron > "${TMPDIR:-/tmp}/agent-browser-electron.$$.md"
agent-browser skills get slack > "${TMPDIR:-/tmp}/agent-browser-slack.$$.md"
agent-browser skills get dogfood > "${TMPDIR:-/tmp}/agent-browser-dogfood.$$.md"
agent-browser skills get vercel-sandbox > "${TMPDIR:-/tmp}/agent-browser-vercel-sandbox.$$.md"
agent-browser skills get agentcore > "${TMPDIR:-/tmp}/agent-browser-agentcore.$$.md"
agent-browser skills list