BrowserBash Browser Automation
БесплатноБез исполняемых скриптовНе проверенBrowserBash is a vendor-independent, natural-language browser automation CLI. Drive a real browser from plain-English objectives or committable Markdown…
от PramodDutta★ 253 звезды на GitHubОб этом скилле
BrowserBash Browser Automation
You are an expert in BrowserBash, the vendor-independent natural-language browser automation CLI. When the user asks you to automate a browser, write or run end-to-end tests in plain English, wire BrowserBash into CI, run tests on a cloud grid (LambdaTest, BrowserStack, Browserbase) or a local browser, or consume BrowserBash results from another agent or pipeline, follow these instructions.
Accuracy note for this skill: BrowserBash is a young, actively developed open-source project (Apache-2.0, repo
PramodDutta/browserbash, npm packagebrowserbash-cli, sitebrowserbash.com). The commands, flags, and model identifiers below reflect the published README and site at the time of writing. Model names and exact flag spellings can drift between versions — when an exact string matters, confirm againstbrowserbash --help,browserbash <command> --help, and the official docs before relying on it. Do not invent flags, providers, or model ids that are not listed here or shown by--help.
What BrowserBash is (and is not)
BrowserBash turns a plain-English objective — for example, "log in and add the first product to the cart" — into actions an AI agent performs in a real browser, then returns structured results. You do not write selectors, locators, or imperative click/type code; you describe intent.
It is not a managed cloud browser service, and it is a distinct project from the similarly named "Browserbase" and "Browserless". (BrowserBash can use Browserbase as one of several browser providers, but they are different products — do not conflate them.)
Two layers are independently swappable, which is the core mental model:
- Engine — who interprets the English and decides the steps.
stagehand(default): the open-source Stagehand framework (by Browserbase, MIT). Supports Anthropic/OpenAI/Google models; runs against local Chromium, a CDP endpoint, or Browserbase.builtin: an in-repo Anthropic tool-use loop driving Playwright directly. Used automatically for grids Stagehand cannot attach to (LambdaTest, BrowserStack).
- Provider — where the browser actually runs:
local,cdp,browserbase,lambdatest,browserstack.
Under the hood every provider returns a Playwright Browser/Page, so BrowserBash is built on top of Playwright rather than replacing it — it sits a layer above, replacing the hand-written selector/test code with natural language.
Why it matters for QA
- Selector-free E2E: tests survive UI refactors because there are no CSS/
data-testselectors to maintain. - Committable, reviewable tests:
*_test.mdfiles live in the repo and read like a test case. - Run anywhere: same objective runs on a developer laptop (local Chrome), in Docker over CDP, or across a real-device/browser cloud grid for cross-browser coverage.
- First-class CI/agent output:
--agentemits NDJSON and the process exit code is the verdict, so no log scraping. - Cost control: defaults to free local models (Ollama), so smoke tests can cost $0.
Setup and installation
The published CLI installs from npm:
npm install -g browserbash-cli
browserbash --version
To work from source (e.g. to add a custom provider), clone the repo and link it:
# in a clone of github.com/PramodDutta/browserbash
npm install
npm run build
npm link # exposes the `browserbash` command
Requirements: Node >= 18, and Google Chrome stable for the default local provider. (ffmpeg is bundled and used for session video when you record.)
Scaffold a project workspace:
browserbash init # creates ./.browserbash/ (tests, variables, config)
Choosing an LLM backend (free-first)
BrowserBash defaults to model auto, resolved in this order:
- Ollama running locally → uses your local model (free, open-source, no API key). This is the recommended default.
ANTHROPIC_API_KEYset → an Anthropic Claude model.OPENAI_API_KEYset → an OpenAI model.- Otherwise: errors with setup guidance.
The fully free / open-source stack (default engine + local Chromium + Ollama, zero cloud cost, no keys):
ollama pull qwen3 # or any tool-capable local model
browserbash run "Open https://example.com and store the heading as 'h1'"
Practical tip from the project: very small local models (<= 8B) are flaky on multi-step objectives. A Qwen3 / Llama-3.3-70B-class model interprets multi-step flows far more reliably. Pick the smallest model that completes your flows deterministically.
Cloud LLM options (set the corresponding env var, then optionally pass --model):
# Anthropic (Stagehand or builtin engine)
export ANTHROPIC_API_KEY=sk-ant-...
browserbash run "..."
# OpenRouter — hundreds of models behind one key (Stagehand engine)
export OPENROUTER_API_KEY=sk-or-...
browserbash run "..." --model openrouter/anthropic/claude-sonnet-4-6
Important pairing rule: the
Установить BrowserBash Browser Automation в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл BrowserBash Browser Automation?
BrowserBash is a vendor-independent, natural-language browser automation CLI. Drive a real browser from plain-English objectives or committable Markdown tests, run on local Chrome, CDP/Playwright MCP, Browserbase, LambdaTest, or BrowserStack, and stream NDJSON results with CI exit codes — using free local Ollama models or any cloud LLM.
Как установить скилл BrowserBash Browser Automation?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл BrowserBash Browser Automation запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic