> ## 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 context

> Create reusable browser storage for cookies and authentication.

`browserbase.createContext` creates reusable browser storage for cookies and authentication. 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 context", () => {
  onInvocation()
  browserbase.createContext({ name: "Signed in" })
})
```

## Inputs

| Input       | Type     | Required | Default         | Description                         |
| ----------- | -------- | -------- | --------------- | ----------------------------------- |
| `name`      | `string` | No       | None            | Context name, up to 128 characters. |
| `projectId` | `string` | No       | API-key project | Project override.                   |

## Output

Returns the context ID and Browserbase encryption parameters.

Store the returned context ID and pass it through session browser settings. Creation is not replay-safe.
