Browser automationAdvancedDocs-checked, not yet hands-on tested
Cloud browser agent at scale
Run many browser sessions in the cloud for scraping or workflows.
Starter prompt
Write a Stagehand script that opens <site>, finds <data>, and returns JSON matching this schema: <schema>. Retry once on failure and log each step.
Config
agent.ts
// unverified: check the current Stagehand API in its docs
import { Stagehand } from "@browserbasehq/stagehand";
const stagehand = new Stagehand({ env: "BROWSERBASE" });
await stagehand.init();
// await page.act("click the pricing link") ...Setup steps
- Create a Browserbase account and API key.
- Install Stagehand.
- Start with one page, then parallelize.
Why this works
Hosted browsers handle concurrency and proxies so your agent code stays small.
Watch out
Respect site terms and robots rules.
Related loadouts
Compare the gear: Browser automation for agents tier list