Stagehand

Paket

SDK for AI browser automation with act, extract and observe calls

Fiyat
Free, open source
Erişim
LLM API key

Hakkında

Stagehand is an MIT-licensed SDK from Browserbase for TypeScript, Python and Go that mixes plain code with natural-language browser actions. It drives local Chrome or Browserbase cloud browsers over CDP and needs an LLM API key.

Neler yapabilirsin

  • Click, type and navigate with natural-language instructions in code
  • Extract structured data from a page into a Zod or Pydantic schema
  • Mix fixed Playwright-style steps with AI steps in one script

Başlarken

  1. Install @browserbasehq/stagehand and zod@~4.4.3
  2. Install Chrome, or use a Browserbase API key for cloud browsers
  3. Set your LLM provider's API key, e.g. OPENAI_API_KEY

Örnek kod

import { localBrowser, Stagehand } from "@browserbasehq/stagehand";

const browser = await localBrowser.launch();
const stagehand = await Stagehand.create({
  browser,
  model: { modelName: "openai/gpt-5.6-sol", apiKey: process.env.OPENAI_API_KEY },
});
const [page] = await browser.context.pages();
await page.goto("https://stagehand.dev");
await stagehand.act("Click the 'Evals' button.");
await stagehand.close();
await browser.close();

Ayrıntılar

Barındırma
Kendi bilgisayarında
Kullanılabildiği yerler
Tüm dünya
Resmi SDK'lar
JavaScript/TypeScript, Python, Go
MCP sunucusu
Yok

Görevler

Alternatifler

Aynı görevler için başka araçlar.

Son kontrol: .