> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Create Browserbase session

> Create a configurable cloud browser session and receive connection URLs.

`browserbase.createSession` creates a configurable cloud browser session and receives connection URLs. Inputs accept literal values or compatible signals. An optional second argument `{ account }` selects a named Browserbase binding.

## Example

```ts theme={null}
import { automation, onInvocation } from "automate.ax"
import { browserbase } from "automate.ax/browserbase"

export default automation("Create Browserbase session", () => {
  onInvocation()
  browserbase.createSession({
    browserSettings: { recordSession: true },
    region: "us-west-2",
    timeout: 900,
  })
})
```

## Inputs

| Input             | Type                            | Required | Default           | Description                                                                                |
| ----------------- | ------------------------------- | -------- | ----------------- | ------------------------------------------------------------------------------------------ |
| `projectId`       | `string`                        | No       | API-key project   | Project override.                                                                          |
| `timeout`         | `number`                        | No       | Project default   | Session lifetime in seconds, from 60 through 21,600.                                       |
| `region`          | `string`                        | No       | Provider default  | `us-west-2`, `us-east-1`, `eu-central-1`, or `ap-southeast-1`.                             |
| `keepAlive`       | `boolean`                       | No       | `false`           | Keep the session alive across client disconnects.                                          |
| `browserSettings` | `object`                        | No       | Provider defaults | Context, viewport, recording, logging, stealth, CAPTCHA, OS, domain, ad, and TLS settings. |
| `proxies`         | `boolean \| BrowserbaseProxy[]` | No       | Provider default  | Browserbase, external, or no-proxy rules.                                                  |
| `proxySettings`   | `object`                        | No       | None              | Trusted certificate IDs.                                                                   |
| `userMetadata`    | `Record<string, JSON>`          | No       | None              | Searchable session metadata.                                                               |

## Output

Returns the session record plus `connectUrl`, `seleniumRemoteUrl`, and `signingKey`.

Creating a session consumes browser capacity and is not replay-safe.
