Skip to main content
Read the Notte skill and follow its setup instructions when setting up Notte or building browser automation. This is the shared source for CLI setup, authentication, and the browser-to-code workflow.
Sessions provide a context manager for browser automation:

Usage

See more operations on sessions:

Scrape

Get the relevant information from a page

Observe

Retrieve information and available actions on a page

Execute

Take action on a page

Parameters

You can use the default parameters to create your session, or customize them:
str | None
default:"None"
RemoteFileStorage | None
default:"None"
File Storage to attach to the session
Literal['fast', 'deep']
default:"fast"
Default perception type for observe(). Defaults to 'fast'. 'deep' is deprecated and removed on December 1, 2026; use 'fast'.
bool
default:"True"
bool
default:"False"
Whether to open the live viewer when the session starts (default: False). This controls only the viewer popup and is independent of the browser environment.
bool
bool
typing.Literal['auto', 'client']
Who answers JavaScript dialogs. “auto” (default): Notte dismisses alert, confirm and prompt and accepts beforeunload. “client”: your CDP client accepts or dismisses them; Notte dismisses one nobody answers within 10 seconds.
typing.Literal['windows', 'macos'] | None
The operating system the session’s browser presents: windows or macos. When unset, each session gets one at random among those the environment offers.
bool
default:true
Defaults to true. Set to false at session creation to disable saved replay for the entire session. Live View remains available.
bool
default:true
Defaults to true. Set to false at session creation to disable saved browser activity and network logs for the entire session. Usage metering remains available.
bool
Whether to try to automatically solve captchas
int
Maximum session lifetime in minutes (absolute maximum).
int
Idle timeout in minutes. Session closes after this period of inactivity.
list[typing.Annotated[notte_core.types.NotteProxy | notte_core.types.ExternalProxy | notte_core.types.TailnetProxy | notte_core.types.SecretProxy, FieldInfo(annotation=NoneType, required=True, discriminator='type')]] | list[typing.Annotated[notte_sdk._generated.typing.NotteProxyDict | notte_sdk._generated.typing.ExternalProxyDict | notte_sdk._generated.typing.TailnetProxyDict | notte_sdk._generated.typing.SecretProxyDict, FieldInfo(annotation=NoneType, required=True, discriminator='type')]] | bool | notte_core.types.ProxyGeolocationCountry | typing.Literal['ad', 'ae', 'af', 'ag', 'ai', 'al', 'am', 'ao', 'ar', 'at', 'au', 'aw', 'az', 'ba', 'bb', 'bd', 'be', 'bf', 'bg', 'bh', 'bi', 'bj', 'bm', 'bn', 'bo', 'bq', 'br', 'bs', 'bt', 'bw', 'by', 'bz', 'ca', 'cd', 'cg', 'ch', 'ci', 'cl', 'cm', 'cn', 'co', 'cr', 'cu', 'cv', 'cw', 'cy', 'cz', 'de', 'dj', 'dk', 'dm', 'do', 'dz', 'ec', 'ee', 'eg', 'es', 'et', 'fi', 'fj', 'fr', 'ga', 'gb', 'gd', 'ge', 'gf', 'gg', 'gh', 'gi', 'gm', 'gn', 'gp', 'gq', 'gr', 'gt', 'gu', 'gw', 'gy', 'hk', 'hn', 'hr', 'ht', 'hu', 'id', 'ie', 'il', 'im', 'in', 'iq', 'ir', 'is', 'it', 'je', 'jm', 'jo', 'jp', 'ke', 'kg', 'kh', 'kn', 'kr', 'kw', 'ky', 'kz', 'la', 'lb', 'lc', 'lk', 'lr', 'ls', 'lt', 'lu', 'lv', 'ly', 'ma', 'md', 'me', 'mf', 'mg', 'mk', 'ml', 'mm', 'mn', 'mo', 'mq', 'mr', 'mt', 'mu', 'mv', 'mw', 'mx', 'my', 'mz', 'na', 'nc', 'ne', 'ng', 'ni', 'nl', 'no', 'np', 'nz', 'om', 'pa', 'pe', 'pf', 'pg', 'ph', 'pk', 'pl', 'pr', 'ps', 'pt', 'py', 'qa', 're', 'ro', 'rs', 'ru', 'rw', 'sa', 'sc', 'sd', 'se', 'sg', 'si', 'sk', 'sl', 'sm', 'sn', 'so', 'sr', 'ss', 'st', 'sv', 'sx', 'sy', 'sz', 'tc', 'tg', 'th', 'tj', 'tm', 'tn', 'tr', 'tt', 'tw', 'tz', 'ua', 'ug', 'us', 'uy', 'uz', 'vc', 've', 'vg', 'vi', 'vn', 'ye', 'za', 'zm', 'zw']
List of custom proxies to use for the session. If True, the default proxies will be used.
typing.Literal['chromium', 'chrome', 'firefox', 'chrome-nightly', 'chrome-turbo'] | typing.Literal['chrome-nitro']
The browser type to use. chrome-nitro starts a managed Chrome Nitro session.
str | None
The user agent to use for the session
list
Overwrite the chrome instance arguments
int | None
The width of the viewport
int | None
The height of the viewport
typing.Literal['5:4', '16:9'] | None
Viewport shape preset (“5:4” or “16:9”). Cannot be combined with viewport_width/viewport_height.
str | None
The CDP URL of another remote session provider.
notte_sdk._generated.typing.SessionProfileDict | notte_core.types.SessionProfile | None
Browser profile configuration for state persistence.
bool
dict[str, str] | None
str | None
list
Up to 10 unique Managed Auth connection IDs. The API verifies them inline and can return an authenticating session while login continues.
bool
default:"True"
Defaults to True. The SDK waits for authentication readiness through short API calls before returning from start or entering a context manager. When False, start returns after inline verification; call wait_for_auth() before browser actions if login is pending.
int
default:"0"
Number of additional retries for transient managed-auth login failures, from 0 to 2. Each retry verifies the session again before submitting credentials. A blocked connection permits one explicit login attempt.