Use this file to discover all available pages before exploring further.
AI agent instructions
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.
Here’s how you create an agent, and run a task:
simple.py
from notte_sdk import NotteClientclient = NotteClient()with client.Session() as session: agent = client.Agent(session=session) agent.run(task="go to google, and find cat pictures")
Providing a session to your agent allows you to choose specific options, like changing your browser or using proxies.
firefox.py
from notte_sdk import NotteClientclient = NotteClient()with client.Session() as session: _ = client.Agent(session=session).run( task="What's the weather like in SF tonight?", )
Agents can be provided a vault with credentials in order to securely log in to websites without sharing your information to the LLM.
agent_with_vault.py
from notte_sdk import NotteClientclient = NotteClient()# Get your vault id from the Notte dashboardvault = client.Vault(vault_id="my_vault_id")# Add your credentials securelyvault.add_credentials( url="https://github.com/", email="my_cool_email@gmail.com", password="my_cool_password",)# Run an agent with secure credential accesswith client.Session() as session: agent = client.Agent(vault=vault, session=session, max_steps=10) response = agent.run(task="Go to the nottelabs/notte repo and star it. If it's already starred don't unstar it.")