Skip to Content
Documentation

Computer Agents

Claude Code in the cloud, with an SDK.

npm versionGitHubLicense: MITPyPI versionGitHub Python

What if Claude Code had an API? And you could build real applications with it? That’s Computer Agents.

We give you Claude-level AI with full execution capabilities—isolated containers, persistent file storage, built-in skills—all accessible through a clean SDK. No infrastructure to manage.

Three Primitives

Everything you need to build agentic applications:

Agents — The Brain

Configure how your AI thinks. Custom instructions, model selection (Haiku, Sonnet, Opus), reasoning effort, and multi-turn memory.

const agent = await client.agents.create({ name: 'Code Assistant', model: 'claude-sonnet-4-5', instructions: 'You are a senior engineer. Write clean, tested code.', reasoningEffort: 'medium' });

Environments — The Computer

Give your agent a real computer. Isolated containers, persistent file storage, installed packages, secrets management.

const env = await client.environments.create({ name: 'my-project' }); // Configure runtimes and packages await client.environments.setRuntimes(env.id, ['python', 'nodejs']); await client.environments.installPackages(env.id, ['flask', 'pytest']); // Files persist across all sessions await client.files.uploadFile(env.id, { path: 'config.json', content: '{"debug": true}' });

Skills — The Tools

Pre-built capabilities that just work. Web search, deep research, image generation, plus any MCP server.

const agent = await client.agents.create({ name: 'Research Engineer', model: 'claude-sonnet-4-5', enabledSkills: ['web_search', 'deep_research', 'image_generation'] }); // Add custom tools via MCP await client.environments.update(env.id, { mcpServers: [ { type: 'stdio', name: 'github', command: 'npx', args: ['@anthropic/mcp-server-github'] } ] });

Build Real Workflows

Combine primitives to build multi-step workflows where each step builds on the last:

import { ComputerAgentsClient } from 'computer-agents'; const client = new ComputerAgentsClient({ apiKey: process.env.COMPUTER_AGENTS_API_KEY }); // Create a persistent thread const thread = await client.threads.create({ environmentId: 'env_xxx', agentId: 'agent_xxx' }); // Step 1: Research await client.threads.sendMessage(thread.id, { content: 'Research best practices for REST API design in 2024', onEvent: (e) => console.log(e.type) }); // Step 2: Build (files from step 1 still exist) await client.threads.sendMessage(thread.id, { content: 'Create a Flask API following those practices' }); // Step 3: Test (agent remembers everything) await client.threads.sendMessage(thread.id, { content: 'Write tests and run them' });

Why Computer Agents?

Raw Claude APIClaude CodeOpenAI Agents SDKComputer Agents
No executionCLI onlyNo infrastructureExecution + SDK + Managed
No filesLocal onlyYou build itPersistent workspaces
No toolsNot an APIPatterns onlySkills built-in

Documentation Structure

SDK Guide — TypeScript & Python SDK

API Reference — REST API

Architecture — Platform details

Get Started

npm install computer-agents
import { ComputerAgentsClient } from 'computer-agents'; const client = new ComputerAgentsClient({ apiKey: process.env.COMPUTER_AGENTS_API_KEY }); // This is Claude Code, but as an API const result = await client.run( 'Create a Flask API and run it', { environmentId: 'env_xxx', onEvent: (event) => console.log(event.type) } ); console.log(result.content);

Get your API key → | GitHub (TS) →  | GitHub (Python) →  | npm →  | PyPI → 

Last updated on