
Set up
1
On your computer
With Python 3.11 or later:Get the Notte key from the Notte console. Machines are created and billed in the boxd key’s organization.
2
Write the agent
This runs on the machine. Save it as
agent.py:agent.py
3
Run it on a machine
Save this as Our run on 24 November 2026, with
run_agent.py, next to agent.py. It creates an isolated machine, installs the Notte SDK there, runs the agent and deletes the machine:run_agent.py
notte-sdk 1.10.16 and boxd 0.3.5:Or use the Notte CLI
An agent on the machine can also drive the browser from the shell. PassNOTTE_API_KEY with each command, as run_agent.py does:
trap or finally, so it also stops when a step fails.
How it works
- The machine runs the agent. It is created with
isolated=True: off your organization’s private network, with no boxd CLI and no connected integrations. See sandboxes. - Notte runs the browser. The SDK on the machine calls Notte’s API, and the browser runs on Notte’s side.
- The key goes with the command.
env=setsNOTTE_API_KEYfor oneexec. In our run, no later command saw it and no file held it. - Both are cleaned up. The
withblock stops the session and thefinallyblock deletes the machine, also when a step fails.
Limits
- Session length. A Notte session stops after 3 minutes idle or 15 minutes in all. Change it with
idle_timeout_minutesandmax_duration_minutes(session configuration). - The key. Code on the machine can read the key while its command runs. Use a Notte key you can revoke.
- A killed script. If
run_agent.pydies beforefinally, the machine stays. Remove it withboxd machine remove <name> -y, or set a delete timer when you create it.
Read more
- Sessions and the CLI reference in Notte’s docs
- Notte on GitHub
- Launch a browser: the browser on every boxd machine