{"id":28491950,"url":"https://github.com/browserbase/stagehand-nextjs-quickstart","last_synced_at":"2025-10-17T13:36:10.598Z","repository":{"id":274384848,"uuid":"922734851","full_name":"browserbase/stagehand-nextjs-quickstart","owner":"browserbase","description":"A quickstart for NextJS","archived":false,"fork":false,"pushed_at":"2025-05-23T22:08:27.000Z","size":349,"stargazers_count":17,"open_issues_count":0,"forks_count":8,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-07-08T03:03:16.089Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://stagehand-nextjs-quickstart.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/browserbase.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-01-27T00:17:59.000Z","updated_at":"2025-06-04T10:16:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"b3474308-ebb3-4eb0-a530-365ea661e77a","html_url":"https://github.com/browserbase/stagehand-nextjs-quickstart","commit_stats":null,"previous_names":["browserbase/stagehand-nextjs-quickstart"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/browserbase/stagehand-nextjs-quickstart","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserbase%2Fstagehand-nextjs-quickstart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserbase%2Fstagehand-nextjs-quickstart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserbase%2Fstagehand-nextjs-quickstart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserbase%2Fstagehand-nextjs-quickstart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/browserbase","download_url":"https://codeload.github.com/browserbase/stagehand-nextjs-quickstart/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserbase%2Fstagehand-nextjs-quickstart/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269832882,"owners_count":24482330,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-11T02:00:10.019Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-08T08:09:06.790Z","updated_at":"2025-10-17T13:36:05.509Z","avatar_url":"https://github.com/browserbase.png","language":"TypeScript","readme":"# 🤘 Welcome to Stagehand Next.js!\n\n[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fbrowserbase%2Fstagehand-nextjs-quickstart\u0026env=BROWSERBASE_API_KEY,BROWSERBASE_PROJECT_ID,OPENAI_API_KEY\u0026envDescription=Browserbase%20credentials%20%2B%20OpenAI.%20You%20can%20configure%20your%20project%20to%20use%20Anthropic%20or%20a%20custom%20LLMClient%20in%20stagehand.config.ts\u0026project-name=stagehand-nextjs\u0026repository-name=stagehand-nextjs)\n\nHey! This is a Next.js project built with [Stagehand](https://github.com/browserbase/stagehand).\n\nYou can build your own web agent using: `npx create-browser-app`!\n\n## Setting the Stage\n\nStagehand is an SDK for automating browsers. It's built on top of [Playwright](https://playwright.dev/) and provides a higher-level API for better debugging and AI fail-safes.\n\n## Curtain Call\n\nGet ready for a show-stopping development experience. Just run:\n\n```bash\nnpm install \u0026\u0026 npm run dev\n```\n\n## What's Next?\n\n### Add your API keys\n\nThis project defaults to using OpenAI, so it's going to throw a fit if you don't have an OpenAI API key.\n\nTo use Anthropic (or other LLMs), you'll need to edit [stagehand.config.ts](stagehand.config.ts) to use the appropriate API key.\n\nYou'll also want to set your Browserbase API key and project ID to run this project in the cloud.\n\n```bash\ncp .example.env .env # Add your API keys to .env\n```\n\n### Custom .cursorrules\n\nWe have custom .cursorrules for this project. It'll help quite a bit with writing Stagehand easily.\n\n### Run on Browserbase\n\nTo run on Browserbase, add your API keys to .env and change `env: \"LOCAL\"` to `env: \"BROWSERBASE\"` in [stagehand.config.ts](stagehand.config.ts).\n\n### Use Anthropic Claude 3.5 Sonnet\n\n1. Add your API key to .env\n2. Change `modelName: \"gpt-4o\"` to `modelName: \"claude-3-5-sonnet-latest\"` in [stagehand.config.ts](stagehand.config.ts)\n3. Change `modelClientOptions: { apiKey: process.env.OPENAI_API_KEY }` to `modelClientOptions: { apiKey: process.env.ANTHROPIC_API_KEY }` in [stagehand.config.ts](stagehand.config.ts)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrowserbase%2Fstagehand-nextjs-quickstart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrowserbase%2Fstagehand-nextjs-quickstart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrowserbase%2Fstagehand-nextjs-quickstart/lists"}