Overview
Thebrowserbase-cli skill teaches AI coding agents how to use the official Browserbase CLI (bb). The CLI is the primary interface for managing Browserbase infrastructure — it covers Functions lifecycle, platform resource management, page fetching, and web search.
Use this skill when you want your agent to stay inside the CLI for tasks like:
- Functions —
bb functions init,dev,publish, andinvokefor the full serverless browser automation lifecycle - Sessions —
bb sessions list,get,create,update,debug,logs,recording,downloads, anduploadsto manage browser sessions - Projects —
bb projects list,get, andusagefor project-level configuration - Contexts —
bb contexts create,get,update, anddeleteto manage persistent browser state (cookies, localStorage) - Extensions —
bb extensions upload,get, anddeletefor custom browser extensions - Fetch —
bb fetch <url>to retrieve page content through Browserbase proxies with redirect control and JSON output - Search —
bb search <query>to search the web through the Browserbase Search API
The
browserbase-cli skill is for bb-driven workflows. For interactive browser control like navigation, clicking, typing, and snapshots, use the browser skill instead.Choose the Right Skill
| Skill | Best for |
|---|---|
browser | Interactive browser automation with the browse CLI |
fetch | Lightweight page retrieval via the Browserbase Fetch API — no browser session needed |
functions | Focused Browserbase Functions workflows |
browserbase-cli | Broader bb workflows across functions, sessions, projects, contexts, extensions, fetch, and search |
Installation
Authentication
Allbb commands require your API key:
bb functions dev and bb functions publish, you also need a project ID:
Common Workflows
Functions
Platform APIs
Fetch API
Search API
Notes on bb browse
bb browse is a passthrough to the standalone browse CLI. Use it only when you explicitly want to stay inside a bb-centric workflow.
For most interactive browsing tasks, prefer the browser skill directly.
If you need bb browse, install the browse CLI too:
Further Reading
Skills Repository
View the Browserbase skills source and installation instructions.
Browserbase Functions
Learn more about Browserbase Functions.