Hey! This is a project built with Stagehand.
You can build your own web agent using: npx create-browser-app
!
Stagehand is an SDK for automating browsers. It's built on top of Playwright and provides a higher-level API for better debugging and AI fail-safes.
Get ready for a show-stopping development experience. Just run:
npm install && npm start
Required API keys/environment variables are in the .env.example
file. Copy it to .env
and add your API keys.
cp .env.example .env && nano .env # Add your API keys to .env
We have custom .cursorrules for this project. It'll help quite a bit with writing Stagehand easily.
To run on Browserbase, add your API keys to .env and change env: "LOCAL"
to env: "BROWSERBASE"
in stagehand.config.ts.
- Add your API key to .env
- Change
modelName: "gpt-4o"
tomodelName: "claude-3-5-sonnet-latest"
in stagehand.config.ts - Change
modelClientOptions: { apiKey: process.env.OPENAI_API_KEY }
tomodelClientOptions: { apiKey: process.env.ANTHROPIC_API_KEY }
in stagehand.config.ts