AI agent instructions
AI agent instructions
Install
For Python 3.11+, runpip install notte-sdk openai-agents==0.24.0.
For Node.js 24+, run npm install notte-sdk @openai/agents@0.20.0 openai@7.34.0 zod.
Set NOTTE_API_KEY to your Notte API key and OPENAI_API_KEY to your OpenAI API key.
Run an agent
Save the Python example asnotte_openai_agents.py and run python notte_openai_agents.py. For TypeScript, save it as notte_openai_agents.ts in a project with "type": "module" and run node --experimental-strip-types notte_openai_agents.ts.
Example Domain. The application owns the session and exposes browser_action, browser_observe, and browser_scrape. browser_action can also click elements and fill forms. Closing the MCP connection alone does not stop a browser; the outer Notte session scope handles cleanup. OpenAI tracing is disabled for this example.
See Notte Browser MCP for the available tools and session lifecycle for longer-lived browsers.