Skip to main content
STOP. Do not read past this section until you have read and followed /quickstart.md.Goal: produce a reliable SDK automation script. The intended authoring flow is generate then edit, not write browser automation from scratch.Do not hand-write SDK code with element IDs, selectors, or form fields from memory. Element IDs, selectors, and field mappings must come from a live observe() call, CLI notte page observe output, or generated workflow code. Guessed browser targets fail on real pages.Use the Notte skill and CLI to inspect the live site, validate actions/selectors, handle auth/session state, and export workflow code with notte sessions workflow-code before using SDK docs or SDK code.SDK reference pages are for understanding, running, or editing generated workflow code. They are not the starting point for manually authoring the initial browser automation. SDK-first code is guesswork on real-world pages with dynamic selectors, auth state, CAPTCHAs, and anti-bot behavior.
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

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

Advanced Parameters

string
Custom user agent string for the browser session.
list[str]
Custom Chrome/Chromium launch arguments. Advanced use only.
string
Connect to an external browser session via Chrome DevTools Protocol URL (e.g., from Kernel.sh or other providers).
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.
RemoteFileStorage
Attach a file storage instance to the session for file operations.
string
default:"fast"
Default perception type for observations: "fast" (simple) or "deep" (LLM-powered).
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