Browserbase Functions: Serverless Browser Automation for Openclaw

A comprehensive skill for deploying, managing, and invoking serverless browser automation using the Browserbase CLI and SDK.

peytoncasper
v1.0.0
Feb 6, 2026
0
2.7k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install functions

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install functions using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Browserbase Functions: Serverless Browser Automation?

The Browserbase Functions skill empowers developers to transition browser automation from local scripts to scalable, cloud-resident serverless functions. By leveraging the official bb CLI, this skill enables the creation of robust automation that can be triggered via webhooks, run on schedules, or integrated into larger cloud workflows. It provides a structured approach for AI agents to assist in building high-performance browser tasks without the overhead of managing infrastructure.

Built on top of Playwright-core, this skill ensures high compatibility with modern web applications while offering a managed execution environment. When utilized within the ecosystem of Openclaw Skills, it provides a seamless bridge between local development and cloud-scale deployment for web scraping, automated testing, and synthetic monitoring.

Browserbase Functions: Serverless Browser Automation Use Cases

  • Deploying browser automation to run on a recurring schedule in the cloud.
  • Creating dedicated webhook endpoints for triggering browser-based workflows.
  • Moving resource-intensive scraping tasks from local environments to managed cloud infrastructure.
  • Building automated UI testing pipelines that execute in a serverless environment.

How Browserbase Functions: Serverless Browser Automation Works

  1. Initialize a new function project using the Browserbase SDK initialization command.
  2. Configure the local environment with necessary API credentials and project identifiers.
  3. Develop the automation logic using the defineFn wrapper and Playwright-core for browser interaction.
  4. Launch a local development server to test and debug the function with hot-reloading.
  5. Deploy the function to the Browserbase cloud to generate a unique, permanent Function ID.
  6. Invoke the live function via HTTP POST requests or the SDK to perform automation in the cloud.

Browserbase Functions: Serverless Browser Automation Setup

1. Initialize Project

pnpm dlx @browserbasehq/sdk-functions init my-function
cd my-function

2. Configure Credentials

export BROWSERBASE_API_KEY="your_api_key"
export BROWSERBASE_PROJECT_ID="your_project_id"
echo "BROWSERBASE_API_KEY=$BROWSERBASE_API_KEY" >> .env
echo "BROWSERBASE_PROJECT_ID=$BROWSERBASE_PROJECT_ID" >> .env

3. Install Dependencies

pnpm install

Browserbase Functions: Serverless Browser Automation Data Schema & Taxonomy

The skill utilizes a standard project structure and specific context objects to manage automation data within the Openclaw Skills framework:

Component Type Description
index.ts File The primary source file containing the automation logic.
context.session Object Provides the CDP connection URL for the browser session.
context.params Object Stores user-defined input parameters passed during invocation.
Function ID UUID The unique identifier used to target a deployed function.
Invocation ID UUID A tracking ID used to poll for the status and results of a run.

Browserbase Functions: Serverless Browser Automation Advanced Features

  • Local development server with auto-reloading for rapid debugging cycles.
  • Support for CDP (Chrome DevTools Protocol) connection for deep browser control.
  • Built-in parameterization allowing dynamic inputs for every function call.
  • Long-running execution support (up to 15 minutes) for complex workflows.
  • Seamless integration with Openclaw Skills for automated deployment pipelines.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*