Skip to main content
The Browse CLI gives your agent a real browser and the full Browserbase platform from the terminal. Your agent can open pages, read accessibility snapshots, click and fill elements, capture network traffic, and manage sessions, contexts, Secrets, Functions, and skills without leaving the shell. Commands return JSON, so your agent can chain steps like browse open, browse snapshot, and browse click @0-4 without writing a script.
Have your agent run browse skills show before its first command. It prints the bundled skill, which matches your installed CLI version and covers workflows, session management, and failure recovery.

Choose the right skill

Installation

1

Install the Browse CLI

2

Install the bundled skill

Command reference

This is every command in the Browse CLI. Run browse <command> --help for arguments and flags. Element commands accept a snapshot ref such as @0-4, an XPath, or a CSS selector. Run browse snapshot first to cache refs.

Page inspection

Element interaction

Mouse

Use these when an element has no usable ref or selector.

Tabs

Network capture

Session and debugging

Browser target flags

Browser commands share these flags:

Cloud APIs

Functions

Skills and templates

Authentication

Remote Browserbase commands require your API key:
The CLI reads BROWSERBASE_API_KEY from the environment on every command, including when a browse daemon is already running. You can export the key at any point or provide it to a single command without restarting the daemon:

Daemon lifecycle

Browser commands start the browse daemon automatically. To start a session when no daemon is running, use the exact command below and add --local or --remote if you want to choose the browser target explicitly:
If a previous daemon stopped unexpectedly, clean up its state and start a fresh session:
browse stop is idempotent. When no daemon is running, it returns "stopped": false and exits successfully with code 0.

Common workflows

Browser automation

Cloud APIs

Functions

Secrets

Create an encrypted Secret, then list its metadata:
The CLI encrypts the value on your machine before it sends the value to Browserbase. See the Secrets overview for the access model and the getting started guide for the complete workflow.

Skills

Browse.sh

Browse.sh is an open-source catalog of skills for reliable web tasks. It gives your agents researched playbooks for hundreds of sites.

Further reading

Skills repository

View the Browserbase skills source and installation instructions.

Browse.sh

Explore the public Browse.sh skill catalog.