AI agent instructions
AI agent instructions
Install
Install the CLI with Node.js 24+:npm install -g agent-browser@0.39.1.
For Python, use Python 3.11+ and pip install notte-sdk. For TypeScript, run npm install notte-sdk in a project with "type": "module".
Set your Notte API key: export NOTTE_API_KEY=your-notte-api-key.
Connect and read a page
Save the example asnotte_agent_browser.py or notte_agent_browser.ts. Run python notte_agent_browser.py or node --experimental-strip-types notte_agent_browser.ts.
Example Domain. Each uses its own CLI session name, disconnects the CLI in finally, and stops the Notte browser through the outer session scope.
Use snapshot -i to discover interactive element references, then click @e1 or fill @e1 value to interact. Take a new snapshot after the page changes. See agent-browser commands and Notte session lifecycle.