/openbrowser:setupfrom openbrowser
Installs, configures, repairs, or verifies OpenBrowser including CLI, MCP server, browser profiles, and plugin skills. Run once per machine or project.
Ships in openbrowser. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use this skill once per machine or project. It installs the CLI and browser, configures the MCP server and profiles, installs the plugin skills, and verifies a real browser session.
uv, then pipx, then pip.openbrowser-ai -c for CLI verification and openbrowser-ai --mcp for the installed MCP server.context_id. Call close_context when finished. The stateless web_search tool needs no context and does not start a browser.openbrowser-ai --version 2>/dev/null || true
openbrowser-ai web-search --help 2>/dev/null || true
command -v uv || true
command -v pipx || true
python3 --version
Run openbrowser-ai web-search --help. A successful command confirms the native web-search path. When the command fails, upgrade the CLI.
Always run openbrowser-ai install to repair Chromium.
If Python is below 3.12, install a supported Python. Then repeat this step.
Preferred:
uv tool install --upgrade openbrowser-ai
With optional providers and the interactive CLI:
uv tool install --upgrade "openbrowser-ai[all]"
Fallbacks:
pipx install openbrowser-ai || pipx upgrade openbrowser-ai
python3 -m pip install --user --upgrade openbrowser-ai
Install script alternatives:
# macOS / Linux
curl -fsSL https://raw.githubusercontent.com/billy-enrizky/openbrowser-ai/main/install.sh | sh
# Windows PowerShell
irm https://raw.githubusercontent.com/billy-enrizky/openbrowser-ai/main/install.ps1 | iex
Pass --no-browser to either installer to skip Chromium installation. This installer flag is separate from the scrape --no-browser mode. If install.sh falls back to pip, pass --local to request a user install.
Install or repair Chromium:
openbrowser-ai install
openbrowser-ai install uses uvx playwright install chromium. If uvx is unavailable, install uv first or run python3 -m playwright install chromium with the interpreter that owns the OpenBrowser install. The MCP command also uses openbrowser-ai --mcp, so it does not require uvx at runtime.
The base OpenBrowser package includes the DDGS client at openbrowser.web_search. Do not install DDGS separately and do not shell out to a ddgs CLI. The web-search command does not start a browser.
OpenBrowser 0.1.63 provides the canonical web-search command. To make it available in your shell, run uv tool install --upgrade openbrowser-ai. For a one-off run, use uvx openbrowser-ai web-search "OpenBrowser MCP docs".
openbrowser-ai web-search "OpenBrowser MCP docs"
openbrowser-ai web-search "OpenBrowser MCP docs" --json --output web-search-results.json
openbrowser-ai web-search "OpenBrowser MCP docs" --urls-only --output web-search-urls.txt
openbrowser-ai scrape --urls-file web-search-urls.txt --no-browser --output scraped-pages.jsonl --output-format jsonl
Search snippets are discovery previews. Scrape and read the source page before citing it. The package caps max_results at 20.
--no-browser is OpenBrowser no-browser mode. It starts no Chrome, Blink, or V8 process, never falls back to a browser, and cannot run JavaScript, take screenshots, or use browser cookies. Use the default auto engine or --engine browser when a page needs JavaScript.
A warm openbrowser-ai -c call uses a standard-library thin client against the daemon. A clean cold start uses the synchronous startup path to start the daemon and execute the code without importing the full async client in the normal case. The full client handles stale files, lock contention, Windows, and early startup failure. Native wheels use the native launcher for exact -c CODE. No extra setup is required.
For static pages, openbrowser-ai scrape --no-browser uses OpenBrowser no-browser mode. It uses a light console entry that does not import the browser or configuration stack, starts no Chrome, Blink, or V8 process, and never falls back to a browser. Multi-URL batches use bounded concurrency:
openbrowser-ai scrape https://example.com --no-browser --format text
openbrowser-ai scrape https://a.example https://b.example --no-browser --jsonl --concurrency 8
It cannot run JavaScript, take screenshots, or use browser cookies. Use the default auto engine or --engine browser when a page needs JavaScript.
openbrowser-ai config status
Read path, state, and restart_required. A missing file is created with defaults once. A legacy, invalid, or unreadable file is never rewritten. If the file is invalid, repair it in place or move it to a unique backup name and run config status again. Moving it aside does not migrate old settings.
Set a hosting provider key only when the user wants Agent or CodeAgent runs that use that hosted provider:
export GOOGLE_API_KEY=... # or OPENAI_API_KEY / ANTHROPIC_API_KEY
Local models need no hosted provider key.
MCP and openbrowser-ai -c need no separate OpenAI, OpenBrowser, or MCP API key. Do not print the value.
Best route. Verify the routes in this order: MCP web_search and scrape_web, openbrowser-ai scrape URL --engine http, openbrowser-ai warm with -c for interactive CLI work, and create_context with execute_code for interactive MCP work. Confirm the modern MCP catalog exposes seven tools and uses the lean transport by default. Set OPENBROWSER_MCP_TRANSPORT=sdk for a client that requires the SDK transport. Both the CLI and MCP routes need no separate API key. Use get_status after a failed or stalled call, and reset_browser only when no usable page target remains.
The installed server command is openbrowser-ai --mcp. The zero-install form is uvx openbrowser-ai --mcp. The default stdio transport is a lean JSON-RPC loop that answers discovery and tools/list before it imports the MCP SDK. Set OPENBROWSER_MCP_TRANSPORT=sdk to use the MCP SDK 2.3 escape hatch. Invalid values exit with code 2. Modern 2026-07-28 clients see seven tools: create_context, execute_code, get_status, reset_browser, close_context, web_search, and scrape_web. The legacy handshakes 2024-11-05, 2025-03-26, 2025-06-18, and 2025-11-25 see four tools: execute_code, get_status, reset_browser, and web_search. Both catalogs include stateless web_search. The modern catalog adds stateless scrape_web, which fetches one HTTP(S) page in OpenBrowser no-browser mode: it starts no Chrome, Blink, or V8 process and stays on the HTTP path. JavaScript, screenshots, and browser cookies are unavailable on this path. Neither stateless tool needs a context_id or starts a browser. Use the handle returned by create_context for stateful calls. OpenBrowser 0.1.63 exposes web_search in the modern and legacy catalogs. Use web_search in new integrations.
Add it to the agent's native MCP configuration.
Claude Code project .mcp.json:
{
"mcpServers": {
"openbrowser": {
"command": "openbrowser-ai",
"args": ["--mcp"]
}
}
}
Codex ~/.codex/config.toml:
[mcp_servers.openbrowser]
command = "openbrowser-ai"
args = ["--mcp"]
Claude Desktop uses claude_desktop_config.json with the same mcpServers object.
OpenCode opencode.json:
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"openbrowser": {
"type": "local",
"command": ["openbrowser-ai", "--mcp"],
"enabled": true
}
}
}
If openbrowser-ai is not on the agent's PATH, replace it with the absolute path to the installed executable. To use uvx instead, set command to uvx and args to ["openbrowser-ai", "--mcp"]; do not put the whole command in one string.
Useful MCP environment variables:
| Variable | Use | Default |
|---|---|---|
OPENBROWSER_MCP_TRANSPORT | Stdio implementation: lean or sdk. Invalid values exit with code 2 | lean |
OPENBROWSER_HEADLESS | Run without a visible window | true |
OPENBROWSER_ALLOWED_DOMAINS | Comma-separated domain whitelist | none |
OPENBROWSER_RENDER_MODE | Asset policy for new contexts: full, lightweight, or no-render | full |
OPENBROWSER_TEXT_ONLY | Set to 1 to block external CSS, images, fonts, media, and text tracks while keeping scripts and screenshots | false |
OPENBROWSER_BLOCK_RESOURCES | Comma-separated groups to block: css, images, fonts, media, scripts | none |
OPENBROWSER_USER_DATA_DIR | Explicit shared profile; concurrent owners are rejected | per-context managed profile |
OPENBROWSER_STORAGE_STATE | One-time MCP seed for cookies plus localStorage | per-context copy |
OPENBROWSER_MCP_MAX_CONTEXTS | Open contexts total, including legacy | 16 |
OPENBROWSER_MCP_WORKSPACE_DIR | Base directory for per-context workspaces | ~/Downloads/openbrowser-mcp/workspace |
OPENBROWSER_MCP_START_TIMEOUT | Browser startup bound in seconds | 30 |
OPENBROWSER_MCP_EXEC_TIMEOUT | Tool call timeout in seconds | 110 |
OPENBROWSER_SHUTDOWN_TIMEOUT | Cleanup bound in seconds | 20 |
For skills.sh-compatible agents:
npx skills add billy-enrizky/openbrowser-ai
Install only this setup skill:
npx skills add billy-enrizky/openbrowser-ai --skill setup -a codex
These commands install skill files. They do not execute the setup workflow. Run this skill after installation to configure the CLI and MCP server.
Claude Code plugin:
claude plugin marketplace add billy-enrizky/openbrowser-ai
claude plugin install openbrowser@openbrowser-ai
Codex manual installation is documented at https://github.com/billy-enrizky/openbrowser-ai/blob/main/.codex/INSTALL.md. OpenCode manual installation is documented at https://github.com/billy-enrizky/openbrowser-ai/blob/main/.opencode/INSTALL.md.
~/.config/openbrowser/profiles/daemon. This is a Chrome user-data directory. No storage_state.json is written unless configured.~/.config/openbrowser/profiles/mcp-<owner-id>, seeded once from profiles/default/storage_state.json.mcp-<server-instance-id>.~/Downloads/openbrowser-mcp/workspace/<owner-id>.~/Downloads/openbrowser-mcp/<owner-id>.~/Downloads/openbrowser-daemon.OPENBROWSER_USER_DATA_DIR for a shared profile. The profile lease rejects concurrent owners.OPENBROWSER_DAEMON_PROFILE_ISOLATION=true or OPENBROWSER_DAEMON_PROFILE_DIR for isolated daemons.First verify the HTTP-only path. It should print page text without starting Chromium:
openbrowser-ai scrape https://example.com --engine http --format text
Then verify a real browser. Use the direct API so verification never attaches to or stops a daemon:
python3 - <<'PY'
import asyncio
from openbrowser import BrowserProfile, BrowserSession
async def main():
session = BrowserSession(
browser_profile=BrowserProfile(headless=True, user_data_dir=None)
)
try:
await session.start()
await session.navigate_to("https://example.com")
print(await session.get_current_page_title())
print(session.lifecycle_snapshot()["health"]["phase"])
finally:
await session.stop()
asyncio.run(main())
PY
user_data_dir=None creates a throwaway profile. The script starts a real Chrome, prints the title and health phase, and stops. It does not touch the user's daemon or profile. A document title does not prove application hydration.
If you also want to verify the CLI daemon, run openbrowser-ai -c "..." explicitly. On macOS/Linux, set OPENBROWSER_SOCKET and OPENBROWSER_DAEMON_PROFILE_DIR to isolate it. On Windows the daemon uses fixed port 19222 and ignores OPENBROWSER_SOCKET, so only stop a daemon you started.
For a batch of autonomous commands, start the daemon and browser once before the first call:
openbrowser-ai warm
This starts the daemon and browser and prints {"ok": true, "elapsed_ms": ..., "url": ...}. Later openbrowser-ai -c calls reuse the same process. The command does not change the browser profile or navigate to an external site.
Optional MCP smoke test:
This test exercises the default lean transport. To test the SDK transport, set OPENBROWSER_MCP_TRANSPORT=sdk in the child environment.
import asyncio
from mcp import Client, StdioServerParameters
async def main():
async with Client(StdioServerParameters(command="openbrowser-ai", args=["--mcp"])) as client:
created = await client.call_tool("create_context", {})
context_id = created.structured_content["context_id"]
try:
await client.call_tool("execute_code", {
"context_id": context_id,
"code": "print(await evaluate('document.title'))",
})
finally:
await client.call_tool("close_context", {"context_id": context_id})
asyncio.run(main())
Print a short setup report:
Do not print secrets. Do not claim a page is ready beyond the document milestone that was observed.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
8 skills in this plugin
/accessibility-auditAudit web pages for accessibility issues, WCAG compliance, and screen reader compatibility.
Routes through keyless local MCP `create_context` and `execute_code` tools plus the `openbrowser-ai -c` CLI. No separate API key is required.
Trigger when the user asks to: check accessibility, run an a11y audit, test WCAG compliance,
check screen reader support, audit ARIA attributes, verify keyboard navigation,
find accessibility issues, or check for missing alt text or labels.
/deep-researchUse when the user asks for search, web search, source discovery, research, investigations, evidence gathering, comparisons, literature reviews, briefings, or cited reports.
Uses host reasoning with the keyless `openbrowser-ai web-search`, guarded `safe_scrape.py`, and `-c` CLI. The MCP `web_search` tool is an optional lead-generation helper; its snippets are not evidence. Browser capture uses the dedicated CLI daemon. No separate API key is required. The `-p` prompt route is an optional configured-provider route; this skill never uses it.
/e2e-testingTest web applications end-to-end by simulating user interactions and verifying expected outcomes.
Routes through keyless local MCP `create_context` and `execute_code` tools plus the `openbrowser-ai -c` CLI. No separate API key is required.
Trigger when the user asks to: test a web app, verify a user flow, run end-to-end tests,
QA a feature, check that a page works correctly, validate user journeys, or test a deployment.
/file-downloadDownload files from websites, save PDFs, and read downloaded content.
Routes through keyless local MCP `create_context` and `execute_code` tools plus the `openbrowser-ai -c` CLI. No separate API key is required.
Trigger when the user asks to: download a file, save a PDF, export a document,
fetch a file from a URL, grab a report, download and read a PDF, or save page content as a file.
/form-fillingFill out web forms, submit data, and handle login or registration flows.
Routes through keyless local MCP `create_context` and `execute_code` tools plus the `openbrowser-ai -c` CLI. No separate API key is required.
Trigger when the user asks to: fill a form, submit data on a website, log in to a site,
register an account, complete a checkout, enter information into fields, or automate form submission.
/page-analysisAnalyze web page content, structure, and layout to understand what a page contains and how it is organized.
Routes through keyless local MCP `create_context` and `execute_code` tools plus the `openbrowser-ai -c` CLI. No separate API key is required.
Trigger when the user asks to: analyze a page, understand page structure, inspect a website,
summarize page content, examine page layout, review a web page, or describe what is on a page.
npx claudepluginhub billy-enrizky/openbrowser-ai --plugin openbrowserOther plugins' skills for the same job