AI agent instructions
AI agent instructions
Run the example
Get the example project. Inexamples/openagi, run uv sync --locked, set NOTTE_API_KEY and OAGI_API_KEY in your environment, then run uv run --locked python demo.py.
The native AsyncDefaultAgent receives screenshots from a Notte browser and sends actions to the included Playwright handler. The demo uses an isolated form, limits execution, checks the submitted code, and closes the session on success or error. You do not need a local browser or desktop automation package.
Use your application
Replace the fixture indemo.py with an application reachable from the cloud browser. Adapt the confirmation callback to review the actions your task needs. Page content is untrusted; keep consequential actions under your control.
The handler supports normalized coordinates, clicks, typing, hotkeys, scrolling, and dragging. Lux failure and human-review actions stop execution.
See the official SDK for model and API configuration.