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

> ## Agent Instructions
> Authenticate REST, SDK, and CLI requests with the `x-api-key` header using the `HYPERBROWSER_API_KEY` environment variable (create keys at https://app.hyperbrowser.ai).
> Always stop browser sessions (`sessions.stop(id)` / `PUT /api/session/{id}/stop`) and sandboxes (`sandboxes.stop(id)` / `PUT /api/sandbox/{id}/stop`) in `try`/`finally` blocks to avoid idle billing.
> Choose the right surface: use Web API (`/api/web/fetch`, `batch-fetch`, `crawl`, `search`) for stateless reading and extraction (prefer it over legacy `/api/scrape`); Browser Sessions (`/api/session`) for interactive, authenticated, or Playwright/Puppeteer workflows; Cloud Agents (`/api/task/*`) for autonomous browser tasks; and Sandboxes (`/api/sandbox`) for isolated Linux or macOS code execution.
> Use `@hyperbrowser/sdk` for Node.js/TypeScript, `hyperbrowser` 1.0+ typed-dict request params for Python (avoid legacy Pydantic request classes), the unified `hx` CLI for terminal workflows, and hosted OAuth MCP at `https://mcp.hyperbrowser.ai/mcp/web` (web tools; use `https://mcp.hyperbrowser.ai/mcp` only when browser, sandbox, admin, and usage tools are needed).

# Profiles & Extensions SDK Reference

> Node.js and Python SDK methods for browser profiles and Chrome extensions

Use `client.profiles` to persist browser state (cookies, storage, auth) across sessions and `client.extensions` to upload and list Chrome extensions.

***

## Profiles (`client.profiles`)

| Operation | Node.js (`@hyperbrowser/sdk` 1.6.0) | Python (`hyperbrowser` 1.16.0) |
| - | - | - |
| Create profile | `client.profiles.create(params?)` | `client.profiles.create(params=None)` |
| Get profile | `client.profiles.get(id)` | `client.profiles.get(id)` |
| List profiles | `client.profiles.list(params?)` | `client.profiles.list(params=None)` |
| Fork profile | `client.profiles.fork(id, params?)` | `client.profiles.fork(id, params=None)` |
| Delete profile | `client.profiles.delete(id)` | `client.profiles.delete(id)` |

> [!NOTE]
>
> Renaming a profile (`PUT /api/profile/{id}`) and batch deletion (`DELETE /api/profiles`) are available directly via the [REST API](https://hyperbrowser.ai/docs/api-reference/update-profile-by-id.md).

***

## Extensions (`client.extensions`)

| Operation | Node.js (`@hyperbrowser/sdk` 1.6.0) | Python (`hyperbrowser` 1.16.0) |
| - | - | - |
| Upload extension zip | `client.extensions.create({ filePath, name? })` | `client.extensions.create({"file_path": ..., "name": ...})` |
| List extensions | `client.extensions.list()` | `client.extensions.list()` |

> [!NOTE]
>
> Single-extension lookup (`GET /api/extensions/{id}`), delete (`DELETE /api/extensions/{id}`), and batch delete (`DELETE /api/extensions`) are available via the [REST API](https://hyperbrowser.ai/docs/api-reference/get-extension-by-id.md).

```typescript TypeScript theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
import { Hyperbrowser } from "@hyperbrowser/sdk";

const client = new Hyperbrowser({ apiKey: process.env.HYPERBROWSER_API_KEY });

const profile = await client.profiles.create({ name: "ci-login" });
const forked = await client.profiles.fork(profile.id, { name: "ci-login-copy" });
const extensions = await client.extensions.list();

console.log({ profileId: profile.id, forkedId: forked.id, extensions: extensions.length });
```

```python Python theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
import os
from hyperbrowser import Hyperbrowser

client = Hyperbrowser(api_key=os.environ["HYPERBROWSER_API_KEY"])

profile = client.profiles.create({"name": "ci-login"})
forked = client.profiles.fork(profile.id, {"name": "ci-login-copy"})
extensions = client.extensions.list()

print({"profile_id": profile.id, "forked_id": forked.id, "extensions": len(extensions)})
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.