OpenComputer
OpenComputer is a background agent cloud for building and deploying long-running agents. Each sandbox is a full Linux VM with hardware-level isolation via KVM, supporting checkpoints, forks, and runtime memory and CPU resizing.
Visit diggerhq/opencomputerOverview
OpenComputer is a background agent cloud for long-running agents. Agents are defined like serverless functions in TypeScript, deployed with one command, and run in managed sessions with schedules. Each session runs on a full Linux VM with shell, filesystem, packages, and network access; sessions are durable, can be steered mid-run, hibernate when idle, and resume where they left off.
Key Features
- Define agents as TypeScript functions with models, tools, and MCP servers.
- Deploy with one command; every session gets a real computer.
- Every session runs on a full Linux machine with shell, read-write filesystem, package managers, and full network egress.
- Sessions are durable: they stream, can be steered mid-run, hibernate when idle, and resume where they left off.
- Managed API keys stay outside the runtime; secrets are bound to one origin and injected after the request leaves the machine.
- Schedules, managed sessions, streaming, MCP, and Slack are handled.
Use Cases
- Build a coding agent that edits a repository, runs checks, and opens a draft PR for review.
- Use the Workbench example app with a connected GitHub repository.
- Build a GTM engineer that finds prospects, content ideas, and market opportunities with public evidence, then researches and drafts before taking action.
- Run scheduled agents, such as a weekday hygiene agent that runs weekdays at 9am and opens cleanup PRs.
Getting Started
- Install the CLI with npm i -g @opencomputer/cli.
- Sign in with opencomputer login.
- Create your first agent by describing what you want it to do to your coding agent, or let the coding agent install the CLI, run opencomputer login, and deploy the first agent.
- Alternatively, run npx @opencomputer/cli init my-agent, cd my-agent, npm install, and npx --package @opencomputer/cli opencomputer login.
- Watch agent code and deploy changes with npm run deploy -- --watch.
Deployment & Requirements
- An OpenComputer account is required for the first agent template.
- The Workbench example app requires connecting your GitHub repository.
- The GTM engineer example requires an Exa key and is for research and drafting only.
- The CLI uses the default app service unless another service is intentionally targeted with --api-url or OPENCOMPUTER_API_URL.
Before You Adopt
- License: Apache-2.0. Review its terms before using, modifying, or distributing the project.
- The TypeScript opencomputer CLI is separate from the legacy Go oc CLI.
- The GTM engineer example depends on an external Exa key and is limited to research and drafting.
- The Workbench example depends on connecting a GitHub repository.
- The first agent template requires an OpenComputer account.