
Introducing Browserbase Functions
Browserbase makes it easy to run real browsers in production. But until now, using Browserbase still meant running your automation code somewhere else.
That usually meant maintaining a second system just to keep Stagehand or Playwright scripts alive.
We’ve launched Browserbase Functions to remove this layer completely.
Functions let you deploy agents and automations directly to Browserbase and run it next to the browser session it controls. You define, deploy, and invoke a function, and Browserbase handles execution, browser lifecycle, and results as one system.
For teams, that means fewer moving parts and less infrastructure to operate. For automations, it means lower latency and fewer failure points.
Functions are built for browser workloads, not generic request handlers. They support real Stagehand or Playwright code, long-running executions, and asynchronous invocation. Each function runs with a dedicated Browserbase session and returns structured results when it completes.
Deployments are versioned by default. New code doesn’t affect production until you explicitly promote it, so you can test changes safely without rewriting endpoints or workflows.
Local development works the same way. When you run Functions locally, your code connects to real Browserbase browser sessions using your credentials. There’s no mock environment to drift from production behaviour.
Functions are available today for TypeScript!
If you’re already using Browserbase, you can move existing automations into Functions and stop managing separate runner infrastructure. If you’re new, Functions give you a single place to run both the browser and the code that drives it.
You can get started by initializing a Functions project:
npx @browserbasehq/sdk-functions init
If you want a deeper look at how Functions works and the engineering decisions behind it, we’ve published a full technical deep dive as well.
Browserbase Functions are the next step toward making browser automation faster and easier to run in production.

