Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 5 additions & 13 deletions skills/browser/EXAMPLES.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,26 +87,18 @@ The agent detects bot protection and tells the user:
If the user agrees:

```bash
# Set up Browserbase credentials
openclaw browserbase setup
# User enters API key + project ID interactively
# Set Browserbase credentials
export BROWSERBASE_API_KEY="bb_live_..."
export BROWSERBASE_PROJECT_ID="proj_..."

# Retry — credentials are now in the environment
# Retry in remote mode
browse env remote
browse open https://competitor.com/pricing
browse snapshot # full page content now accessible
browse get text ".pricing-table"
browse stop
```

If the env vars aren't visible yet (setup was run outside OpenClaw):

```bash
eval "$(openclaw browserbase env --format shell)" && browse open https://competitor.com/pricing
browse snapshot
browse get text ".pricing-table"
browse stop
```

## Tips

- **Snapshot first**: Always run `browse snapshot` before interacting — it gives you the accessibility tree with element refs
Expand Down
10 changes: 3 additions & 7 deletions skills/browser/REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ browse type "human-like" --mistakes # simulate human typing with typos
Fill an input element matching a CSS selector and press Enter.

```bash
browse fill "#search" "OpenClaw documentation"
browse fill "#search" "browser automation"
browse fill "input[name=email]" "user@example.com"
browse fill "#search" "query" --no-press-enter # fill without pressing Enter
```
Expand Down Expand Up @@ -398,19 +398,15 @@ browse --session personal open https://b.com

When both are set, the CLI uses Browserbase remote sessions. Otherwise, it falls back to local Chrome.

The Browserbase OpenClaw plugin automatically bridges credentials from `~/.openclaw/openclaw.json` into these environment variables on startup.

### Setting credentials

```bash
# Via OpenClaw plugin (recommended)
openclaw browserbase setup

# Via environment variables (manual)
export BROWSERBASE_API_KEY="bb_live_..."
export BROWSERBASE_PROJECT_ID="proj_..."
```

Get these values from https://browserbase.com/settings.

---

## Error Messages
Expand Down
6 changes: 1 addition & 5 deletions skills/browser/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,7 @@ browse env remote # switch to Browserbase
browse env local # switch back to local Chrome
```

The switch is sticky until you run `browse stop` or switch again. If API keys aren't set:

```bash
openclaw browserbase setup # interactive — prompts for API key + project ID
```
The switch is sticky until you run `browse stop` or switch again.

For detailed examples, see [EXAMPLES.md](EXAMPLES.md).
For API reference, see [REFERENCE.md](REFERENCE.md).