browser-use-to-stagehand

Convert browser-use Python scripts to Stagehand v3 TypeScript for Browserbase.

3.7k|235|Updated Oct 12, 2025
One-click install
npx skills add https://github.com/browserbase/skills --skill browser-use-to-stagehand
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: browser-use-to-stagehand
Source: https://github.com/browserbase/skills/tree/main/skills/browser-use-to-stagehand
Command: npx skills add https://github.com/browserbase/skills --skill browser-use-to-stagehand

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @browserbasehq/stagehand, typescript, dotenv, zod, ai, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps users migrate browser-automation scripts from browser-use (Python) to Stagehand v3 (TypeScript) on Browserbase, enabling deterministic and maintainable browser automation.

Core Features & Use Cases

  • Script Conversion: Automates the conversion of browser-use scripts to Stagehand v3.
  • Deterministic Automation: Ensures consistent results across runs by choosing the right level of determinism for each step.
  • Browserbase Integration: Leverages Browserbase's capabilities for persistent contexts, proxies, and stealth sessions.
  • Use Case: Migrating a complex browser-automation script that involves logging in, navigating, and extracting structured data.

Quick Start

Run the browser-use-to-stagehand skill with the path to your browser-use script. For example: browser-use-to-stagehand /path/to/your/script.py

Frequently Asked Questions about browser-use-to-stagehand

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I migrate browser-use Python scripts to TypeScript for deterministic automation?

To migrate browser-use scripts to TypeScript, you convert them to Stagehand v3 on Browserbase, ensuring deterministic and maintainable browser automation by selecting the right level of determinism for each step.

Does converting browser-use scripts to Stagehand v3 require a Browserbase account?

Yes, converting browser-use scripts to Stagehand v3 requires access to Browserbase services for authentication and session management to leverage persistent contexts, proxies, and stealth sessions.

What's the best way to convert a Python browser-automation script to a TypeScript SDK?

The best way to convert a Python browser-automation script to a TypeScript SDK is using the Stagehand v3 SDK, which automates the script conversion and ensures consistent results across runs on Browserbase.

Why use Stagehand v3 for browser automation instead of browser-use?

Stagehand v3 is used for browser automation instead of browser-use to achieve deterministic automation, ensuring consistent results across runs by choosing the right level of determinism for each step.

What dependencies do I need to run migrated Stagehand v3 scripts?

To run migrated Stagehand v3 scripts, you need a TypeScript runtime, the @browserbasehq/stagehand SDK, dotenv, zod, and the ai package for script execution and validation.

Can I automate complex browser logins and data extraction with Stagehand v3?

Yes, you can automate complex browser logins and data extraction with Stagehand v3 by migrating your browser-use scripts to leverage Browserbase's persistent contexts and stealth sessions.