[STG-1808] Deprecate Browserbase project ID
Merged
MO
7mo ago+29+29+01234567890123456789-15-15-01234567890123456789
why
Browserbase API keys are project-scoped, so Stagehand should keep accepting project IDs without requiring them.
what changed
- Mark
browserbaseSessionCreateParams.projectIddeprecated in Zod/OpenAPI. - Make
BROWSERBASE_PROJECT_IDnullable/deprecated in Stainless config. - Use Browserbase-returned
projectIdin the local server instead ofx-bb-project-id.
projectId: z.string().optional().meta({ deprecated: true })
test plan
pnpm --filter @browserbasehq/stagehand run lintpnpm --filter @browserbasehq/stagehand-server-v3 run lint
Summary by cubic
Deprecate Browserbase project ID per STG-1808; Stagehand now relies on project-scoped API keys and the project ID returned by Browserbase. The x-bb-project-id header, session projectId param, and BROWSERBASE_PROJECT_ID config are deprecated but remain optional for now.
-
Refactors
- Marked
projectIdin session create params as deprecated in Zod/OpenAPI; updated security scheme descriptions to reflect deprecation ofx-bb-project-id. - Made
BROWSERBASE_PROJECT_IDnullable and marked deprecated instainless.yml. - Server now resolves
projectIdfrom the retrieved/created Browserbase session; stops readingx-bb-project-idand adjusts validation messages.
- Marked
-
Migration
- Stop sending
x-bb-project-idand removeBROWSERBASE_PROJECT_ID; they’re no longer needed. - Avoid passing
projectIdin session creation; it’s accepted but deprecated.
- Stop sending