These examples are most relevant for TypeScript. The Python section is coming soon.
Check out the Playbook
We’ve created a Github repository with plenty of ready-to-run guides for Stagehand, including persistent contexts and deploying to Vercel.
Next.js + Vercel
Check out the Next.js + Vercel example to see how to build a Next.js app and one-click deploy it to Vercel.Custom LLM Clients
Persistent Contexts
Deploying to Vercel
npx vercel deploy.
It creates a GET endpoint at /api/stagehand that can be used to run Stagehand script in index.ts.
