Minimal computer-use demo using portabledesktop, portabledesktop/ai, and Vercel AI SDK.
- Starts a desktop session.
- Starts a live VNC viewer and opens it in your host browser.
- Runs the agent for your
--promptand streams text to stdout as it arrives. - Saves an MP4 recording and opens that MP4 in your host browser.
cd examples/agent
bun installSet ANTHROPIC_API_KEY in repo-root .env.local or your shell.
For OpenAI tests, set OPENAI_API_KEY.
bun run start -- --prompt "Open coder.com and find the Dropbox customer story"Run with OpenAI:
bun run start -- --provider openai --model gpt-5 --prompt "Open coder.com and find the Dropbox customer story"or:
bun run smoke:openaiIf --prompt is omitted, a default web-navigation prompt is used.
- The example launches a desktop browser automatically.
- Recordings are saved under
examples/agent/tmp/. - Idle segments in the recording are auto-sped up for demo readability.