Nov 29, 2026

Automate Browser Work with the OpenBrowser Skill Pack

OpenBrowser installs as a Claude Code plugin with eight guided skills over a CodeAgent that scripts real browser work through raw CDP — scraping, forms, e2e tests, and research.

#tutorial#agent-tools#developer-tools#workflow

Most browser automation makes the agent click through page snapshots one element at a time. OpenBrowser, an MIT-licensed Python framework, takes a different route: a CodeAgent architecture where the LLM writes Python code that runs in a persistent, Jupyter-like namespace, talking to Chrome over raw CDP (Chrome DevTools Protocol) for navigation, interaction, and extraction.

Why This Skill Matters

The framework pairs that code-first core with a Claude Code plugin that ships eight guided skills: setup, deep-research, web-scraping, form-filling, e2e-testing, page-analysis, accessibility-audit, and file-download. Beyond the skills, the package carries a CLI daemon with a 10-minute auto-shutdown, workflow recording that replays sessions or exports them to Jupyter notebooks, video recording via ffmpeg, batch scraping with bounded concurrency, and native web search built in. The README counts 15 supported LLM providers, including OpenAI, Anthropic, Google, Groq, AWS Bedrock, Azure, Ollama, DeepSeek, Cerebras, OpenRouter, and OCI.

Installation

As a Claude Code plugin (this installs the MCP server and the eight skills):

# Add the marketplace (one-time)
claude plugin marketplace add billy-enrizky/openbrowser-ai

# Install the plugin
claude plugin install openbrowser@openbrowser-ai

The Python package itself needs Python 3.12 or newer, with a one-line installer for macOS and Linux:

curl -fsSL https://raw.githubusercontent.com/billy-enrizky/openbrowser-ai/main/install.sh | sh

On Windows, the README documents the PowerShell equivalent: irm https://raw.githubusercontent.com/billy-enrizky/openbrowser-ai/main/install.ps1 | iex.

If you use Codex or OpenCode instead, the README documents both a quick path — tell the agent to fetch and follow instructions from the repo's agent-specific INSTALL.md (.codex/INSTALL.md for Codex, .opencode/INSTALL.md for OpenCode) — and a manual path that clones the repository and symlinks plugin/skills into the agent's skills directory.

One conditional worth keeping: the skills.sh route (npx skills add billy-enrizky/openbrowser-ai) installs skill definitions only. It does not run the setup workflow — after installation, invoke the setup skill to install the CLI and Chromium, configure MCP and profiles, and verify a real browser session.

Real Workflow: From setup to a scraping run

After the plugin install, start with the setup skill so the CLI, Chromium, and MCP configuration are verified against a real session. Then pick the skill that matches the job — web-scraping for structured data with pagination handling, form-filling for login flows and multi-step wizards, e2e-testing for simulating user interactions, accessibility-audit for WCAG checks.

When you want direct control, the Python API is the same engine the skills drive:

import asyncio
from openbrowser import CodeAgent, ChatGoogle

async def main():
    agent = CodeAgent(
        task="Go to google.com and search for 'Python tutorials'",
        llm=ChatGoogle(model="gemini-3-flash-preview"),
    )

    session = await agent.run()
    print(f"Result: {agent.status.result}")
    print(f"Executed cells: {len(session.cells)}")

asyncio.run(main())

The examples in the README use hosted providers and need the matching provider key; ChatOpenAI and ChatAnthropic are imported the same way. Local models need no hosted provider key, and BrowserSession examples — direct navigation and screenshots without an agent loop — need no separate LLM key at all.

For shell-driven work, the CLI daemon avoids startup cost on every call:

openbrowser-ai warm
openbrowser-ai -c "await navigate('https://example.com')"
openbrowser-ai -c "print(await evaluate('document.title'))"

Run openbrowser-ai warm once before a sequence of calls to start the daemon and browser; the -c flag executes code directly from Bash.

Tips

  • Batch jobs: scrape_pages and the CLI batch scrape multiple URLs with bounded concurrency, and an explicit --no-browser or --engine http batch starts no browser at all.
  • The CodeAgent keeps generated files under a unique temporary agent directory by default; pass file_system=FileSystem(base_dir=...) when you need a stable path.
  • Workflow recording can export a browser session as a Jupyter notebook or as API crawler code — useful for turning an interactive run into a repeatable script.
  • Session state is explicit: browser, CDP, navigation, focus, storage, downloads, agent runs, and CodeAgent runs report typed phases you can read instead of parsing logs.
  • Vision support adds screenshot analysis for visual understanding of pages.

When Not to Use This

The README's quick-start note scopes the Python CodeAgent examples to hosted providers and their keys; if you want a no-key path, use the BrowserSession API or the CLI daemon, which the README documents as needing no separate OpenAI, OpenBrowser, or MCP API key. And for single static pages, a plain HTTP fetch is lighter than a browser — the framework's strength is work that needs real pages: logins, wizards, dynamic content, and checks that must see what a user sees.


See the leaderboard for more skills.