Skip to main content
Sessions are isolated browser instances running in the cloud that you can control programmatically. Each session provides a Playwright-compatible page that you can automate using familiar browser automation APIs.

Quick Start

Create a session with default settings:
Active sessions can be viewed and managed in the Sessions page in the console.
Sessions are automatically stopped when exiting the context manager. Always use the with statement to ensure proper cleanup.

Configuration Options

Customize your session with these options:

Common Parameters

headless
boolean
default:true
Whether to run the browser in headless mode. Set to false to open a live viewer in your browser.
solve_captchas
boolean
default:false
Automatically detect and solve captchas (reCAPTCHA, hCaptcha, etc.)
proxies
boolean | list[ProxySettings]
default:false
Enable residential proxies. Set to true for default proxies or provide custom proxy configuration. See Proxy Configuration for details.
timeout_minutes
integer
default:3
Session timeout in minutes. Sessions automatically close after this duration (min: 1, max: 30).
viewport_width
integer
default:1280
Browser viewport width in pixels.
viewport_height
integer
default:1080
Browser viewport height in pixels.
browser_type
string
default:"chrome"
Browser engine to use: "chromium", or "chrome".

Advanced Parameters

user_agent
string
Custom user agent string for the browser session.
chrome_args
list[str]
Custom Chrome/Chromium launch arguments. Advanced use only.
cdp_url
string
Connect to an external browser session via Chrome DevTools Protocol URL (e.g., from Kernel.sh or other providers).
use_file_storage
boolean
default:false
Enable file storage for uploading/downloading files during the session.
Path to a JSON file for automatic cookie loading at session start and saving at session end.
storage
RemoteFileStorage
Attach a file storage instance to the session for file operations.
perception_type
string
default:"fast"
Default perception type for observations: "fast" (simple) or "deep" (LLM-powered).
raise_on_failure
boolean
default:false
Raise exceptions when action execution fails instead of returning error results.

Session Response

When you start a session, you get access to these properties and methods:
session_response.py

Headless Mode

Control whether to run the browser visibly or in the background:
When headless=False, a live viewer automatically opens in your browser so you can watch the automation in real-time.

Proxies

Route sessions through residential proxies for geo-targeting and enhanced stealth:
proxies_simple.py
See the Proxies Guide for country-specific proxies, custom proxies, and troubleshooting.

Captcha Solving

Automatically detect and solve captchas during automation:
See the Captcha Solving guide for more details.

Session Timeout

Configure how long sessions stay active:
The timeout range is 1-30 minutes. Sessions automatically close when the timeout is reached.

Custom Viewport Size

Set custom screen dimensions for specific testing scenarios:
Automatically load and save cookies across sessions using the cookie_file parameter:
cookie_file.py
See the Cookies Guide for manual cookie management and best practices.

External Providers (CDP)

Use Notte with external browser providers like Kernel.sh:
See the Kernel.sh Integration guide for complete setup instructions.

Next Steps

Recordings

Watch recorded sessions and debug issues

Proxies

Configure proxies and anti-detection features

Live View

Watch sessions in real-time

Cookies

Persist authentication across sessions