Creates a cloud sandbox, starts an AI agent with your prompt, and returns a session with a live preview URL. The agent begins working immediately — stream events to follow its progress.
curl -X POST https://api.opencomputer.dev/v1/sessions \ -H "Content-Type: application/json" \ -H "X-API-Key: osb_your_api_key" \ -d '{ "prompt": "Build a todo app with Next.js and Tailwind", "user_id": "user_123", "agent_config": { "system_prompt": "You are a web app builder. Work in /workspace/app.", "skills": { ".claude/skills/build-app/SKILL.md": "# Build App\n\nScaffold, install, edit, verify." } } }'