Skip to main content
Kernel provides cloud browser infrastructure for AI agents with features like stealth mode and persistent profiles.

When to Use Kernel

  • Bot detection avoidance (stealth mode)
  • Persistent login sessions across runs
  • Cloud deployment without local browser
  • Fingerprint resistance
  • Enterprise-grade browser infrastructure

Prerequisites

Setup

1

Get your API key

  1. Visit the Kernel Dashboard
  2. Navigate to API settings
  3. Create and copy your API key
2

Set environment variable

Usage

Via CLI Flag

Use the -p kernel flag:

Via Environment Variable

Set the provider globally:

Configuration

Environment Variables

VariableDescriptionDefault
AGENT_BROWSER_PROVIDERSet to kernel-
KERNEL_API_KEYYour Kernel API keyRequired
KERNEL_HEADLESSRun browser in headless mode (true/false)false
KERNEL_STEALTHEnable stealth mode to avoid bot detection (true/false)true
KERNEL_TIMEOUT_SECONDSSession timeout in seconds300
KERNEL_PROFILE_NAMEBrowser profile name for persistent cookies/loginsNone

Stealth Mode

Stealth mode (enabled by default) helps avoid bot detection:

Persistent Profiles

Use profiles to persist cookies, logins, and session data across browser restarts:
When KERNEL_PROFILE_NAME is set, the profile is created if it doesn’t exist. Cookies, logins, and session data are automatically saved when the browser session ends.

Features

All standard agent-browser commands work with Kernel:
  • Navigation: Full page navigation support
  • Snapshots: Accessibility tree with refs
  • Interactions: Click, fill, type, press, hover
  • Screenshots: Standard and annotated screenshots
  • State Management: Cookies, localStorage, sessionStorage
  • Network Control: Route, intercept, mock responses

Example: Persistent Login Session

Example: Stealth Scraping

Example: CI/CD with Persistent Auth

Profile Management

Profiles are managed server-side by Kernel:
  • Auto-creation: Profiles are created automatically on first use
  • Persistence: Session data persists across browser restarts
  • Isolation: Each profile name is isolated from others
  • Cleanup: Profiles expire based on your Kernel plan settings

Pricing

Check current pricing and plans at kernel.sh/pricing.
Use KERNEL_PROFILE_NAME to maintain authenticated sessions across deployments, CI/CD runs, or scheduled tasks without re-logging in every time.