## Summary
- add a Mintlify custom script that rewrites generated SDK API reference
schema labels from OpenAPI camelCase to SDK snake_case on Python and
Ruby pages
- keep code/pre/input/script/style content untouched so generated code
samples stay language-correct
- leave Java/Go/TypeScript routes unchanged for now
## Why
Mintlify renders these language-scoped API reference pages from the
Stainless documented OpenAPI spec, so visible schema labels use
wire-format camelCase even when the Python and Ruby SDK snippets use
snake_case.
## Validation
- `pnpm --dir packages/docs exec prettier --check
sdk-api-reference-labels.js`
- `node --check packages/docs/sdk-api-reference-labels.js`
- confirmed Mintlify embeds root-level docs JS by checking the existing
custom script in local/prod HTML and the new script in local HTML
- browser fixture served at `/v3/api-reference/{python,ruby,java}/...`:
Python/Ruby labels rewrote to snake_case, code blocks stayed camelCase,
and Java remained unchanged
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Fixes mismatched parameter labels on Python and Ruby SDK API reference
pages by rewriting OpenAPI camelCase labels to SDK snake_case. Code
samples and inputs remain unchanged; other languages are unaffected.
- **Bug Fixes**
- Added `packages/docs/sdk-api-reference-labels.js` to relabel visible
schema fields for Python and Ruby only.
- Skips `code`, `pre`, `input`, `script`, `style`, and editable elements
to preserve language-correct snippets.
- Reacts to SPA route changes and DOM mutations to keep labels
consistent.
- Leaves Java/Go/TypeScript pages unchanged.
<sup>Written for commit ea143a674cc1a8b55cf39351506e93ecf0d70016.
Summary will update on new commits. <a
href="https://cubic.dev/pr/browserbase/stagehand/pull/2164?utm_source=github">Review
in cubic</a></sup>
<!-- End of auto-generated description by cubic. -->
# why
- bumps to latest mintlify version with various transitive dependency
fixes
# what changed
- bumped mintlify to version `5.2.563`
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Bump `mintlify` in `packages/docs` to ^4.2.563 to pull in upstream fixes
and refresh transitive dependencies for the docs build.
- **Dependencies**
- Updated lockfile; notable bumps include `@mintlify/cli@4.0.1166`,
`@mintlify/common@1.0.895`, `@mintlify/previewing@4.0.1100`,
`@mintlify/validation@0.1.701`, `js-yaml@4.1.1`.
- Modernized tar stack (`tar@7`, `minizlib@3`, `chownr@3`, `yallist@5`),
aligning with Node 18+.
<sup>Written for commit 9bd8ff99768a8b4dce134163162535599892a4c6.
Summary will update on new commits.</sup>
<!-- End of auto-generated description by cubic. -->
# why
this updates a handful of deps we were behind on & avoids breaking docs
# what changed
bumped the following deps:
- `@langchain/openai` to `^1.4.5`
- `@langchain/core` to `^1.1.46`
- `@anthropic-ai/claude-agent-sdk` to `^0.2.141`
- `@fastify/swagger-ui` to `^5.2.6` in `packages/server-v3` &
`packages/server-v4`
- `uuid` to `^11.1.1`
- `vite` to `^7.3.3` in the packages that use `vitest`
- workspace tooling like `@changesets/cli`, `c8`, `eslint`, and `tsup`
added the following `pnpm` overrides:
- `axios`
- `follow-redirects`
- `jws`
- `lodash`
- `minimatch`
- `uuid`
also fixed a `vitest` mock typing issue in
`packages/evals/tests/tui/commandTree.test.ts` that resulted from the
vite bump
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Update workspace dependencies and add `pnpm` overrides to lock
transitive versions, stabilizing builds and preventing docs from
breaking. Also fixes a Vitest typing issue introduced by the Vite
upgrade.
- **Dependencies**
- Bumped: `@langchain/openai` → `^1.4.5`, `@langchain/core` → `^1.1.46`,
`@anthropic-ai/claude-agent-sdk` → `^0.2.141`, `uuid` → `^11.1.1`,
`@fastify/swagger-ui` → `^5.2.6` (server v3/v4).
- Tooling: `vite` → `^7.3.3`, `vitest` → `^4.1.6`, `tsup` → `^8.5.1`,
plus `@changesets/cli`, `c8`, `eslint`.
- Docs: `mintlify` → `^4.2.546` and move OpenAPI path to `api.openapi`
in `packages/docs/docs.json`.
- Added `pnpm.overrides` for `axios`, `follow-redirects`, `jws`,
`lodash`, `minimatch`, `uuid`.
- **Bug Fixes**
- Fixed `vitest` mock typing in
`packages/evals/tests/tui/commandTree.test.ts` by typing handlers
(`CommandHandler`) and `printHelp` mocks.
<sup>Written for commit cd57bdf55f36ffe05bfa0de3e43aa2619d159546.
Summary will update on new commits.</sup>
<!-- End of auto-generated description by cubic. -->
# what changed
- adds new param to reference section
- adds example to "targeted extract" section
<img width="723" height="974" alt="Screenshot 2026-05-06 at 10 36 25 AM"
src="https://github.com/user-attachments/assets/35d676c6-48f0-46c7-8b76-cf319fa7af5e"
/>
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Documented the new `ignoreSelectors` option for `extract()` to exclude
elements (and their descendants) from the snapshot. Added a
targeted-extract example and clarified how it interacts with `selector`,
plus minor wording updates for supported page types.
<sup>Written for commit f039e4503888986e418a3fb4688e11af6551698b.
Summary will update on new commits.</sup>
<!-- End of auto-generated description by cubic. -->
# why
- to add docs for new `ignoreSelectors` param in `observe()`
# what changed
- adds new param to reference section
- adds an example snippet in 'the basics' section
<img width="761" height="792" alt="Screenshot 2026-05-07 at 11 41 26 AM"
src="https://github.com/user-attachments/assets/8e6c636a-a9ed-4c56-ad28-9030c532d995"
/>
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Added docs for the new `ignoreSelectors` option in `observe()` to let
users exclude page regions from observation. Updated the reference with
type and behavior, plus a basics example using XPath and a note on how
it interacts with `selector`.
<sup>Written for commit 35f9577986ff7ec134fbe8c3927f605d39128eb6.
Summary will update on new commits.</sup>
<!-- End of auto-generated description by cubic. -->
# why
- lockfile was unused, leftover from monorepo reorg
# what changed
- removed `packages/docs/pnpm-lock.yaml`
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Removed the unused docs lockfile left over from the monorepo reorg.
Deleting `packages/docs/pnpm-lock.yaml` reduces noise and avoids
confusion about dependency state.
<sup>Written for commit d8a5c2b1da751e3edf2c2271382bb7984278e364.
Summary will update on new commits.</sup>
<!-- End of auto-generated description by cubic. -->
# why
`experimental: true` is no longer required for agent variable support
# what changed
- Removed the experimental gate on agent variables: dropped the
variables check in `validateExperimentalFeatures.ts` and the
@experimental JSDoc on `AgentExecuteOptionsBase.variables`.
- Added a variables field to the AgentExecuteOptions API schema
(`packages/core/lib/v3/types/public/api.ts`) and reflected it in the
generated `openapi.v3.yaml` (both request and output components).
- Updated docs to drop `experimental: true` from the Variables Note and
Basic Usage example (kept the "Non-CUA agents only" caveat).
- Added unit tests covering the new surface
- Added integration coverage on the login eval site: new variables
describe blocks in `act.test.ts` and `agentExecute.test.ts` (simple and
rich { value, description } forms, verified via CDP), and updated
`observe.test.ts`'s existing variables tests to use the same scenario.
# test plan
- [x] pnpm --filter @browserbasehq/stagehand-server-v3 typecheck —
passes.
- [x] pnpm exec prettier --check on the three test files — passes.
- [x] pnpm exec eslint on the three test files — passes.
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Enable variables in v3 `agentExecute` without experimental mode, with
end-to-end substitution across `act`, `observe`, and agent tools.
Tightened `fillFormVision` so secrets are only substituted at type-time
and never leak via logs, replays, or tool outputs.
- **New Features**
- Added `variables` to `AgentExecuteOptionsSchema` and server OpenAPI
(`Variables`).
- Removed experimental gating for variables; CUA-mode rejection remains.
- Updated JSDoc and docs to drop the experimental requirement.
- Added tests: unit (validation, client serialization, schema) and
integration for substitution in `act`, `observe`, and `agentExecute`
(simple and rich forms).
- **Bug Fixes**
- Updated `fillFormVision` to substitute variables only when typing and
keep placeholders in action logs, replays, and returned arguments.
<sup>Written for commit a6e9d621d396cab397bd5348c814629373693cf0.
Summary will update on new commits.</sup>
<!-- End of auto-generated description by cubic. -->
---------
Co-authored-by: Chromie <miguel@browserbase.com>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: tkattkat <tkat@tkat.net>
# why
Stagehand should standardize public docs and runtime overrides on
`STAGEHAND_API_URL` without breaking users who still export
`STAGEHAND_BASE_URL`.
# what changed
- Prefer `STAGEHAND_API_URL`, with `STAGEHAND_BASE_URL` as a deprecated
legacy fallback.
- Emit a one-time deprecation warning when the legacy fallback is used.
- Update server-v3 test env plumbing, CI, and docs to use
`STAGEHAND_API_URL`.
- Add patch changesets for core and server-v3.
```ts
const configuredBaseUrl =
process.env.STAGEHAND_API_URL ?? process.env.STAGEHAND_BASE_URL;
```
# test plan
- `pnpm --filter @browserbasehq/stagehand run build:esm`
- `pnpm --filter @browserbasehq/stagehand run test:core --
packages/core/dist/esm/tests/unit/api-optional-model-api-key.test.js`
- `pnpm --filter @browserbasehq/stagehand run typecheck`
- `pnpm --filter @browserbasehq/stagehand-server-v3 run typecheck`
- `pnpm --filter @browserbasehq/stagehand run lint`
- `pnpm --filter @browserbasehq/stagehand-server-v3 run lint`
- `pnpm exec prettier --check .changeset/rude-tips-check.md
.github/workflows/ci.yml packages/docs/v3/sdk/java.mdx
packages/docs/v3/sdk/python.mdx turbo.json`
- `pnpm changeset status --since origin/main --verbose`
# why
Dom mode has been deprecated for a while, and is now being replaced with
hybrid as a default
# what changed
- When a hybrid capable model is provided, it is used with hybrid mode
by default
- When a non hybrid capable model is provided, it is used with dom mode
- if dom or hybrid is explicitly provided, it will use the provided mode
# test plan
tested locally + wrote tests
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Set the default v3 agent mode to hybrid, with automatic routing to dom
for models that aren’t hybrid-capable. Explicit mode settings are always
respected; CUA behavior is unchanged.
- **New Features**
- Auto-selects "hybrid" for models matching
`HYBRID_CAPABLE_MODEL_PATTERNS` (`gemini-3`, `claude`, `gpt-5.4`,
`gpt-5.5`); otherwise uses "dom".
- Routes using the provided agent model (string or config), or falls
back to the Stagehand-level model when undefined.
- Honors explicit `mode` (`dom`, `hybrid`, `cua`); if `mode` is unset,
deprecated `cua: true` enables CUA.
- Logs the resolved mode and warns when "hybrid" is used with
non-hybrid-capable models.
- Adds unit tests for routing and handler fallbacks.
<sup>Written for commit 01e7d69945369cca735dff9ba088538420e344c9.
Summary will update on new commits. <a
href="https://cubic.dev/pr/browserbase/stagehand/pull/2047">Review in
cubic</a></sup>
<!-- End of auto-generated description by cubic. -->
# why
The docs-only changeset from PR #2017 created release metadata for a
docs workspace package that should not be published to npm.
# what changed
Reverted the generated docs package changelog and version bump while
keeping the actual MCP documentation updates intact.
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Removed accidental release metadata for the docs workspace so it isn’t
treated as a publishable package. Keeps the MCP docs from #2017 intact.
Aligns with Linear STG-1869.
- **Bug Fixes**
- Deleted `packages/docs/CHANGELOG.md`.
- Reset `@browserbasehq/stagehand-docs` version to 1.0.0.
<sup>Written for commit ff9c8eb5122903c20745ebf5237137ea8797499c.
Summary will update on new commits. <a
href="https://cubic.dev/pr/browserbase/stagehand/pull/2057?utm_source=github">Review
in cubic</a></sup>
<!-- End of auto-generated description by cubic. -->
# why
The v3 MCP docs now need to describe the hosted server behavior where
`start` can attach to an existing Browserbase session via an optional
`sessionId`.
# what changed
- Updated the MCP setup and tools docs to document optional
`start.sessionId`.
- Clarified that omitting `sessionId` creates a new Browserbase session.
- Added a patch changeset for `@browserbasehq/stagehand-docs`.
# test plan
- `pnpm exec prettier --check
packages/docs/v3/integrations/mcp/setup.mdx
packages/docs/v3/integrations/mcp/tools.mdx`
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Added docs for optional `sessionId` on MCP `start` to attach to an
existing Browserbase session; omitting it creates a new session.
Addresses STG-1837 and publishes a patch to
`@browserbasehq/stagehand-docs`.
<sup>Written for commit edc7cbdef0ce712d369699589e1b24b426bffdd6.
Summary will update on new commits. <a
href="https://cubic.dev/pr/browserbase/stagehand/pull/2017">Review in
cubic</a></sup>
<!-- End of auto-generated description by cubic. -->
# why
- docs for `page.keyPress()` were missing
# what changed
<img width="730" height="727" alt="Screenshot 2026-04-07 at 1 41 38 PM"
src="https://github.com/user-attachments/assets/1bf50de3-93b6-4fca-b632-cdb80bcfc3da"
/>
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Added docs for `page.keyPress()` in the v3 Page reference. Includes the
method signature, supported keys and modifier combos, the `delay`
option, and examples for single keys and combinations (Enter, Cmd+A,
ArrowDown, Ctrl+C, with delay).
<sup>Written for commit 0cbf3a9c6d34eef6da0cd3ad53b2e49dd88a39c8.
Summary will update on new commits. <a
href="https://cubic.dev/pr/browserbase/stagehand/pull/1974">Review in
cubic</a></sup>
<!-- End of auto-generated description by cubic. -->
## Summary
- Replace the Stagehand light mode logo with the colored version (green
icon instead of all-black)
- Replace the Director icon with the new colored logomark (blue
geometric design)
- Updates both `packages/docs/logo/` and `media/` copies to stay in sync
## Test plan
- [ ] Verify the docs site shows the green Stagehand logo in light mode
- [ ] Verify the Director icon renders correctly where referenced
🤖 Generated with [Claude Code](https://claude.com/claude-code)
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Replaced the Stagehand light-mode logo with its green-colored version
and updated the Director icon to the new blue logomark. Synced assets in
`media/` and `packages/docs/logo/` to keep the docs and site consistent.
<sup>Written for commit 4c151ecad3e24fabf19471eb68589e2096174842.
Summary will update on new commits. <a
href="https://cubic.dev/pr/browserbase/stagehand/pull/1970">Review in
cubic</a></sup>
<!-- End of auto-generated description by cubic. -->
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
## Summary
- Replace old yellow hand icon logos with new "S" logomark across all
locations (README, docs site logos, SVGs)
- Update favicon from old yellow hand to new green "S" logomark
- 10 files updated; no markdown changes needed since filenames were
preserved
## Test plan
- [ ] Verify README logo renders correctly on GitHub (light and dark
mode)
- [ ] Verify docs site logo renders at stagehand.dev
- [ ] Verify favicon appears correctly in browser tab
🤖 Generated with [Claude Code](https://claude.com/claude-code)
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Updated Stagehand branding across docs and assets: replaced the yellow
hand with the green “S” logomark, refreshed dark/light wordmark SVGs,
updated favicons, and set the docs accent color to `#00C851`. Filenames
are unchanged; `packages/docs/logo/light.svg` now uses the new wordmark,
and the docs name is set to “Stagehand”.
- **Migration**
- Verify README logos (light/dark) render on GitHub.
- Verify docs header logos (light/dark) and `/favicon.svg` on
stagehand.dev.
- Confirm docs UI accents use `#00C851`.
- Hard refresh or clear cache to see the new favicon and styles.
<sup>Written for commit 8ebc28c8c68b44aa0b8e11579856533e5894447a.
Summary will update on new commits. <a
href="https://cubic.dev/pr/browserbase/stagehand/pull/1967">Review in
cubic</a></sup>
<!-- End of auto-generated description by cubic. -->
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Mirrored from external contributor PR #1959 after approval by
@miguelg719.
Original author: @chromiebot
Original PR: https://github.com/browserbase/stagehand/pull/1959
Approved source head SHA: `f55ff5558f2454e9f266b7f29ef0b511bd891b9e`
@chromiebot, please continue any follow-up discussion on this mirrored
PR. When the external PR gets new commits, this same internal PR will be
marked stale until the latest external commit is approved and refreshed
here.
## Original description
When using Browserbase, apiKey is now optional for
openai/google/anthropic providers. Replace model object `{ modelName,
apiKey }` with simple string format `"provider/model"` to reduce
friction in docs examples.
Updated files:
- best-practices/caching.mdx (1 instance)
- best-practices/deployments.mdx (1 instance)
- best-practices/deterministic-agent.mdx (4 instances)
# why
# what changed
# test plan
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Switch Browserbase docs snippets to use a single `provider/model` string
for model config, replacing the `{ modelName, apiKey }` object and
omitting `apiKey` where it’s optional for OpenAI, Google, and Anthropic.
Updated examples across Basics (`act`, `agent`) and Best Practices
(`caching`, `deployments`, `deterministic-agent`), including refreshed
Google model IDs like `google/gemini-3-flash-preview` and
`google/gemini-2.5-flash`.
<sup>Written for commit 7dc7863f2f5e89bb87b7b93ea9a5b819d4ada62b.
Summary will update on new commits. <a
href="https://cubic.dev/pr/browserbase/stagehand/pull/1961">Review in
cubic</a></sup>
<!-- End of auto-generated description by cubic. -->
<!-- external-contributor-pr:owned source-pr=1959
source-sha=f55ff5558f2454e9f266b7f29ef0b511bd891b9e claimer=miguelg719
-->
---------
Co-authored-by: Chromie Bot <chromie@browserbase.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Chromie <miguel@browserbase.com>
Co-authored-by: Miguel <36487034+miguelg719@users.noreply.github.com>
# why
# what changed
# test plan
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Adds a new Model Gateway section to the v3 Models docs so users can run
`@browserbasehq/stagehand` with only a Browserbase API key. Includes
setup, provider switching, a note about Browserbase-hosted browsers,
benefits, and API key updates.
- **New Features**
- Added “Model Gateway” docs with setup using `env: "BROWSERBASE"` and
model examples (`openai/gpt-5`, `anthropic/claude-sonnet-4-6`,
`google/gemini-3-flash-preview`); requires Browserbase-hosted browsers
(not `env: "LOCAL"`).
- Included tabs to switch providers without extra keys.
- Listed key benefits (one key/bill, market pricing, reliability, no
tier gates, action caching) and added a supported providers table.
- Updated API keys table to include `BROWSERBASE_API_KEY`, added a
top-page callout linking to the blog, and fixed a model link in the doc.
<sup>Written for commit e54e7a9e625be46d84bad2d05d8fbcab6db4ca84.
Summary will update on new commits. <a
href="https://cubic.dev/pr/browserbase/stagehand/pull/1957">Review in
cubic</a></sup>
<!-- End of auto-generated description by cubic. -->
## Summary
- Remove all `BROWSERBASE_PROJECT_ID` / `projectId` references from v3
docs, SDK docs, integration guides, migration guides, and CLI README (30
files)
- Only `BROWSERBASE_API_KEY` is required — `projectId` is optional in
all code control paths (conditionally included via spread patterns,
never validated as required)
- Preserves unrelated GCP project ID references in `models.mdx`
## Test plan
- [ ] Verify docs site builds without errors
- [ ] Spot-check code examples still make sense without projectId
- [ ] Confirm no broken references or formatting issues
🤖 Generated with [Claude Code](https://claude.com/claude-code)
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Removed all `BROWSERBASE_PROJECT_ID`/`projectId` references across v3
docs so setup only requires `BROWSERBASE_API_KEY`. Also updated
Anthropic model references to `anthropic/claude-sonnet-4-6` across
examples and guides.
- **Migration**
- Remove `BROWSERBASE_PROJECT_ID` from env files, deployment configs,
session params, and env var lists; keep `BROWSERBASE_API_KEY` only.
- Existing code passing `projectId` still works; it’s optional and not
required.
- Unrelated GCP project ID mentions remain unchanged.
- **Refactors**
- Replaced all `anthropic/claude-sonnet-4-20250514` references with
`anthropic/claude-sonnet-4-6` across v3 docs (agent examples, warnings,
best practices).
- Simplified MCP config by removing the `CardGroup` wrapper around a
single card.
<sup>Written for commit 7a1688d2cf03f68e4a14e43259c4edcd205a164a.
Summary will update on new commits. <a
href="https://cubic.dev/pr/browserbase/stagehand/pull/1958">Review in
cubic</a></sup>
<!-- End of auto-generated description by cubic. -->
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
## Summary
- Renamed `@browserbasehq/mcp-server-browserbase` to
`@browserbasehq/mcp` in v2 and v3 MCP docs (setup and configuration
pages)
## Linear
[STG-1769](https://linear.app/browserbase/issue/STG-1769/rename-mcp-package-in-docs)
## Test plan
- [ ] Verify v2 docs render correctly with new package name
- [ ] Verify v3 docs render correctly with new package name
🤖 Generated with [Claude Code](https://claude.com/claude-code)
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Renamed the MCP package in v2 and v3 docs from
`@browserbasehq/mcp-server-browserbase` to `@browserbasehq/mcp`,
updating setup and configuration examples and CLI notes. Also removed an
unnecessary changeset since this is docs-only, aligning with STG-1769.
<sup>Written for commit 501df497ea10e3bdfe17227535d0e61717155355.
Summary will update on new commits. <a
href="https://cubic.dev/pr/browserbase/stagehand/pull/1952">Review in
cubic</a></sup>
<!-- End of auto-generated description by cubic. -->
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
# why
`act()` already supports variables, but `observe()` did not. That made
safety-sensitive flows like login automation harder to use correctly:
callers could inspect `observe()`
results before executing them, but then had to guess which returned
action should receive each secret value before calling `act()`.
This change brings variable support to `observe()` so it can return
placeholder-backed actions like `%username%` and `%password%`. That
preserves the existing safe pattern of:
1. `observe()` candidate actions
2. validate the returned actions
3. `act()` the validated actions with real variable values at execution
time
# what changed
- Added `variables?: Variables` support to `observe()` in the public SDK
types and internal handler params.
- Threaded `observe` variables through the local SDK path, inference
layer, and prompt builder.
- Updated the observe prompt so the model sees available variable names
and returns `%variableName%` placeholders in action arguments instead of
literal sensitive values.
- Added observe variable support to the hosted/API path, including
schema updates and flattening rich variable values to the existing wire
format.
- Updated the internal `fillForm` tool to pass variables into
`observe()` as well as `act()`.
- Added docs for `observe({ variables })` and the validate-then-act
login flow.
- Added a dedicated example at
`packages/core/examples/observe_variables_login.ts` showing
placeholder-based login planning with `observe()`, explicit validation,
and execution via
`act()`.
# test plan
- Ran targeted unit tests covering:
- public `ObserveOptions` type support
- observe variable forwarding into inference/prompting
- placeholder preservation in returned observe actions
- API client observe variable serialization
- `fillForm` forwarding variables to `observe()`
- Ran:
- `pnpm --filter @browserbasehq/stagehand exec vitest run --config
/tmp/stagehand-vitest-source.config.mjs
tests/unit/public-api/public-types.test.ts tests/unit/agent-execution-
model.test.ts tests/unit/timeout-handlers.test.ts
tests/unit/api-client-observe-variables.test.ts`
- Ran formatting checks on changed files with Prettier.
- Added integration coverage for observe request schemas in both v3 and
v4 server tests.
- Full repo typecheck/build is still blocked by unrelated pre-existing
issues in `packages/core/lib/v3/launch/browserbase.ts` and existing
server test environment/type-resolution
failures.
# why
- to add docs for the new `page.setExtraHTTPHeaders()` function
# what changed
### added docs to the page reference section:
<img width="748" height="525" alt="Screenshot 2026-03-17 at 1 49 33 PM"
src="https://github.com/user-attachments/assets/a97d8903-a17d-4af4-88e6-5d9770cb7227"
/>
### added an example in the code examples section:
<img width="724" height="766" alt="Screenshot 2026-03-17 at 1 50 26 PM"
src="https://github.com/user-attachments/assets/3e3da652-70db-4758-b388-c04316f99895"
/>
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Added docs for `page.setExtraHTTPHeaders()` in the Page reference and
examples, covering page‑scoped behavior (applies to all requests and
child sessions) and how to replace or clear headers. Addresses Linear
STG-1413.
<sup>Written for commit be130f0512fbdd7cc9d843a38ea74d18c1d87969.
Summary will update on new commits. <a
href="https://cubic.dev/pr/browserbase/stagehand/pull/1842">Review in
cubic</a></sup>
<!-- End of auto-generated description by cubic. -->
# Why
Add Browserbase Search API as the primary search tool for agents (`POST
/v1/search`), leveraging the Browserbase API key users already have
configured. Brave Search remains fully supported as a backwards
compatible fallback for existing users with `BRAVE_API_KEY` set.
# What Changed
- **Browserbase Search tool**: New search tool powered by the
Browserbase Search API, enabled via `useSearch: true` in
`agent.execute()`.
- **Brave Search (backwards-compatible)**: Existing users with
`BRAVE_API_KEY` in their environment continue to get the search tool
automatically with no code changes required.
- **Priority**: `useSearch: true` with a Browserbase API key takes
precedence. If not set, falls back to Brave if `BRAVE_API_KEY` is
present.
- **Validation**: If `useSearch: true` is set without a valid
Browserbase API key, a clear error is thrown at preparation time (before
the agent loop starts).
- **Separate files**: `browserbaseSearch.ts` and `braveSearch.ts` keep
the implementations cleanly isolated.
```typescript
const agent = stagehand.agent({ mode: "hybrid" });
const result = await agent.execute({
instruction: "use the search tool to find me the capital of france",
useSearch: true,
});
```
# Test Plan
- [x] Run agent with `useSearch: true` and a valid `BROWSERBASE_API_KEY`
— Browserbase search tool should return results
- [x] Run agent with `useSearch: true` and no Browserbase API key —
should throw `MissingEnvironmentVariableError`
# why
Sync the Stagehand MCP docs with the Browserbase MCP docs for STG-1576.
# what changed
Copied the refreshed Browserbase MCP introduction and setup pages into
`packages/docs/v3/integrations/mcp`.
# test plan
`pnpm exec prettier --check packages/docs/docs.json
packages/docs/v3/integrations/mcp/introduction.mdx
packages/docs/v3/integrations/mcp/setup.mdx`; `pnpm --dir packages/docs
exec mint broken-links` (unrelated existing failures only); `pnpm lint`
fails in `packages/core` on an existing ESLint rule config issue.
---------
Co-authored-by: ci-test <ci-test@example.com>
# Follow-up Tasks
- [ ] Update stainless SDK custom code for all languages to pull new
`stagehand-server-v3-darwin-x64` binary names (`-v3-` added)
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Split the Stagehand API into `packages/server-v3` and
`packages/server-v4`, each with its own builds, tests, SEA binaries, and
release workflows. Delivers STG-1536 and lets us keep v3 stable while
iterating on v4; CI/test discovery and OpenAPI artifacts are versioned.
- **Refactors**
- Renamed the original server to `packages/server-v3`
(`@browserbasehq/stagehand-server-v3`); updated docs and runtime path
helpers (now synced across core/docs/evals and both servers), ESLint
globs/ignores, scripts/Turbo filters, tests, and Stainless to read
`packages/server-v3/openapi.v3.yaml`; v3 SEA binaries use
`stagehand-server-v3-*`.
- Added `packages/server-v4` (`@browserbasehq/stagehand-server-v4`) with
`/v4/**` routes, SSE streaming via `x-stream-response`, LRU/TTL
in-memory session store, health/readiness, logging/metrics,
`openapi.v4.yaml` + generator, SEA tooling, and v4 integration tests.
- CI: path filters, test discovery, and artifacts cover both versions;
added `stagehand-server-v4-release.yml` and
`stagehand-server-v4-sea-build.yml`; renamed v3 workflows; artifacts
include `packages/server-v3/**` and `packages/server-v4/**` dists and
OAS.
- **Migration**
- Replace `packages/server/**` refs with `packages/server-v3/**` or
`packages/server-v4/**`.
- Use new package filters and binary names:
`@browserbasehq/stagehand-server-v3` /
`@browserbasehq/stagehand-server-v4`; `stagehand-server-v3-*` /
`stagehand-server-v4-*`.
- Update OpenAPI consumers to `packages/server-v3/openapi.v3.yaml` or
`packages/server-v4/openapi.v4.yaml`.
<sup>Written for commit 2b9114ca8097d28ac1567fc67062b24f789a5c2e.
Summary will update on new commits. <a
href="https://cubic.dev/pr/browserbase/stagehand/pull/1796">Review in
cubic</a></sup>
<!-- End of auto-generated description by cubic. -->
## Summary
Restructures the caching best practices docs page into two clear
sections:
### Changes
- **Removed** the disclaimer/note about server-side caching only working
with `env: "BROWSERBASE"` — this is now naturally conveyed in the
section description
- **Renamed** "Server-side Caching" → **"Browserbase Cache"** with a
clear description of what it is (managed, server-side, automatic,
zero-config)
- **Renamed** "Local Caching" → **"Local Cache"** with a clear
description of what it is (file-based, works everywhere, portable)
- **Added** use-case bullets to the Local Cache section explaining when
to reach for it (agent workflows, CI/CD, local dev, cross-machine
sharing)
- **Preserved** all existing code snippets, configuration examples, and
best practices
### What stays the same
- All code examples (disabling on constructor, disabling per call,
inspecting cache status, act/agent caching, cache directory
organization)
- The limitations section for Browserbase Cache
- The best practices accordion (descriptive dirs, clearing cache,
committing for CI/CD)
- The blog link for deeper technical details
Only modifies `packages/docs/v3/best-practices/caching.mdx`.
Linear: https://linear.app/browserbase/issue/STG-1482
Fixes CE-731
## Summary
- Remove Claude 3.5 Sonnet (`claude-3-5-sonnet-latest`, `-20241022`, `-20240620`) and Claude 3.7 Sonnet (`claude-3-7-sonnet-latest`, `-20250219`) from all supported model lists
- These models are **retired** by Anthropic — API calls to them will fail
- Replace with `claude-sonnet-4-20250514` across evals, CI, docs, and examples
## What changed (27 files)
- **Core types**: Removed from `model.ts` type union, `agent.ts` CUA models list
- **Provider mappings**: Removed from `LLMProvider.ts`, `AgentProvider.ts`, server `utils.ts`, server `model.ts`
- **Evals/CI**: Updated `taskConfig.ts`, `initV3.ts`, `ci.yml`, `.env.example` to use `claude-sonnet-4-20250514`
- **Tests**: Updated `model-deprecation.test.ts` and `llm-and-agents.test.ts` (513/513 pass)
- **Docs**: Updated all v2 and v3 documentation references (11 `.mdx` files)
- **Other**: Issue template, MCP example
## Context
Per [Anthropic's model deprecations page](https://docs.anthropic.com/en/docs/resources/model-deprecations):
| Model | Retired |
|-------|---------|
| `claude-3-5-sonnet-20240620` | Oct 28, 2025 |
| `claude-3-5-sonnet-20241022` | Oct 28, 2025 |
| `claude-3-7-sonnet-20250219` | Feb 19, 2026 |
## Test plan
- [x] All 513 unit tests pass (`pnpm exec turbo run test:core`)
- [x] `grep` confirms zero remaining references outside CHANGELOG.md (historical)
- [ ] Verify CI passes
🤖 Generated with [Claude Code](https://claude.com/claude-code)
# what changed
- added documentation for the `context.setExtraHTTPHeaders()` function
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Add v3 docs for context.setExtraHTTPHeaders(), including API,
context-wide behavior (applies to all pages, replaces not merges, clear
via {}), examples, and error docs. Also updates the V3Context interface
to include this method; addresses Linear STG-1414.
<sup>Written for commit c6f64eed49a8d6abed34e1784d8f1626cb294e0e.
Summary will update on new commits. <a
href="https://cubic.dev/pr/browserbase/stagehand/pull/1762">Review in
cubic</a></sup>
<!-- End of auto-generated description by cubic. -->
# why
- adds documentation for the new `keepAlive` param
### note:
- hold off on merging until after release
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Add keepAlive docs to Stagehand, detailing behavior in Browserbase and
Local, close() semantics, defaults/overrides, and how to reconnect via
browserbaseSessionID. Addresses Linear STG-1380.
<sup>Written for commit 6eaa9cdd7e1fbb5052f30d8c2b4578965e4a3039.
Summary will update on new commits. <a
href="https://cubic.dev/pr/browserbase/stagehand/pull/1747">Review in
cubic</a></sup>
<!-- End of auto-generated description by cubic. -->
# why
- adds documentation for the following new functions:
- `context.addCookies()`
- `context.clearCookies()`
- `context.cookies()`
### note:
- hold off on merging until after release
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Add V3 docs for cookie management in context: cookies(), addCookies(),
and clearCookies, with examples and type definitions to help users
manage auth and state. Connects to Linear STG-1409; merge after the
release that includes these APIs.
<sup>Written for commit 4ad34e1ab83fda4a4119889dfbca650a788fbc48.
Summary will update on new commits. <a
href="https://cubic.dev/pr/browserbase/stagehand/pull/1748">Review in
cubic</a></sup>
<!-- End of auto-generated description by cubic. -->
# why
we recommend people pin their zod version in docs which is no longer
necessary
# what changed
removed v3 pinning from zod imports in docs
update tool import to import from stagehand
# test plan
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Remove zod v3 pinning across docs and examples by importing from zod.
Switch tool imports to @browserbasehq/stagehand and update .cursorrules
and claude.md examples to match the current API.
<sup>Written for commit 0a047f8e4c035053459e1a6953531cfff796d2cb.
Summary will update on new commits. <a
href="https://cubic.dev/pr/browserbase/stagehand/pull/1743">Review in
cubic</a></sup>
<!-- End of auto-generated description by cubic. -->
# why
# what changed
# test plan
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Fixes the Windows SEA build and cross‑platform path resolution
(including when run via tsx). CI builds, launches, and smoke‑tests
Linux, macOS, and Windows binaries (x64/arm64); CJS/ESM outputs are
stable.
- Bug Fixes
- Reusable SEA build workflow with a full OS/arch matrix (incl. Ubuntu
24.04 ARM and Windows 11 ARM), same‑arch launch check against /healthz,
selective artifact upload, and an include_sourcemaps toggle (dev/test
only; releases exclude sourcemaps).
- Centralized runtimePaths helpers across core/server/evals/docs to
replace import.meta/fileURLToPath, fix tsx path resolution, normalize
absolute paths, and correct supervisorClient CLI resolution and Windows
spawning.
- Tooling: split DOM script builds into four Turbo tasks for Windows;
switch to in‑process esbuild and Node‑invoked turbo/postject; stabilize
CJS/ESM via tsc emits plus small CJS wrappers; refine tsconfig includes;
add default NODE_ENV/BB_ENV in server env.
<sup>Written for commit b0b191f7b0411b6590a79ce3f10b3fba9435b4d7.
Summary will update on new commits. <a
href="https://cubic.dev/pr/browserbase/stagehand/pull/1734">Review in
cubic</a></sup>
<!-- End of auto-generated description by cubic. -->
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Medium Risk**
> Touches build/CI and packaging code (SEA generation, path resolution)
across multiple packages, so failures could break releases or CI on
specific platforms despite being largely tooling-focused.
>
> **Overview**
> Fixes cross-platform SEA building by moving `build-server-sea` to a
reusable workflow with a multi-OS/arch matrix (including ARM runners),
optional artifact/caching inputs, selective artifact upload, and a
same-arch smoke test that boots each binary and hits `/healthz`.
>
> Standardizes path/root resolution via new `runtimePaths` helpers
(core/server/evals/docs) and replaces ad-hoc
`fileURLToPath(import.meta.url)`/`__dirname` usage across scripts,
tests, and `supervisorClient` (also tightening CLI resolution and SEA
detection).
>
> Simplifies build/tooling: core CJS/ESM builds now rely on `tsc` emits
plus small CJS wrapper entrypoints (dropping esbuild bundling of
core/tests), DOM script generation is split into separate Turbo tasks,
server SEA build switches to in-process `esbuild` and Node-invoked
`turbo`/`postject`, and server env config now provides default
`NODE_ENV`/`BB_ENV` values.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
2e4a07a6d0b54eddb7fea10d079c8062ecba1d6b. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
# why
# what changed
# test plan
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Added a Note to the caching best-practices doc explaining server-side
caching when running env: "BROWSERBASE" (STG-1447). It’s enabled by
default for act(), extract(), and observe(); repeated calls with the
same inputs return instantly, and you can disable it via serverCache:
false or per call, with a blog link for details.
<sup>Written for commit 4b6181fbb16ae793ec01b0c274ab7b28495b5253.
Summary will update on new commits. <a
href="https://cubic.dev/pr/browserbase/stagehand/pull/1742">Review in
cubic</a></sup>
<!-- End of auto-generated description by cubic. -->
# why
From [1690](https://github.com/browserbase/stagehand/pull/1690/changes)
shoutout @huuyafwww !
This enables agent to connect to MCP servers that require Authorization
headers.
# what changed
connectToMCPServer was modified to accept options for
StreamableHTTPClientTransport as arguments.
# test plan
A public api test was added
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Low Risk**
> Small additive API change that only affects MCP HTTP connection setup;
minimal behavior change unless callers opt into `requestOptions`.
>
> **Overview**
> `connectToMCPServer` now accepts `requestOptions` and forwards them to
`StreamableHTTPClientTransport`, enabling HTTP connections to MCP
servers that require request-header auth (e.g., `Authorization`).
>
> Updates the public API type test to include `requestOptions`, adds
docs showing a header-authenticated connection example, and publishes
patch changesets for `@browserbasehq/stagehand` and
`@browserbasehq/stagehand-docs`.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
657b7d5fb2350ec2d171175b366b72b671a7315e. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Enable header-based auth for MCP HTTP connections. connectToMCPServer
now accepts requestOptions and forwards them to
StreamableHTTPClientTransport.
- **New Features**
- Added requestOptions to connectToMCPServer for HTTP transports to pass
headers like Authorization.
- Updated docs with an authenticated MCP server example, expanded the
public API type test, and limited the changeset bump to
@browserbasehq/stagehand (docs package bump removed).
<sup>Written for commit 6cee1df669b8011ebd54a164e3c7d5aee2b16dcd.
Summary will update on new commits. <a
href="https://cubic.dev/pr/browserbase/stagehand/pull/1735">Review in
cubic</a></sup>
<!-- End of auto-generated description by cubic. -->
---------
Co-authored-by: huuyafwww <huuya.yamauchi@3-shake.com>
Co-authored-by: ci-test <ci-test@example.com>
# Why
Users need a way to pass sensitive data (passwords, API keys, personal
info) to agent executions without exposing the actual values to the LLM.
This also enables reusable agent scripts where variable values can
change without invalidating cached executions.
## Usage
```typescript
const agent = stagehand.agent({
model: "google/gemini-3-flash-preview",
mode: "hybrid"
});
await agent.execute({
instruction: "Log in to the dashboard",
variables: {
username: { value: "john@example.com", description: "The user's email address" },
password: { value: process.env.USER_PASSWORD, description: "The user's password" },
},
});
```
# What Changed
- Added `variables` option to `agent.execute()` accepting
`Record<string, { value: string | number | boolean; description: string
}>`
- LLM sees variable names and descriptions in system prompt, uses
`%variableName%` syntax in tool calls
- Variable substitution implemented in `act`, `type`, `fillForm`, and
`fillFormVision` tools
- Sensitive values never returned to LLM in tool outputs
- Cache keys use variable names only (not values) - changing values
won't invalidate cache
- Feature requires `experimental: true`, not supported in CUA mode
- Shared utilities in `agent/utils/variables.ts`
# Test Plan
- [x] Test agent execution with variables for login flow
(username/password)
- [x] Verify LLM correctly uses `%variableName%` syntax in tool calls
- [x] Confirm sensitive values don't appear in LLM responses/tool
outputs
- [x] Test cache hit when variable values change but names stay same
- [x] Verify error thrown when `variables` used without `experimental:
true`
- [x] Verify error thrown when `variables` used with CUA mode
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Add first-class variables to agent.execute and act with a single
VariableValue type. Use %name% placeholders that are swapped at runtime,
never shown to the LLM, and cached by variable names only.
- **New Features**
- Unified API: Variables = Record<string, VariableValue> where
VariableValue = string | number | boolean | { value; description? };
shared utils: resolveVariableValue, substituteVariables,
flattenVariables.
- Prompt/tool UX: System prompt adds a variables section (names,
optional descriptions, usage and example); tool inputs list available
variables; %name% supported in act, type, fillForm, and fillFormVision
(hybrid included).
- Runtime safety: Substitution only during execution; logs/replay keep
original %tokens%; tool outputs never include sensitive values.
- Cache: Keys include variable names only; replay substitutes current
values across act/fillForm steps.
- Guardrails/docs: Requires experimental: true; blocked in CUA mode with
clear errors; docs updated for agent variables and act reference.
<sup>Written for commit 02a9cd584d37dabe20d2f8a624eae88ed044c282.
Summary will update on new commits. <a
href="https://cubic.dev/pr/browserbase/stagehand/pull/1580">Review in
cubic</a></sup>
<!-- End of auto-generated description by cubic. -->
---------
Co-authored-by: Shrey Pandya <shrey@browserbase.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
## Summary
- Adds a **Google Vertex** tab to the First Class Models section in the v3 models docs
- Documents the `experimental: true` requirement, model object format (`project`, `location`, `googleAuthOptions`), and service account credentials setup
- Adds Google Vertex to the API key troubleshooting table
This was requested in Discord — the `vertex/` provider is fully supported in code but was missing from documentation.
## Test plan
- [ ] Verify the new tab renders correctly on the docs site
- [ ] Confirm code snippet matches the accepted `GoogleVertexProviderSettings` type
🤖 Generated with [Claude Code](https://claude.com/claude-code)
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Added Google Vertex configuration to v3 models docs. New tab with TS example using vertex/gemini-3-flash-preview, service account setup, and required fields (project, location, googleAuthOptions) with experimental: true; updated troubleshooting to say “Vertex” and point to service account credentials.
<sup>Written for commit c7ed246476436dc3581ae8d0699d8acb50f1d99b. Summary will update on new commits. <a href="https://cubic.dev/pr/browserbase/stagehand/pull/1696">Review in cubic</a></sup>
<!-- End of auto-generated description by cubic. -->
# why
Server-side multi-region support enabled for all Browserbase regions:
- `us-west-2` (default)
- `us-east-1`
- `eu-central-1`
- `ap-southeast-1`
# what changed
Added multi-region routing to the Stagehand API client so requests use
the endpoint that matches the Browserbase session’s region. Updates
OpenAPI and docs, adds tests, and fixes STAGEHAND_API_URL handling.
### **New Features**
- Route API calls by session region via
REGION_API_URLS/getApiUrlForRegion; supports us‑west‑2 (default),
us‑east‑1, eu‑central‑1, ap‑southeast‑1.
- Store the session region in the client; remove the non–us‑west‑2
restriction.
- Add BrowserbaseRegion schema/type; unit tests for region→URL and /v1
suffix; integration tests verify non‑default regions return available:
true.
- OpenAPI adds regional servers and shared BrowserbaseRegion schema.
- Docs: add region/endpoint table, setup examples, mismatch error
guidance, and the disableAPI option.
### **Bug Fixes**
- Ensure STAGEHAND_API_URL resolves to exactly one /v1.
- Update SDK error messages to reference disableAPI.
- Fix OpenAPI table rendering by removing blank lines between markdown
table rows.
# test plan
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Adds multi-region routing to the Stagehand API client so requests use
the API that matches the Browserbase session’s region. Updates v3
OpenAPI/docs and tests; honors and normalizes STAGEHAND_API_URL; v2 docs
changes remain reverted.
- New Features
- Route API calls by session region (us-west-2 default, us-east-1,
eu-central-1, ap-southeast-1); removed the us‑west‑2‑only restriction.
- Add REGION_API_URLS/getApiUrlForRegion and store session region; v3
OpenAPI adds regional servers and a shared BrowserbaseRegion schema;
docs add region table, mismatch guidance, and disableAPI examples.
- Bug Fixes
- Normalize STAGEHAND_API_URL to include exactly one /v1;
getApiUrlForRegion always returns a /v1 URL; SDK error text references
disableAPI.
- Fix OpenAPI rendering (literal scalar description, quoted versions)
and preserve table formatting in generated YAML.
- Tests: add unit and integration coverage for regions; use try/finally
to prevent session leaks; remove unused env scaffolding; use
LOCAL_BROWSER_BODY in multiRegion tests for CI stability.
<sup>Written for commit cbdaf178fb35d1658b56a00697c2b06cb953a295.
Summary will update on new commits. <a
href="https://cubic.dev/pr/browserbase/stagehand/pull/1673">Review in
cubic</a></sup>
<!-- End of auto-generated description by cubic. -->
---------
Co-authored-by: Chromie <miguel@browserbase.com>
Co-authored-by: Chromie Bot <chromie@browserbase.com>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
## Summary
- Added 5 missing CUA models to all documentation pages: `anthropic/claude-opus-4-5-20251101`, `anthropic/claude-opus-4-6`, `google/gemini-3-flash-preview`, `google/gemini-3-pro-preview`, and `microsoft/fara-7b`
- Updated provider mentions from "Google, Anthropic, and OpenAI" to include Microsoft across all CUA-related docs
- Organized model lists alphabetically by provider for consistency
The codebase (`AVAILABLE_CUA_MODELS` in `agent.ts`) supports 12 CUA models but the docs only listed 7. This brings the docs in sync with the source of truth.
## Test plan
- [ ] Verify the models page renders the updated accordion table correctly
- [ ] Verify the agent reference page lists all 12 models
- [ ] Verify the computer-use best practices page mentions Microsoft
- [ ] Verify the agent basics page mentions Microsoft
🤖 Generated with [Claude Code](https://claude.com/claude-code)
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Added five missing CUA models—anthropic/claude-opus-4-5-20251101, anthropic/claude-opus-4-6, google/gemini-3-flash-preview, google/gemini-3-pro-preview, and microsoft/fara-7b—and updated provider mentions to include Microsoft. This syncs all CUA docs with the 12 models supported in the codebase and alphabetizes lists by provider.
<sup>Written for commit d1d5f3d727bd4ecc1c868ebfd911dd95a0c16257. Summary will update on new commits. <a href="https://cubic.dev/pr/browserbase/stagehand/pull/1693">Review in cubic</a></sup>
<!-- End of auto-generated description by cubic. -->
# why
- unit tests, e2e integration tests, and evals were taking 10~15 minutes
per pr
- finding the specific failing eval or test was tedious and required
reading tons of log output
- we weren't leveraging pnpm or turbo caches or github action's native
chromium install
- tests were flaky because CDP would randomly fail to connect when
github actions runner was overloaded
- e2e bb tests were not actually running against bb, so it was
previously just double-running e2e:local and reporting it as bb
- tsup has been deprecated for a while and should be replaced by esbuild
# what changed
- parallelized all CI tests and broke out evals and tests into
individual matrix jobs
- created unified node+pnpm+turbo setup action that all other actions
call
- verified vanilla chromium is able to launch inside all the e2e local
jobs before running any of our own code to catch resource contention
flakyness
- add proper esm and csj builds with sourcemaps and types for aligned
coverage
- remove tsup dependency
- switch to new evals cli
- add coverage reporting
- fix some flaky tests needed to get everything passing reliably
<img width="1635" height="609" alt="Screenshot 2026-01-26 at 1 04 04 PM"
src="https://github.com/user-attachments/assets/24bb2ea9-e182-4cb3-9856-6a77efe921b7"
/>
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Speeds up CI and makes tests stable by running Vitest/Playwright/Evals
on the built ESM dist with cached artifacts, verified runner Chromium,
weighted Browserbase routing, and merged coverage. Publishes a unified
ESM+CJS SDK with sourcemaps/types and SEA binaries from ESM; fixes
Browserbase e2e, switches to the new Evals CLI, and adds flaky‑test
reporting, addressing Linear STG‑1232.
- **New Features**
- CI: split pnpm/Turbo caches; composite actions (setup/caches, Chromium
launch check, region selection, CTRF/V8 uploads); reuse artifacts; use
Actions Chromium via CHROME_PATH with --no-sandbox; unique CTRF reports;
V8 coverage normalization/merge with cancellation safety; push triggers
enabled.
- Tests: run from dist/esm; env reporter; true Browserbase runs with
weighted/randomized regions; hard timeouts for LLM and session
create/CDP connect; faster multi‑click dispatch; higher timeouts and
targeted skips; cleanup helpers; fixes for init‑script,
wait‑for‑selector, and screenshot reliability.
- Build/SDK/SEA: export map (ESM import + CJS require) with
sourcemaps/types; SEA binaries built from ESM with sourcemaps and plain
logs in CI; removed tsup and dotenv; AISdk/CustomOpenAI moved to lib and
exported; getAISDKLanguageModel added; replay metrics now include
method/parameters/result/timestamps/cost.
- **Migration**
- Set STAGEHAND_BROWSER_TARGET=local|browserbase, STAGEHAND_ENV
(replaces TEST_ENV), CHROME_PATH; tune LLM_MAX_MS,
BROWSERBASE_SESSION_CREATE_MAX_MS, BROWSERBASE_CDP_CONNECT_MAX_MS;
optionally set BROWSERBASE_REGION_DISTRIBUTION.
- Remove dotenv; set env vars directly and import
@browserbasehq/stagehand via the export map (avoid dist paths).
<sup>Written for commit 5c76fecf6b9016f4ad5273d4143c3fe747b5d06f.
Summary will update on new commits. <a
href="https://cubic.dev/pr/browserbase/stagehand/pull/1632">Review in
cubic</a></sup>
<!-- End of auto-generated description by cubic. -->
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Ships an ESM‑first SDK with a CJS entry, unified sourcemaps, and types.
CI runs Vitest/Playwright and the new Evals CLI against the built ESM
dist using the runner’s Chromium (launch‑verified), with region‑weighted
Browserbase routing, normalized V8 coverage, unique CTRF artifacts, and
more stable tests (timeouts, Browserbase skips, understudy click/API
fixes).
Speed up CI by running Vitest and Playwright tests in parallel matrices,
add V8/CTRF coverage, and stabilize Browserbase/LLM flows with hard
timeouts and better cleanup. Server integration tests now use the
runner’s Chromium for reliability and are folded into the main CI.
- **Refactors**
- Parallelized core unit tests via discover-core-tests/core-unit-tests
(Vitest matrix, fail-fast).
- Parallelized E2E via discover-e2e-tests (Playwright local +
Browserbase) gated on core changes; weighted Browserbase region
selection; verify Chromium/CDP before tests; local uses runner Chromium
via CHROME_PATH and --no-sandbox; Playwright can emit JUnit when
CTRF_JUNIT_PATH is set.
- Unified Lint & Build with Turbo caching and shared artifacts;
tests/evals download and reuse; prepare script skips build in CI; SEA
builds support sourcemaps.
- Enforced configurable timeouts and parallelism via env (LLM_MAX_MS,
BROWSERBASE_CDP_CONNECT_MAX_MS, BROWSERBASE_SESSION_CREATE_MAX_MS,
LOCAL_SESSION_LIMIT_PER_E2E_TEST,
BROWSERBASE_SESSION_LIMIT_PER_E2E_TEST, EVAL_*); added LLM and
Browserbase hard timeouts; improved click event dispatch to reduce
remote flakiness.
- Explicitly close Browserbase sessions in tests and evals to free
capacity.
- Added composite actions: setup-node-pnpm-turbo,
verify-chromium-launch, select-browserbase-region, publish-ctrf-report
(JUnit→CTRF and evals), upload-v8-coverage.
- Renamed TEST_ENV to STAGEHAND_ENV across E2E; added an env reporter
for CI logs; removed the standalone stagehand-server tests workflow and
ran server tests in the unified CI with Node’s test runner and GitHub
Actions Chromium.
- **New Features**
- Build/Exports: ESM in dist/esm and CJS in dist/cjs via export map;
types from ESM; SEA binaries built from dist with sourcemaps; server SEA
job targets CJS; new build/test/coverage scripts; Node loader maps
package imports to dist/esm; ESM‑safe pathing (fileURLToPath);
ESLint/Prettier tweaks; dotenv removed.
- CI: Composite actions (setup-node-pnpm-turbo, verify-chromium-launch,
select-browserbase-region, upload-ctrf-report, upload-v8-coverage); uses
runner Chromium via CHROME_PATH with --no-sandbox and launch checks;
weighted Browserbase region selection; unique CTRF artifacts; V8
coverage normalized/merged with debug logs and graceful cancellation;
Playwright/Vitest discover tests in dist/esm; push/PR triggers enabled.
- Tests & API: Vitest/Playwright run on dist/esm; new env reporter and
closeV3 helper; tighter multi‑click CDP dispatch; higher timeouts and
targeted skips (e.g., console on Browserbase) reduce flakiness; local
launches honor CHROME_PATH; replay metrics now include
parameters/result/timestamps/cost with parser fixes; AISdk/CustomOpenAI
clients moved to lib/v3/external_clients and exported; env‑driven hard
timeouts for LLM ops and Browserbase session create/CDP connect;
understudy API usage fixes.
- **Migration**
- Set STAGEHAND_BROWSER_TARGET=local|browserbase and CHROME_PATH; tune
LLM_MAX_MS, BROWSERBASE_SESSION_CREATE_MAX_MS, and
BROWSERBASE_CDP_CONNECT_MAX_MS; optionally set
BROWSERBASE_REGION_DISTRIBUTION.
- dotenv support is removed; set env vars explicitly in dev and CI.
- Import @browserbasehq/stagehand via the export map; do not reference
dist paths or prior tsup outputs.
<sup>Written for commit 8119145426a4e6e5cb614dee5b3f2d8fe41a65e9.
Summary will update on new commits. <a
href="https://cubic.dev/pr/browserbase/stagehand/pull/1632">Review in
cubic</a></sup>
<!-- End of auto-generated description by cubic. -->
## Summary
- Fixes invalid Python syntax in the "Connecting to your local browser"
docs example
- The `cdp_url` was written using keyword argument syntax
(`cdp_url="..."`) inside a dictionary literal `{}`, which is a syntax
error in Python
- Changed to proper dictionary syntax (`"cdp_url": "..."`)
Fixes#1288
## Test plan
- [x] Verify the corrected code example is valid Python syntax
🤖 Generated with [Claude Code](https://claude.com/claude-code)
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Fixes invalid Python dictionary syntax in the local browser
configuration docs by changing cdp_url="..." to "cdp_url": "...". This
removes the syntax error so the example runs when copy-pasted.
<sup>Written for commit c6bf3686b2f40d4d46c0d01b84870ba565fa6c11.
Summary will update on new commits. <a
href="https://cubic.dev/pr/browserbase/stagehand/pull/1684">Review in
cubic</a></sup>
<!-- End of auto-generated description by cubic. -->
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
## Summary
- Add documentation for using Stagehand with Convex applications
- Include installation, configuration, and usage examples for extract, act, observe, and agent APIs
- Add Convex to the docs navigation under Integrations (v3 only)
## Test plan
- [ ] Verify docs build successfully
- [ ] Check navigation shows Convex integration
- [ ] Confirm redirect works for `/integrations/convex/`
🤖 Generated with [Claude Code](https://claude.ai/code)
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Adds Convex integration docs with install, env vars, session management, model config, and usage examples (extract, act, observe, agent). Updates docs nav and redirects, and fixes example import paths and required constructor config; standardizes zod imports.
- **New Features**
- Added v3 pages: integrations/convex/introduction and integrations/convex/configuration.
- Added “Convex” to Integrations nav.
- Added redirect /integrations/convex/* -> /v3/integrations/convex/*.
- **Bug Fixes**
- Corrected package usage and import paths to @browserbasehq/convex-stagehand in all examples.
- Fixed Stagehand constructor and model config examples to include required keys: browserbaseApiKey, browserbaseProjectId, modelApiKey.
- Added zod to install and standardized imports to zod; updated model example to anthropic/claude-sonnet-4-5.
<sup>Written for commit 2f6b47b90fa615f4f075a373d62f2c32ed031cf4. Summary will update on new commits. <a href="https://cubic.dev/pr/browserbase/stagehand/pull/1658">Review in cubic</a></sup>
<!-- End of auto-generated description by cubic. -->
# why
We do not currently have documentation on the structured output feature
within agent
# what changed
added documentation for usign structured output with aget
# test plan
ran mintlify dev, and looked at docs
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Adds documentation for the Agent structured output feature, showing how
to define a Zod schema via the output option and read data from
result.output. Clarifies availability (non-CUA agents) and the need for
experimental: true.
- **New Features**
- Added “Structured Output” guides to basics and reference docs.
- Documented output in AgentExecuteOptions/AgentStreamExecuteOptions and
result.output in AgentResult/AgentStreamResult.
- Included examples: basic extraction, complex arrays, and streaming,
with notes on non-CUA and experimental requirement.
<sup>Written for commit 2ce65f30c688e6b1771517beb22a31ee81f06426.
Summary will update on new commits. <a
href="https://cubic.dev/pr/browserbase/stagehand/pull/1676">Review in
cubic</a></sup>
<!-- End of auto-generated description by cubic. -->
# why
New open source models are released, and don't necessarily have a great
inference provider at all times. Seeing as we're already using the
AI-SDK, it makes sense to add support for the AI Gateway.
# what changed
Added Vercel AI Gateway as a provider to the llm providers list.
# test plan
Testing with Evals
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Adds Vercel AI Gateway as a provider to route model calls across vendors
with a single API key; docs now cover gateway/{provider}/{model} usage,
AI_GATEWAY_API_KEY setup, examples for Anthropic/Google, and optional
baseURL config.
Also enforces JSON outputs for Kimi and DeepSeek, sets Kimi
temperature=1, and fixes eval parsing by using the first slash in
provider/model strings.
<sup>Written for commit 514142f8364e4b15f0ec77c2329e6fd2467982fb.
Summary will update on new commits. <a
href="https://cubic.dev/pr/browserbase/stagehand/pull/1627">Review in
cubic</a></sup>
<!-- End of auto-generated description by cubic. -->
---------
Co-authored-by: Miguel <36487034+miguelg719@users.noreply.github.com>
## Summary
- Remove incorrect `userDataDir` from `browserbaseSessionCreateParams` example (never a valid option)
- Split docs into separate Local and Browserbase sections
- Add correct Browserbase approach using `browserSettings.context` for persistence
## Context
The documentation incorrectly showed `userDataDir` as a valid `browserbaseSessionCreateParams` property. Per the schema in `/packages/core/lib/v3/types/public/api.ts`, `userDataDir` is only valid in `LocalBrowserLaunchOptions` for `env: "LOCAL"` sessions.
For Browserbase persistence, users should use `browserSettings.context` instead.
## Test plan
- [ ] Verify docs render correctly on Mintlify
- [ ] Confirm link to Browserbase contexts docs works
🤖 Generated with [Claude Code](https://claude.com/claude-code)
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Fixed docs for user data persistence by removing the invalid userDataDir example for Browserbase sessions and showing the correct contexts-based approach. Split guidance into Local vs Browserbase to reduce confusion.
- **Bug Fixes**
- Removed userDataDir from browserbaseSessionCreateParams; it’s only valid for env: "LOCAL" via localBrowserLaunchOptions.
- Added Browserbase example using browserSettings.context (id + persist) and linked to contexts docs.
<sup>Written for commit 1166b792a32b3c29b0ca5eff7dbc8ae9b894ddd0. Summary will update on new commits. <a href="https://cubic.dev/pr/browserbase/stagehand/pull/1654">Review in cubic</a></sup>
<!-- End of auto-generated description by cubic. -->
# why
Was missing in mintlify docs
# what changed
# test plan
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Added the GET /v1/sessions/{id}/replay endpoint to the API docs so users
can fetch session replays.
<sup>Written for commit 193b983c24a7f73be14c4bce6fdec82ad1f6c44b.
Summary will update on new commits. <a
href="https://cubic.dev/pr/browserbase/stagehand/pull/1643">Review in
cubic</a></sup>
<!-- End of auto-generated description by cubic. -->
---------
Co-authored-by: ci-test <ci-test@example.com>
# why
hybrid mode requires specific models to perform optimally
# what changed
if the models we recommend are not used, we throw an error log and link
out to the agent docs
# test plan
tested locally
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Add a runtime warning when hybrid mode is used with models that may not
perform well, linking to the docs with recommended models. This helps
catch misconfiguration early and improves agent reliability.
- **New Features**
- Log a warning in hybrid mode if the model ID isn’t “gemini-3-flash” or
“claude”, with a link to the agent docs.
- Updated hybrid mode docs to align guidance with the new warning.
<sup>Written for commit eb0dd6af3fe8ecce01d6a97014dfb2af6ecf9335.
Summary will update on new commits. <a
href="https://cubic.dev/pr/browserbase/stagehand/pull/1633">Review in
cubic</a></sup>
<!-- End of auto-generated description by cubic. -->
# why
Missing docs for local browser port
# what changed
Add documentation for the `port` option in `LocalBrowserLaunchOptions`
that was added in PR #1575. This option allows users to specify a fixed
Chrome CDP debugging port instead of using a randomly assigned port.
Updated:
- packages/docs/v3/references/stagehand.mdx - Added port parameter to
LocalBrowserLaunchOptions documentation
- packages/docs/v3/configuration/browser.mdx - Added port to example and
new "Fixed CDP Debugging Port" section explaining the feature # test
plan
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Document the port option in LocalBrowserLaunchOptions so users can set a
fixed Chrome DevTools Protocol debugging port. Adds examples and
guidance (including a 9222 tip) in the configuration and API reference
pages.
<sup>Written for commit 17104a6b390aa4e74fdbac825991fb361c4a21c3.
Summary will update on new commits. <a
href="https://cubic.dev/pr/browserbase/stagehand/pull/1606">Review in
cubic</a></sup>
<!-- End of auto-generated description by cubic. -->
---------
# why
# what changed
# test plan
---------
Co-authored-by: Chromie <miguel@browserbase.com>
Co-authored-by: Chromie Bot <chromie@browserbase.com>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
# why
missing docs for new `page.waitForSelector()`
# what changed
Add API reference documentation for page.waitForSelector() method
including:
- Method signature and parameter descriptions
- All options: state, timeout, pierceShadow
- Code examples for various use cases
# test plan
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Adds API reference for page.waitForSelector(), with options, defaults,
and practical examples. Addresses STG-1125 by filling the missing docs.
- New Features
- Method signature and parameters: state, timeout, pierceShadow.
- Notes on defaults: state "visible", 30s timeout, shadow DOM piercing;
supports iframe hop (>>).
- Examples for visible/hidden/detached, iframe, shadow DOM, XPath, and
custom timeouts.
<sup>Written for commit 7df5f4b292ad24cd410a77838afc93c3959a4971.
Summary will update on new commits. <a
href="https://cubic.dev/pr/browserbase/stagehand/pull/1605">Review in
cubic</a></sup>
<!-- End of auto-generated description by cubic. -->
# why
# what changed
# test plan
---------
Co-authored-by: Chromie <miguel@browserbase.com>
Co-authored-by: Chromie Bot <chromie@browserbase.com>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>