AI agent instructions
AI agent instructions
Prerequisites
- A Notte API key (create one in the Notte console)
- Hermes Agent installed (installation guide)
- Python 3.11+ with the Notte SDK installed
Start a Notte browser and get its CDP URL
Create a small launcher that starts a Notte session and prints its CDP endpoint:ws:// or wss:// CDP URL. It also opens the Notte live viewer, so you can watch the browser session while Hermes works.
Treat the CDP URL like a credential. It gives its holder control of the browser session, so do not commit it or share it in chat, logs, or tickets.
Attach Hermes to the Notte browser
In Hermes, use the/browser connect command and paste the CDP URL emitted by the launcher:
Why use Notte with Hermes?
- Managed cloud browsers: run browser tasks without installing or operating Chrome on the Hermes host.
- Stealth and reliability: enable Notte proxies, anti-detection, and CAPTCHA solving when the target site needs them.
- Live viewer: inspect and debug browser work in real time from the Notte console.
- Session isolation: create one Notte session per Hermes task, user, or worker to avoid shared browser state.
- Existing Hermes workflow: Hermes continues to use its built-in accessibility-tree browser tooling; only the browser endpoint changes.
Production pattern
For long-running or concurrent Hermes deployments, create and stop a Notte session in the worker that handles each task. Pass that session’s CDP URL to Hermes, keep the session open while the task runs, then stop it in afinally block. This gives each task isolated cookies and browser state while ensuring sessions are cleaned up if a task fails.
If your workflow needs persistent authenticated state, use a Notte vault or browser profile when creating the session. Do not bake website credentials into the Hermes configuration or task prompts.
Troubleshooting
- Hermes cannot connect: confirm the CDP URL came from the active launcher process and has not expired or been stopped.
- Hermes opens a local browser instead: reconnect with
/browser connectbefore starting the task, then verify that Hermes reports the remote browser is attached. - A site blocks the task: create the Notte session with
proxies=Trueand, where appropriate,solve_captchas=True. - The browser closes too early: keep the launcher process alive until the Hermes task has completed.

