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

# Stealth Mode

> Configure anti-detection features for your browser sessions

Stealth mode applies anti-detection techniques to help your automated browser sessions bypass bot detection. Use it when interacting with sites that employ bot protection mechanisms.

## Basic Usage

Enable standard stealth mode when creating a session:

<CodeGroup>
  ```typescript Node.js theme={null}
  import { Hyperbrowser } from "@hyperbrowser/sdk";
  import { config } from "dotenv";

  config();

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

  const session = await client.sessions.create({
    useStealth: true,
  });
  ```

  ```python Python theme={null}
  from hyperbrowser import Hyperbrowser
  import os
  from hyperbrowser.models import CreateSessionParams
  from dotenv import load_dotenv

  load_dotenv()

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

  session = client.sessions.create(
      params=CreateSessionParams(use_stealth=True)
  )
  ```

  ```bash cURL theme={null}
  curl -X POST https://api.hyperbrowser.ai/api/session \
    -H "x-api-key: YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "useStealth": true
    }'
  ```
</CodeGroup>

## Ultra Stealth Mode

For more advanced bot detection evasion, use ultra stealth mode:

<Note>
  Ultra stealth is only available on enterprise plans. Contact us at
  [info@hyperbrowser.ai](mailto:info@hyperbrowser.ai) to learn more.
</Note>

<CodeGroup>
  ```typescript Node.js theme={null}
  const session = await client.sessions.create({
    useUltraStealth: true,
    useProxy: true,
  });
  ```

  ```python Python theme={null}
  from hyperbrowser.models import CreateSessionParams

  session = client.sessions.create(
      params=CreateSessionParams(use_ultra_stealth=True)
  )
  ```

  ```bash cURL theme={null}
  curl -X POST https://api.hyperbrowser.ai/api/session \
    -H "x-api-key: YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "useUltraStealth": true,
      "useProxy": true
    }'
  ```
</CodeGroup>

## Combine with Proxies

Stealth mode is most effective when combined with proxies:

<CodeGroup>
  ```typescript Node.js theme={null}
  const session = await client.sessions.create({
    useStealth: true,
    useProxy: true,
  });
  ```

  ```python Python theme={null}
  from hyperbrowser.models import CreateSessionParams

  session = client.sessions.create(
      params=CreateSessionParams(
          use_ultra_stealth=True,
          use_proxy=True,
      )
  )
  ```

  ```bash cURL theme={null}
  curl -X POST https://api.hyperbrowser.ai/api/session \
    -H "x-api-key: YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "useStealth": true,
      "useProxy": true,
    }'
  ```
</CodeGroup>

## Tips

* **Use ultra stealth for challenging sites** - `useUltraStealth` / `use_ultra_stealth` provides the strongest protection
* **Combine with proxies** - Pair stealth with proxies for better results

## Related Features

<CardGroup cols={2}>
  <Card title="Proxies" icon="globe" href="/sessions/proxy">
    Route sessions through proxies
  </Card>

  <Card title="Profiles" icon="user" href="/sessions/profiles">
    Persist browser state across sessions
  </Card>

  <Card title="Static IPs" icon="location-dot" href="/sessions/static-ips">
    Use dedicated IP addresses
  </Card>
</CardGroup>
