The Computer API.
@Computer is a coding agent that runs Claude Code or Codex in the cloud. Most teams talk to it in Slack. The Computer API drives the same sessions from your own code: start a session with a task, send follow-up messages, answer its approvals and questions, and watch every step as it happens. A session started from the API works on the same cloud machine, with its own git worktree and branch, and ends in a pull request like a Slack thread does.
Resources
- OpenComputer API reference: The Computer API overview: HTTP for every write, a WebSocket for reads and terminals, idempotency keys and errors.
- OpenComputer authentication: Every request carries an API key in the x-api-key header, with scopes for reading sessions, writing to them, answering asks and opening terminals.
- Sessions: Create a session with POST /sessions and a first message, list the sessions you may use, read one, suspend and resume it.
- Turns: Send a message to a session. While a turn runs, a new message can queue, steer the running turn or interrupt it.
- Events and Live: Every state change is an event numbered from 1 with no gaps. Read history over HTTP and follow new events on the Live WebSocket.
- Asks: Answer or dismiss the approvals and questions a session is waiting on.
- Subagents, terminals and files: List and stop subagents, open a shell in the session's container, and upload or download files in its workspace.
- OpenComputer API schema: Every operation, object, event and error code of the Computer API.
- OpenComputer CLI (opc, in preview): The Computer API's open-source command-line client, a single binary for macOS, Linux and Windows under WSL 2. Releases before 0.1.0 are prereleases.
- Source code: OpenComputer is open source and self-hostable, including the API schema and opc.
- OpenComputer developer portal: The web app, where you connect Slack, GitHub and your model subscription and chat with @Computer.
- OpenComputer MCP server: A streamable HTTP MCP server that searches and reads the OpenComputer documentation, for coding agents that build on the API.
- OpenComputer docs for agents: The documentation index as llms.txt, every page available as markdown.
Start a session over HTTP
Requests go to https://app.opencomputer.dev/api/managed-agents/computer with your API key in the x-api-key header. Create a session with POST /sessions and a body such as {"input": "Run the test suite and fix what fails"}, then send more messages with POST /sessions/{id}/turns. Every write takes an Idempotency-Key header, so retries are safe.
Or from a terminal
The opc CLI is in preview. Install it, run opc login to approve a device code in the browser and get an API key, then work with sessions from your shell.