Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
AI research agent that runs 5 parallel browsers to search the web in real-time using Stagehand and Browserbase.
Stagehand Research Agent is a Next.js 15 starter template that uses Stagehand and Browserbase to run five parallel browser sessions for real-time web research, then synthesizes findings via Claude. Built by the Browserbase team, it deploys to Vercel with one click and streams results using Server-Sent Events.
The template is a complete, MIT-licensed application that takes a research question as input and outputs a structured Markdown summary. It runs on Next.js API Routes with a 300-second max duration, and its frontend is built with React 19, TypeScript, and Tailwind CSS 4. The backend orchestrates five concurrent Stagehand sessions on Browserbase, each assigned to a different source: Google, Wikipedia, YouTube, Hacker News, and Google News.
The flow is: enter a query → the API route creates 5 parallel Stagehand sessions on Browserbase → each session navigates to its assigned source and uses Claude to extract relevant data → findings stream back to the UI via SSE → a final Claude call synthesizes everything into a Markdown summary.
Yes. It requires a Browserbase account and API key and a Vercel AI Gateway API key, both of which have their own pricing and quotas. The template code itself is free under the MIT license.
The backend uses Claude Sonnet via Vercel AI Gateway. Both the extraction and synthesis steps rely on Claude with structured schemas.
The code is standard Next.js, but the API route is configured for a 300-second max duration, which matches Vercel's serverless limits. Running elsewhere would require adjusting runtime settings for long-running functions.
Results stream as each source completes, so partial findings appear before all five sessions finish. Total time depends on Browserbase session startup and page load speeds, but the parallel design reduces wall-clock time compared to sequential browsing.
The repo includes three presets: 'What is quantum computing?', 'Latest developments in AI', and 'How does blockchain work?'.
