Base URL
Authentication
All requests require an OpenComputer API key via theX-API-Key header:
Session object
All endpoints that return sessions use this shape:Preview URL
ThepreviewUrl field points to a live dev server running inside the sandbox. Embed it in an iframe or open it directly — it updates in real-time as the agent edits files via HMR.
The URL is available once the agent starts a dev server on port 3000. If the agent hasn’t started one yet, previewUrl will be empty.