Notte: browser infrastructure for AI agents and web automation
pip install notte==1.10.6 Copy PIP instructions
Stealth cloud browsers, a Playwright-based browser framework, and serverless functions to run your web automations → Docs • Console • Anything API • Landing • Slack • X
Notte gives AI agents and scripts a reliable browser. Drive cloud browser sessions with built-in stealth, CAPTCHA solving and proxies, or a local browser with the same API; deploy automations as functions; and keep credentials and identities out of your code. Read more in our documentation here 🔥
Coming from notte 1.9 or earlier? The agent loop (notte.Agent, client.Agent, client.agents, AgentFallback), workflows and local function execution were removed in 1.10. Use browser sessions from this SDK, the CLI or the MCP server to drive browsers, and Functions to deploy reusable automations.
For JavaScript and TypeScript, see the Node SDK (npm install notte-sdk).
pip install notte patchright install --with-deps chromium Local sessions Run a browser on your machine, observe the actions available on a page, execute them and scrape the result. No API key needed:
import notte with notte.Session(headless=True) as session: _ = session.execute(type="goto", url="https://www.notte.cc") obs = session.observe() print(obs.space.description) markdown = session.scrape(only_main_content=True) Structured scraping on a local session hands the page markdown to an extractor. Install the LLM extractor with pip install 'notte[llm]' and set OPENROUTER_API_KEY; it defaults to google/gemini-3.5-flash-lite. You can also pass your own extractor with notte.Session(extractor=...).
Set OPENROUTER_API_KEY to use OpenRouter with google/gemini-3.5-flash-lite by default. For another OpenAI-compatible endpoint, set all three of NOTTE_LLM_BASE_URL, NOTTE_LLM_API_KEY, and NOTTE_LLM_MODEL (the endpoint's own model ID):
NOTTE_LLM_API_KEY overrides OPENROUTER_API_KEY. The latter is used only at the default OpenRouter URL, so it is never sent to a custom endpoint. The per-call model= argument selects a model at the configured endpoint without translating its ID.
See notte-llm configuration for all settings.
On a local session, act() runs one observe, decide and execute step from an instruction. choose() picks one option about the current page and check() gives the probability that a statement about it holds. They need pip install 'notte[llm]' and OPENROUTER_API_KEY:
The API hosts the browser sessions for you and adds stealth, CAPTCHA solving, proxies, live view and recordings. Sign up on the Notte Console and create a free Notte API key 🔑
from notte_sdk import NotteClient client = NotteClient() # reads NOTTE_API_KEY with client.Session(open_viewer=False) as session: _ = session.execute(type="goto", url="https://news.ycombinator.com") actions = session.observe(instructions="open the comments of the first post") if actions: _ = session.execute(actions[0]) comments = session.scrape(only_main_content=True) Every cloud session exposes a CDP endpoint, so you can keep your existing Playwright code (pip install 'notte-sdk[playwright]'):
from notte_sdk import NotteClient from playwright.sync_api import sync_playwright client = NotteClient() with client.Session(open_viewer=False) as session, sync_playwright() as p: browser = p.chromium.connect_over_cdp(session.cdp_url()) page = browser.contexts[0].pages[0] _ = page.goto("https://www.notte.cc") print(page.title()) Session features Stealth Built-in proxies, CAPTCHA solving and real Chrome browsers to get through bot detection.
import os from notte_sdk import NotteClient from notte_sdk.types import ExternalProxy client = NotteClient() proxy_settings = ExternalProxy( server=os.environ["PROXY_SERVER"], username=os.environ["PROXY_USERNAME"], password=os.environ["PROXY_PASSWORD"], ) with client.Session(proxies=[proxy_settings]) as session: _ = session.execute(type="goto", url="https://www.notte.cc") File download / upload Files uploaded to a session can be set on file inputs, and files downloaded by the browser are stored with the session. Set UPLOAD_FILE_PATH to a local document and UPLOAD_URL to a page with a file input.
from notte_sdk import NotteClient import json client = NotteClient() # Upload cookies for authentication cookies = [ { "name": "sb-db-auth-token", "value": "base64-cookie-value", "domain": "github.com", "path": "/", "expires": 9778363203.913704, "httpOnly": False, "secure": False, "sameSite": "Lax" } ] with client.Session() as session: session.set_cookies(cookies=cookies) # or cookie_file="path/to/cookies.json" _ = session.execute(type="goto", url="https://github.com/nottelabs/notte") # Get cookies from the session cookies_resp = session.get_cookies() with open("cookies.json", "w") as f: json.dump(cookies_resp, f) Bring your own browser Point a session at any CDP-compatible browser (another provider, or a browser you run yourself) to use Notte's observe / execute / scrape on top of it. Set EXTERNAL_CDP_URL to the WebSocket URL of a running browser.
import os from notte import EMAIL, PASSWORD from notte_sdk import NotteClient client = NotteClient() with client.Vault() as vault: vault.add_credentials( url="https://github.com", email=os.environ["GITHUB_EMAIL"], password=os.environ["GITHUB_PASSWORD"], ) with client.Session(vault_id=vault.vault_id) as session: _ = session.execute(type="goto", url="https://github.com/login") _ = session.execute(type="form_fill", value={"email": EMAIL, "current_password": PASSWORD}) Bitwarden on local sessions A local session takes a vault object. AacVault asks your Bitwarden Password Manager for each login through Agent Access, and you approve every request in aac listen. Install aac v0.11.0, unlock your vault with /unlock in aac listen, then use /pair and set AAC_TOKEN to its pairing token. Install the local browser with patchright install chromium.
import notte from notte_core.credentials.aac import AacVault with AacVault() as vault, notte.Session(vault=vault) as session: _ = session.execute(type="goto", url="https://github.com/login") _ = session.execute(type="form_fill", value={"username": notte.USERNAME, "current_password": notte.PASSWORD}) BitwardenVault (in notte_core.credentials.bitwarden) reads Bitwarden Secrets Manager with a machine account instead; install it with pip install "notte[bitwarden]". See the Bitwarden integration for setup.
Personas are digital identities with a unique email address (and optionally a phone number) whose inbox your automation can read, e.g. for sign-ups and email verification codes.
curl -X POST 'https://api.notte.cc/scrape' \ -H 'Authorization: Bearer ' \ -H 'Content-Type: application/json' \ -d '{ "url": "https://notte.cc", "only_main_content": false }' License This project is licensed under the Server Side Public License v1. See the LICENSE file for details.
If you use notte in your research or project, please cite:
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
None of the files in this release were uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.




