Stagehand by Browserbase combines the reliability of Playwright with LLM intelligence. Describe what you want to do on a web page in natural language, and Stagehand handles the browser interactions with built-in retry logic, element detection, and visual grounding.
Stagehand makes browser automation as easy as describing what you want in plain English. Built on Playwright by Browserbase, it adds AI-powered element detection and natural language action execution.
import { Stagehand } from "@browserbase/stagehand";
const stagehand = new Stagehand({ modelName: "gpt-4o" });
await stagehand.init();
await stagehand.page.goto("https://github.com/login");
await stagehand.act({ action: "enter username and click sign in" });
const products = await stagehand.extract({
instruction: "extract product names and prices",
schema: z.object({ name: z.string(), price: z.string() }).array()
});
AI agents that work well with Stagehand.
Connect AI agents to browser control — click, fill forms, scrape, and interact with any website using GPT-4, Claude, or Gemini.
Chrome extension MCP server — AI agents control your browser directly from the extension.