AI agent instructions
AI agent instructions
Set up
Create a 1Password service account with read access to a test vault containing a dummy Login item. SetOP_SERVICE_ACCOUNT_TOKEN, OP_USERNAME_REF, and OP_PASSWORD_REF. Field references use op://vault/item/field; see 1Password’s reference syntax.
Set NOTTE_API_KEY from Notte, then clone the Notte repository and open examples/onepassword. Its README includes the installation commands.
- Python
- TypeScript
Use Python 3.11+ and uv. Run
uv sync --locked, then uv run python python/demo.py.Use your login page
The example fills and submits an in-memory test form. Reuse itsfill_login or fillLogin helper on your page and adapt the labeled field and button locators. It resolves only the two supplied references.
Each attempt owns its Notte browser and closes it after success or failure. The result includes the session ID and submission status.