Using Claude Code, Cursor, or another coding agent? Paste this into your prompt to browse the web, debug sessions, and manage your entire project via the Browserbase CLI:
Creating your account
Sign up for a Browserbase account. The free plan includes:- One browser session running at a time
- 60 minutes of browser time per month
Overview dashboard
The overview dashboard is the first page you’ll see when you log in to Browserbase and click into a project. It gives you a quick snapshot of your browser sessions, usage, and status.
- Your project ID and API key on the right side
- Currently running and recently completed sessions
- Historical usage statistics, performance metrics, and system status
Using the playground
The Playground lets you try Browserbase directly in your browser — no local setup needed.- Navigate to the Playground
- Command + Click on one of the templates in the code editor
- Click “Run” to start a browser session and execute the code
- Watch the session via Live View on the right
- Click “Stop” to shut down the browser
Session Inspector
Use the Session Inspector to watch sessions in real time, view replays, or inspect logs.Sessions list
Find all your sessions in the Sessions tab. From there, you can open the Session Inspector for any session.
https://www.browserbase.com/sessions/[session-id].
Next steps
Once you’ve run a session in the playground, you’ll likely want to integrate Browserbase into your own codebase. You have two main approaches:- Direct session control — Create browser sessions and control them with your preferred automation framework
- Serverless Functions — Deploy browser automation as serverless functions invocable via API
Using browser sessions
Pick a browser automation framework and follow the framework-specific quickstart to get a Browserbase project running locally. Browserbase supports all popular frameworks and many integrations.If you’re not sure which framework to use,
Stagehand is recommended as it’s built and
maintained by the Browserbase team.
Stagehand
Recommended for AI-native workflows
- JavaScript and Python support
- Self-healing page automations
- LLM-powered browser control
- AI-first architecture
Playwright
Recommended for traditional automation
- JavaScript, Python, Java, and C# support
- Static workflow definitions
- Robust testing capabilities
- Extensive API support
Puppeteer
Recommended for Puppeteer users
- JavaScript support
- Static workflow definitions
- Robust testing capabilities
- Extensive API support
Selenium
Recommended for Selenium users
- JS, Python, Java, C#, and Ruby support
- Static workflow definitions
- Robust testing capabilities
- Extensive API support
Need to deploy your code?
Functions let you deploy browser automation directly to Browserbase’s infrastructure. Perfect for serverless workflows, webhooks, scheduled tasks, or API endpoints with zero server management.Functions
Recommended for serverless workflows
- Zero infrastructure management
- API-invocable browser automation
- Built-in session management
- Perfect for webhooks and scheduled tasks
Use Browserbase with Claude Code
Give your coding agent a browser built for them.
Paste this into your agent to get started: