AI agent instructions
AI agent instructions
Quick Start
Create a session with default settings:Configuration Options
Customize your session with these options:Common Parameters
Enable Notte’s highest-fidelity browser environment for sites with sophisticated bot detection. Access is currently available to approved workspaces; contact hello@notte.cc to enable it.
Automatically detect and solve captchas (reCAPTCHA, hCaptcha, etc.). Set this option on the session request.
The retired global
solve_captchas TOML key is ignored with a warning.Save the session replay. Set to
false at creation to disable saved recordings,
including the cursor track. Live View and browser controls remain available.
This setting cannot be changed after creation.Save browser session steps, raw CDP messages, network logs and session API
request/response content. Set to
false at creation to disable these saved logs.
Usage and billing counters still apply. This setting cannot be changed after creation.
It does not disable separately requested files, profiles, screenshots, or function
histories.These options require an API that supports session capture controls. The options
are independent: disabling recording does not disable logs, and disabling logs
does not disable recording. Omitted options keep the server defaults.
Block ads and trackers in managed browsers using Basic filtering, without cosmetic filtering or injected scriptlets.
To opt out, use
client.Session(block_ads=False) in Python or client.Session({ block_ads: false }) in TypeScript.
When omitted, the SDK leaves the setting to the API default. Explicit values require an API that supports block_ads.
This setting does not configure local browsers or externally connected CDP browsers.Who answers JavaScript dialogs (alert, confirm, prompt, beforeunload). With
auto, Notte dismisses alert, confirm and prompt and accepts beforeunload.
With client, Notte leaves them for your own CDP client (Playwright, Puppeteer or raw CDP) to accept or dismiss, and dismisses one nobody answers within 10 seconds (beforeunload is accepted).
Use client.Session(dialog_policy="client") in Python or client.Session({ dialog_policy: 'client' }) in TypeScript.
When omitted, the SDK leaves the setting to the API default. Explicit values require an API that supports dialog_policy.
Applies to Notte-hosted browsers and to external browsers connected with cdp_url. See Handle JavaScript dialogs.Residential proxies are enabled by default. Set to
false to disable them or provide custom proxy configuration.
See Proxy Configuration for details.Idle timeout in minutes (max: 30). The session closes after this long without any operation; each operation resets it. Cannot exceed
max_duration_minutes. timeout_minutes is accepted as a legacy alias.Browser viewport width in pixels (minimum 500). Set together with
viewport_height. When neither is set, Notte picks a viewport around 1280x1080.Viewport shape preset:
"5:4" or "16:9". Notte fits the largest viewport of this shape in the available screen area. Cannot be combined with viewport_width/viewport_height.Advanced Parameters
Connect to an external browser session via Chrome DevTools Protocol URL (e.g., from Kernel.sh or other providers). Proxies,
user_agent, chrome_args, and the viewport must be configured with the external provider, so leave them unset (proxies default to off when cdp_url is set).Browser profile to load, with
persist=True to save state back on close. See Browser Profiles.Vault whose credentials the session can use. See Vaults.
Sign requests with Web Bot Auth. See Cloudflare Web Bot Auth.
Path to a JSON file for automatic cookie loading at session start and saving at session end.
Attach a file storage instance to the session for file operations. Python creates
session.storage automatically when this is omitted. In TypeScript, create client.FileStorage() and pass it here before using storage.Default perception type for observations:
"fast" (simple) or "deep" (LLM-powered). "deep" is deprecated and will be removed on December 1, 2026; use "fast". See the observe migration guide.Managed Auth
Up to 10 Managed Auth connection IDs to verify and, when needed, log in inside the session. While login runs, the session status is
authenticating.SDK option. When true, starting the session waits until authentication is ready. When false, call
session.wait_for_auth() before browser actions.Session Response
When you start a session, you get access to these properties and methods:session_response.py
Advanced Stealth
Use Notte’s approval-gated browser environment for difficult sites:Proxies
Route sessions through residential proxies for geo-targeting and enhanced stealth: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:max_duration_minutes (default 15, max 1440). Sessions close when either limit is reached.
Custom Viewport Size
Set custom screen dimensions for specific testing scenarios:Cookie Management
Automatically load and save cookies across sessions using thecookie_file parameter:
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