Back to Tutorials
API·
February 13, 2026
·3 min read

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

terminal
Loading...

Authentication

Every API request requires an API key. Get yours from the dashboard under Settings > API Keys.

TypeScript

example.ts
Loading...

Python

example.py
Loading...

Run a Task

The simplest way to use the API — send a task and get a result:

TypeScript

example.ts
Loading...

Python

example.py
Loading...

Multi-Turn Conversations

For ongoing conversations, create a thread:

TypeScript

example.ts
Loading...

Python

example.py
Loading...

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

example.ts
Loading...

Python

example.py
Loading...

File Operations

Upload files to and download files from your agent's workspace:

TypeScript

example.ts
Loading...

Python

example.py
Loading...

Next Steps

Ready to get started?

Try Computer Agents today and experience the future of AI-powered automation.

Get Started