Serves a screenshot gallery from /frames with placeholder PNGs generated by the agent (no live desktop required for the showcase).
On InstaVM, use a desktop microVM (desktop=True, recording enabled) for real Anthropic computer-use loops. This cookbook demo uses flat-color placeholder frames at 320×200; set SCREEN_W / SCREEN_H to match your VM resolution (default 1280×800).
| Method | Path | Description |
|---|---|---|
| GET | / |
HTML gallery of captured frames |
| GET | /frames/*.png |
Frame images |
| GET | /health |
Status + frame count |
| POST | /capture |
Regenerate placeholder frames |
cd recipe-29-computer-use-replay
DATA_DIR=/tmp/computer-use-replay pip install -r requirements.txt
DATA_DIR=/tmp/computer-use-replay pytest -q