API Quickstart
Integrate Computer Agents into your own products. Create threads, stream responses, and manage environments — all through the API.
The Computer Agents API
Everything you can do in the app, you can do through the API. This tutorial covers authentication, creating threads, streaming responses, and managing environments programmatically.
Installation
Authentication
Every API request requires an API key. Get yours from the dashboard under Settings > API Keys.
TypeScript
Python
Run a Task
The simplest way to use the API — send a task and get a result:
TypeScript
Python
Multi-Turn Conversations
For ongoing conversations, create a thread:
TypeScript
Python
The agent remembers everything from the first message. Files it created are still there. Context is preserved.
Streaming
All responses stream by default via SSE. The onEvent callback receives events as they arrive:
TypeScript
Python
File Operations
Upload files to and download files from your agent's workspace:
TypeScript
Python
Next Steps
- Configure environments — Set up runtimes, packages, and secrets
- Enable skills — Add web search, image generation, and deep research
- Read the full API documentation
Ready to get started?
Try Computer Agents today and experience the future of AI-powered automation.
Get Started