Before you start, you’ll need an API key and a local environment configured to use it.
1
Get an API key
Create an account on the Console to get your API key.
2
Export your API key
export NOTTE_API_KEY=your_api_key_here
3
Install the SDK
pip install notte-sdk playwright
Both Python and JavaScript quickstarts below use the official Notte SDK. Start with Browser Session if you want the shortest path to a working integration.
Run an AI agent that browses and completes tasks autonomously.
from notte_sdk import NotteClientclient = NotteClient()with client.Session(open_viewer=True) as session: agent = client.Agent(session=session, max_steps=5) response = agent.run( task="Browse on Notte docs and book a demo for me", url="https://docs.notte.cc" ) print(response)
from pydantic import BaseModelfrom notte_sdk import NotteClientclass HackerNewsPost(BaseModel): title: str url: str points: int author: strclass HackerNewsFeed(BaseModel): posts: list[HackerNewsPost]client = NotteClient()result = client.scrape( url="https://news.ycombinator.com", response_format=HackerNewsFeed, instructions="Extract the top 5 posts from the front page")for i, post in enumerate(result.data.posts, 1): print(f"{i}. {post.points} - {post.title}")