1. Set up
- A Box API key from the Upstash Console.
- An Anthropic API key from API keys.
2. Write the agent
This file runs inside the box. It starts the box’s Chromium, runs the task, and writes the result toreports/.
agent.py
3. Set up the box
This script runs on your machine. It creates a box with a browser, installs Browser Use, runs the agent once, and schedules it.setup.py
Run
setup.py once. Each run creates a new box with its own daily schedule.4. Read the reports
Re-attach with the box id thatsetup.py printed:
reports.py
Next steps
- Schedules to pause a schedule or get a webhook when a run finishes.
- Connect over CDP to drive the box browser with Browser Use from your own machine.
- Browser for the SDK’s own
observe,act, andextract.