> ## 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).

# Security & Compliance

> Secrets and vaults, customer-managed keys, and outbound network policies

Hyperbrowser provides layered security controls across credentials, network egress, and API access so you can run browser automation and sandboxes safely in production.

## Secrets, Vaults & Browser Credentials

Never hardcode passwords, API tokens, or session credentials in prompts, scripts, or environment files checked into git. Hyperbrowser's Secrets & Vaults subsystem stores encrypted values and injects them only at execution time:

* **Write-only API** — Secret values are encrypted at rest and never returned by API reads.
* **Scoped access** — Separate API key scopes (`secrets.read`, `secrets.manage`, `secrets.use`) let you restrict who can list metadata, rotate versions, or expose secrets to running workloads.
* **Origin-bound browser autofill** — Attach secrets to browser sessions and restrict filling to explicitly allowed web origins so credentials are never leaked to phishing or redirect domains.
* **Customer-managed encryption keys (CMEK)** — Wrap secret versions with your own key so Hyperbrowser never holds the unwrapping key.
* **1Password integration** — Read fields dynamically from a 1Password vault via a service account token.

> [card] [Secrets](https://hyperbrowser.ai/docs/sandboxes/secrets.md)
>
> Create versioned secrets and inject them into sandbox processes.

> [card] [Vaults](https://hyperbrowser.ai/docs/sandboxes/vaults.md)
>
> Group secrets into vaults for clean attachment across workloads.

> [card] [Customer-Managed Keys](https://hyperbrowser.ai/docs/sandboxes/customer-keys.md)
>
> Protect secret versions with your own wrapping keys.

> [card] [1Password & Browser Credentials](https://hyperbrowser.ai/docs/sessions/credentials.md)
>
> Fill credentials safely into browser sessions on allowed origins (also see [1Password](https://hyperbrowser.ai/docs/sandboxes/1password.md)).

***

## Outbound Network & Egress Policies

Control where browser sessions and sandboxes can send traffic:

### Sandbox Egress Policies

Every sandbox accepts a network policy at creation time or while running (`sandboxes.network.manage` scope):

* `allowInternetAccess` — Set to `false` for a default-deny egress posture (default `true`).
* `allowOut` — Explicit allowlist of IPv4 addresses, IPv4 CIDR ranges, exact domains, or wildcard domains (`*.example.com`). Takes precedence over `denyOut`. Domain entries require `allowInternetAccess: false` or `0.0.0.0/0` in `denyOut`.
* `denyOut` — Explicit denylist of IPv4 addresses or IPv4 CIDR ranges.

See [Sandbox Networking](https://hyperbrowser.ai/docs/sandboxes/networking.md) for full examples and rule precedence.

### Browser Network Controls

For hosted browser sessions, combine:

* **[Session network policy](https://hyperbrowser.ai/docs/sessions/parameters.md)**: Set `allowInternetAccess`, `allowOut`, and `denyOut` when you create a session to restrict where the browser can connect. See the parameter page for limits.
* **[Proxy Routes](https://hyperbrowser.ai/docs/sessions/proxy-routes.md)** — Route specific domains through custom upstream proxies or bypass proxies for internal endpoints.
* **[Static IPs](https://hyperbrowser.ai/docs/sessions/static-ips.md)** — Assign dedicated static egress IPs so downstream firewalls and partner APIs can allowlist your browser traffic.
* **[Multi-Region Deployment](https://hyperbrowser.ai/docs/sessions/regions.md)** — Pin browser sessions to `us`, `us-central`, `us-east`, `us-west`, `europe-west`, or `asia-south` (Enterprise and Select plans) to meet latency and data-residency requirements.

***

## Least-Privilege API Keys

Follow these baseline practices for every production deployment:

1. **Use scoped API keys** — Issue dedicated keys per service with only the minimum [permission scopes](https://hyperbrowser.ai/docs/platform/authentication.md#permission-groups) required (for example, `web.fetch.run` and `web.fetch.read` for an ingestion worker).
2. **Avoid unrestricted keys in AI agents** — When exposing Hyperbrowser to coding agents or LLM tools, prefer the least-privilege hosted MCP endpoint (`https://mcp.hyperbrowser.ai/mcp/web`) or a narrowly scoped API key without `secrets.use`.


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