from notte_sdk import NotteClientnotte = NotteClient()with notte.Session() as session: agent = notte.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
Copy
Ask AI
from notte_sdk import NotteClientnotte = NotteClient()with notte.Session(browser_type="firefox") as session: _ = notte.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
Copy
Ask AI
from notte_sdk import NotteClientnotte = NotteClient()# Get your vault id from the Notte dashboardvault = notte.Vault(vault_id="my_vault_id")# Add your credentials securely_ = vault.add_credentials( url="https://github.com/", email="my_cool_email@gmail.com", password="my_cool_password", # Check https://github.com/scito/extract_otp_secrets to extract your MFA secret # from your authenticator app mfa_secret="PYNT7I67RFS2EPR5",)# Run an agent with secure credential accesswith notte.Session() as session: agent = notte.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.")