AI agent instructions
AI agent instructions
Set up
Use Python 3.11+, a boat API key, and a Notte API key. Installboat-sdk, notte-sdk[playwright], and python-dotenv.
Open a sandbox app from your code
Serve the app from the sandbox, then host its port. The hosted URL carries an access token, so the browser needs no auth header; treat it like a password.session.page is a Playwright page connected to the Notte browser over CDP.
Drive the browser from inside the sandbox
Agents running in the sandbox can use the Notte CLI. PassNOTTE_API_KEY in the sandbox’s env when you create it, then install the CLI and the Notte skills, which coding agents such as Claude Code and Codex pick up from ~/.agents/skills:
host_port returns: