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

# Coding Agents & Skills

> Install official Hyperbrowser agent skills with npx skills, connect agent-readable docs endpoints, and copy AGENTS.md / SKILL.md templates

Use this page to configure coding agents (Claude Code, Cursor, Codex, Windsurf, OpenCode, Zed, Gemini CLI, and VS Code) to read Hyperbrowser documentation cleanly, follow Hyperbrowser API conventions, and drive browsers or sandboxes safely.

## Install Agent Skills

Install the official [Hyperbrowser Agent Skills](https://github.com/hyperbrowserai/skills) bundle in one command across Claude Code, Cursor, Codex, Windsurf, OpenCode, Gemini CLI, and other `SKILL.md`-compatible agents:

```bash theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
npx skills add hyperbrowserai/skills
```

To inspect available skills or install only specific roles:

```bash theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
# List all 6 published skills
npx skills add hyperbrowserai/skills --list

# Install specific skills only
npx skills add hyperbrowserai/skills --skill hyperbrowser-developer --skill hyperbrowser-web-api
```

| Skill | Scope |
| - | - |
| `hyperbrowser-browsers` | Create, control, inspect, fill credentials into, invoke WebMCP tools on, and stop live cloud browser sessions (`hx browser` / MCP) |
| `hyperbrowser-cli` | Install, authenticate, manage encrypted secrets & vaults, and script JSON pipelines with the `hx` CLI |
| `hyperbrowser-developer` | Write application code with `@hyperbrowser/sdk` (Node.js/TypeScript), `hyperbrowser` 1.0+ (Python), or the REST API |
| `hyperbrowser-mcp` | Configure, scope toolsets for, authenticate, and troubleshoot Hosted MCP (`mcp.hyperbrowser.ai/mcp/*`) and Docs Search MCP (`/docs/mcp`) |
| `hyperbrowser-sandboxes` | Provision, execute commands, manage processes/files/ports/egress policies, and stop Linux & macOS sandboxes |
| `hyperbrowser-web-api` | Fetch, search, crawl, and extract structured JSON from public web pages with Web API |

## Agent-Readable Surfaces

Every Hyperbrowser documentation page is served as clean Markdown alongside structured indexes and MCP endpoints:

| Surface | URL | Best For |
| - | - | - |
| **Docs Index (`llms.txt`)** | `https://www.hyperbrowser.ai/docs/llms.txt` | Discovering all documentation routes with global agent instructions |
| **Full Docs Corpus (`llms-full.txt`)** | `https://www.hyperbrowser.ai/docs/llms-full.txt` | Loading the complete documentation set into a long-context agent |
| **Single Page Markdown** | `https://www.hyperbrowser.ai/docs/<path>.md` (or `Accept: text/markdown`) | Fetching a specific guide cleanly (for example `https://www.hyperbrowser.ai/docs/quickstart.md`) |
| **Docs Search MCP** | `https://www.hyperbrowser.ai/docs/mcp` | Searching and reading Hyperbrowser documentation from an MCP-enabled editor (Mintlify Docs MCP — distinct from the Hosted Hyperbrowser MCP server below) |
| **Hosted MCP (`hbmcp`, web only)** | `https://mcp.hyperbrowser.ai/mcp/web` | Recommended setup exposing only the `web` toolset (`mcp:tools`; no admin or sandbox tools) |
| **Hosted MCP (`hbmcp`, Full)** | `https://mcp.hyperbrowser.ai/mcp` | All `web`, `browser`, `sandbox`, `admin`, and `usage` tools, including admin and usage scopes |
| **OpenAPI 3.0 Spec** | `https://www.hyperbrowser.ai/docs/openapi.json` | Generating typed REST calls against `https://api.hyperbrowser.ai` |

See [Connect to MCP](https://hyperbrowser.ai/docs/mcp/overview.md) for setup configs across supported clients.

## Copyable `AGENTS.md` / `CLAUDE.md` Rule

Drop this block into your repository's `AGENTS.md` or `CLAUDE.md` so coding agents choose the right Hyperbrowser surface and follow production cleanup invariants:

```markdown theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
## Hyperbrowser Conventions

- **Authentication:** Read `HYPERBROWSER_API_KEY` from the environment and pass it via the `x-api-key` header (or SDK `apiKey` constructor option). Never hardcode API keys. Create keys at https://app.hyperbrowser.ai.
- **Choose the right surface:**
  - Use **Web API** (`/api/web/fetch`, `/api/web/batch-fetch`, `/api/web/crawl`, `/api/web/search`) for stateless reading and extraction. Prefer Web API over legacy `/api/scrape` endpoints.
  - Use **Browser Sessions** (`/api/session`) for interactive, authenticated, Playwright, Puppeteer, Selenium, Computer Action, or WebMCP workflows.
  - Use **Cloud Browser Agents** (`/api/task/*`) for autonomous multi-step browser tasks (Browser Use, Claude/Gemini/Meta/Grok/Jev Computer Use, OpenAI CUA, HyperAgent).
  - Use **Sandboxes** (`/api/sandbox`) for isolated Linux or macOS code execution, terminals, filesystems, and custom images.
- **Mandatory cleanup:** Always stop browser sessions (`sessions.stop(id)` / `PUT /api/session/{id}/stop`) and sandboxes (`sandboxes.stop(id)` / `PUT /api/sandbox/{id}/stop`) inside `try`/`finally` blocks so idle billing stops on errors.
- **SDK style:**
  - Node.js / TypeScript: use `@hyperbrowser/sdk`.
  - Python: use `hyperbrowser` 1.0+ typed-dict request payloads (`params={...}`), not legacy Pydantic request classes (such as `CreateSessionParams(...)`).
- **CLI & MCP:** Use `hx` (`hx browser`, `hx web`, `hx vm`, `hx secrets`, `hx vaults`) for terminal workflows, and `https://mcp.hyperbrowser.ai/mcp/web` for OAuth MCP access.
- **Docs lookup:** Fetch `https://www.hyperbrowser.ai/docs/llms.txt` or append `.md` to any docs page URL for exact parameters.
```

## Role-Split `SKILL.md` Templates

Split agent skills by role so agents do not confuse **driving cloud tools right now** with **writing application SDK code**. Copy any template below into `.cursor/skills/<skill-name>/SKILL.md` or `.claude/skills/<skill-name>/SKILL.md`.

> [tab] hyperbrowser-browsers
>
> Save to `.cursor/skills/hyperbrowser-browsers/SKILL.md` or `.claude/skills/hyperbrowser-browsers/SKILL.md`:
>
> ```markdown theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
> ---
> name: hyperbrowser-browsers
> description: Drive cloud browsers and fetch or search web pages right now using the Hyperbrowser hx CLI or hosted MCP server (hbmcp). Use when the user asks you to browse a site, inspect a live web page, search the web, or interact with a cloud browser.
> ---
>
> # Hyperbrowser Browser & Web Operator
>
> Use this skill when executing live web or browser tasks directly—not when writing application SDK code (use `hyperbrowser-developer` for code generation).
>
> ## Preferred interfaces
>
> 1. **Hosted MCP (`hbmcp`)** if connected:
>    - `search_web`, `web_fetch`, `crawl_website`, `extract_json_from_webpage` for stateless reading.
>    - `create_browser_session`, `browser_action`, `stop_browser_session` for interactive sites.
>    - `run_browser_task` for delegated multi-step browsing.
> 2. **`hx` CLI** if available in the shell:
>    - Stateless web ops: `hx web fetch <url>`, `hx web search "<query>"`, `hx web crawl <url>`.
>    - Interactive sessions: `hx browser create`, `hx browser list`, `hx browser get <id>`, `hx browser fill ...`, `hx browser stop <id>`.
>
> ## Rules
>
> - Prefer stateless `web_fetch` / `hx web fetch` over launching a full browser session whenever the task only needs page content, links, or JSON extraction.
> - Always stop every browser session you create (`stop_browser_session` or `hx browser stop <id>`) once you have the result.
> - Never paste raw user passwords into prompts; use Hyperbrowser Secrets & Vaults (`hx browser fill` / `POST /api/session/{id}/credentials/fill`) when authenticating.
> - For full reference, read `https://www.hyperbrowser.ai/docs/mcp/tools.md` or `https://www.hyperbrowser.ai/docs/web/overview.md`.
> ```

> [tab] hyperbrowser-sandboxes
>
> Save to `.cursor/skills/hyperbrowser-sandboxes/SKILL.md` or `.claude/skills/hyperbrowser-sandboxes/SKILL.md`:
>
> ```markdown theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
> ---
> name: hyperbrowser-sandboxes
> description: Provision, run commands in, transfer files to, and manage isolated Linux and macOS Hyperbrowser sandboxes via the hx CLI or hosted MCP server.
> ---
>
> # Hyperbrowser Sandboxes Operator
>
> Use this skill when creating or operating isolated Hyperbrowser sandboxes directly.
>
> ## Common workflows (`hx vm`)
>
> - Check auth: `hx auth status` (or ensure `HYPERBROWSER_API_KEY` is set).
> - Create a Linux sandbox: `hx --json vm create node` (or `python`, or a custom team image).
> - Run commands: `hx vm exec <sandbox-id> '<command>'`.
> - Manage files: `hx vm file ls|cat|write|upload|download <sandbox-id> ...`.
> - Expose a port: listen on `0.0.0.0` inside the sandbox and expose via `hx vm expose <sandbox-id> --port <port>`.
> - Stop sandbox: `hx vm stop <sandbox-id>`.
>
> ## Rules
>
> - Always stop sandboxes when finished—running sandboxes bill for idle time while active.
> - For macOS sandboxes and persistent disks, use `hx vm` / `hx vm disks` or the REST API (`/api/sandbox`, `/api/disks`).
> - For full reference, read `https://www.hyperbrowser.ai/docs/sandboxes/introduction.md` and `https://www.hyperbrowser.ai/docs/cli/overview.md`.
> ```

> [tab] hyperbrowser-developer
>
> Save to `.cursor/skills/hyperbrowser-developer/SKILL.md` or `.claude/skills/hyperbrowser-developer/SKILL.md`:
>
> ```markdown theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
> ---
> name: hyperbrowser-developer
> description: Write application code that integrates Hyperbrowser using @hyperbrowser/sdk (Node.js/TypeScript), hyperbrowser (Python 1.0+), or the REST API (https://api.hyperbrowser.ai).
> ---
>
> # Hyperbrowser Application Developer
>
> Use this skill when writing or editing application code that calls Hyperbrowser APIs.
>
> ## SDK & API ground truth
>
> - **Node.js / TypeScript:** `npm install @hyperbrowser/sdk` (`import { Hyperbrowser } from "@hyperbrowser/sdk"`).
> - **Python:** `pip install hyperbrowser` (`from hyperbrowser import Hyperbrowser` or `AsyncHyperbrowser`). Always pass typed-dict request payloads (`params={...}`), never legacy Pydantic request models.
> - **REST API:** Base URL `https://api.hyperbrowser.ai`, auth header `x-api-key: $HYPERBROWSER_API_KEY`. OpenAPI spec: `https://www.hyperbrowser.ai/docs/openapi.json`.
>
> ## Surface selection & parity rules
>
> - Use `client.web.fetch` / `batchFetch` / `crawl` / `search` (Python: `fetch` / `batch_fetch` / `crawl` / `search`) for stateless web data retrieval instead of legacy `client.scrape` / `client.crawl`.
> - Always wrap browser session (`client.sessions.create`) and sandbox (`client.sandboxes.create`) lifecycles in `try`/`finally` blocks calling `stop(id)`.
> - Live View URLs expire after **24 hours** by default (customizable 30–86400s via `liveViewTtlSeconds` / `live_view_ttl_seconds`).
> - Setting `enableVideoWebRecording: true` automatically enables `enableWebRecording` on the server.
> - **macOS sandboxes & persistent disks:** Use REST API or `hx` CLI (not yet wrapped in Node/Python SDKs).
>
> ## Verification
>
> - Read `https://www.hyperbrowser.ai/docs/<page>.md` before using unfamiliar options.
> - Never invent undocumented parameters.
> ```

## Next Steps

> [card] [Connect to Hosted MCP](https://hyperbrowser.ai/docs/mcp/overview.md)
>
> Configure Claude Code, Codex, VS Code, Windsurf, Zed, OpenCode, and more

> [card] [MCP Toolsets & Agent Platforms](https://hyperbrowser.ai/docs/mcp/toolsets.md)
>
> Scope MCP toolsets by URL path and wire Claude Managed Agents or OpenAI Agents

> [card] [Quickstart](https://hyperbrowser.ai/docs/quickstart.md)
>
> Run your first session via coding agent or SDK with expected output and cleanup

> [card] [Hyperbrowser CLI (hx)](https://hyperbrowser.ai/docs/cli/overview.md)
>
> Install and use the unified terminal CLI for browsers, web, sandboxes, and secrets


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