Skills

Browser Use To Stagehand

Migrate browser-use (Python) browser-automation scripts to Stagehand v3 (TypeScript) on...

Install

npx skills add browserbase/skills --skill browser-use-to-stagehand -g -a claude-code -y
Repository
browserbase/skills3.7k
Category
AI and agents
Updated
8d ago
License
MIT
Context cost
Mediumabout 2,604 tokens
Runs scripts
No, instructions only

What it does

Migrate browser-use (Python) browser-automation scripts to Stagehand v3 (TypeScript) on Browserbase. Use when the user wants to convert, port, rewrite, or migrate a browser-use Agent script to Stagehand, map browser-use features/APIs to Stagehand primitives (act/extract/observe/agent), or move agentic browser automation onto Browserbase with more determinism. Triggers on "browser-use", "browser_use", or "Agent(task=...)".

browser-use → Stagehand on Browserbase (/browser-use-to-stagehand)

Convert a browser-use (Python) script into an idiomatic Stagehand v3 (TypeScript) script on Browserbase, choosing the right level of determinism at each step rather than producing a one-to-one agentic copy.

Core principle: browser-use is agentic-by-default (the LLM decides every action). Stagehand lets you choose how much AI to use. A good migration replaces opaque agent loops with an inspectable, mostly-deterministic pipeline, using AI only where the page is genuinely unpredictable. This is a refactor with judgment, not a transpile.

Source of truth & versions. This skill's durable value is the judgment, the determinism spectrum and the decompose-vs-agent decision, not the API specifics, which drift every release. The code mappings here are a snapshot validated against @browserbasehq/stagehand 3.6.x and browser-use 0.13.x (2026-06). On any conflict, the live docs win, always verify against the installed package and these sources before emitting code:

If the installed Stagehand major is not 3, treat this skill as conceptual only and follow the live docs for every signature.

Reference files (read as needed)

Read the whole SKILL.md on GitHub

More in AI and agents