> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackshift.cloud/llms.txt
> Use this file to discover all available pages before exploring further.

# Computers: a cloud computer for any agent

> A Computer is a full Linux machine, with or without a desktop, that an agent or a person can create, drive, pause, fork and delete from anywhere.

> [!TIP]
>
> **Live.** This area is documented as current, user-reliable behavior.

## Goal

Understand what a Computer is, what you can do with one, and which way in suits your agent.

## Prerequisites

* A StackShift account. Your first computer goes in your latest project, or in a new project named Computers if you have none yet.
* An agent, script or automation tool that can call HTTP or MCP, or a terminal with Node.js for `npx`.

## Workflow

**Step 1**

Run `npx stackshift@latest sh`. It signs you in, installs the StackShift agent skills for Claude Code, Codex and Gemini, and opens a shell on a new computer. Without Node.js, install the CLI with `curl -fsSL https://stackshift.cloud/install.sh | sh` or `brew install stackshiftCloud/tap/stackshift`, then run `stackshift sh`.

**Step 2**

Or open Computers in the dashboard, or run `stackshift computers create my-first-computer --wait`.

**Step 3**

Open the desktop or a terminal on it from the dashboard, or run `stackshift computers sh my-first-computer`.

**Step 4**

Create a computers key with `stackshift computers keys create my-agent` and give it to your agent. Pick the quickstart for your agent from the related guides.

**Step 5**

Watch the agent work on the live view. Take over the mouse and keyboard at any moment, then hand them back.

## Start in one command

`npx stackshift@latest sh` needs nothing installed but Node.js. It signs you in through the browser, puts the StackShift skills in `~/.claude/skills`, `~/.agents/skills` and `~/.gemini/config/skills`, creates a computer and opens a terminal on it. When the shell ends the computer pauses; run `npx stackshift@latest sh NAME` to carry on. Add `--no-skills` to skip the skills, or run `npx stackshift@latest skills install -y` to install only the skills.

```bash theme={null}
npx stackshift@latest sh
```

```bash theme={null}
curl -fsSL https://stackshift.cloud/install.sh | sh
brew install stackshiftCloud/tap/stackshift
```

```powershell theme={null}
irm https://stackshift.cloud/install.ps1 | iex
```

## What a Computer is

A Computer is your own machine in StackShift, with its own disk, memory, network address and processes. It is not a slice of a shared machine: each one runs as its own Firecracker microVM with its own kernel, so what an agent installs, browses or deletes stays inside that one machine.

Four templates cover most work. `agent-desktop` is a Debian 13 desktop with a browser, for agents that look at the screen and use a mouse and keyboard. `coding` is a terminal-first Debian 13 machine with language toolchains and git. `android` is an x86\_64 Android system with a live screen for app testing. `ci-runner` is a clean Ubuntu 24.04 machine for builds and tests.

* Start from a template, from a snapshot of another computer, from a Docker or OCI image you import, or from a git repository with a devcontainer or setup script.
* Pick a size from the list the template offers. `agent-desktop`, `coding` and `ci-runner` offer 2 vCPU with 4 or 8 GiB, 4 vCPU with 8 or 16 GiB, 8 vCPU with 16 GiB and 16 vCPU with 32 GiB. `android` starts at 4 vCPU with 8 GiB. Any other combination answers `size_unavailable`.
* The disk starts at 20 GiB, which is also the smallest. You can ask for up to 512 GiB, and a resize can only make the disk larger.
* Choose a region when you create it, from `GET /computers/regions`. Leave it out for the default region.
* Reach it by live desktop view, browser terminal, SSH, Chrome DevTools Protocol, files, commands and published ports.

## What makes it different from a sandbox

Sandboxes are short jobs: run code, return the result, tear down. Computers are places to live. A computer keeps its disk when idle, pauses itself to save money, comes back exactly where it was, and can be copied while it runs.

To run code and get the result, use a one-shot run: one call starts a sandbox, runs your code, returns the output and deletes the sandbox. Use a Computer when you want a machine that stays. See Run code in one call.

* Pause: an idle computer pauses on a timer you set and resumes on the next connection. With memory kept, open programs resume mid-task.
* Fork: copy a running computer up to 20 times so each copy tries a different approach from the same starting point.
* Snapshots: save a computer and start new ones from it, or put the same computer back.
* Hand-off: a person and an agent share one screen. When you take control, the agent is told to wait.

## Ways in

* MCP: one URL gives Claude Code, Codex, Cursor and other MCP clients 18 tools to create and drive computers. See the MCP tools guide.
* REST API: every action is an endpoint, described by an OpenAPI file. Use it from n8n, scripts and your own agents.
* CLI: `stackshift computers` creates, opens, forks and cleans up from a terminal.
* SSH: `ssh.stackshift.cloud` on port 2222 reaches any computer with a short-lived certificate or a shareable line.
* Dashboard: the Computers page lists computers, shows the live desktop and keeps the history of what the agent did. Snapshots, Templates, Usage and Teams sit beside it.

## Teams and CI

A Computer Team is several computers, each with its own agent, working on one job with a shared folder, a private network and a message board. See Computer Teams.

CI runs your GitHub Actions jobs on a fresh computer each, deleted when the job ends. See CI on computers.

## What you pay for

You pay for the vCPUs and memory of a computer by the second while it runs, for its disk while it exists, for snapshots you keep and for data it sends to the internet. A paused computer stops charging for vCPUs and memory but keeps its disk. The Usage page shows this month’s cost for each computer.

The free plan includes one computer of up to 2 vCPU and 4 GiB of memory, for 4 running hours each calendar month. It pauses after 30 idle minutes at most. Ignite runs up to 5 computers at once, Pro 25 and Enterprise 100. Current prices in naira and dollars are on the pricing page, and `GET /api/v1/computers/public-pricing` returns the same numbers without signing in. See Usage, prices and spending limit.

## Expected result

> [!TIP]
>
> You have a running computer, a way to watch and steer it, and a key that lets your agent drive it within limits you chose.

## Common failures

> [!WARNING]
>
> * The computer stays in creating. Capacity is allocated in the background; `GET /computers/{id}` and the Computers page show the state, and a failed create reports a `failure_code`.
> * Create answers `size_unavailable` or `template_unavailable`. Choose a size listed for that template in `GET /computers/templates`.
> * Create answers `limit_exceeded` or `spend_cap_reached`. Your plan, your monthly spending limit or the key you used has a cap; raise it on the Usage page or use a key with a higher limit.
> * Create answers `capacity_busy`. Free computers share a limited part of each server and none is free right now. Try again in a few minutes, or upgrade to start now.

## Related guides

> [card] [Run code in one call](https://docs.stackshift.cloud/computers/run-code.md)
>
> Send code and a command, get back the exit code and output. StackShift starts a fresh sandbox, runs it and deletes the sandbox, all in one request.

> [card] [Create and manage computers](https://docs.stackshift.cloud/computers/create-and-manage.md)
>
> Create a computer from a template, a snapshot or a repository, open it, run commands, move files, publish ports and delete it.

> [card] [Computers keys and limits](https://docs.stackshift.cloud/computers/keys-and-limits.md)
>
> A computers key lets an agent or tool drive computers and nothing else. Set how many it may run, how large, from which templates and how much it may spend.

> [card] [Usage, prices and spending limit](https://docs.stackshift.cloud/computers/usage-and-spending.md)
>
> What computers cost, what the free plan includes, how to read this month’s usage and how to stop spending at a limit you choose.

> [card] [Computer Teams: several agents on one job](https://docs.stackshift.cloud/computers/teams.md)
>
> A team puts several agents, each on its own computer, on one job, with a shared folder, a private network and a message board between them.

> [card] [Give Claude Code a cloud computer](https://docs.stackshift.cloud/computers/quickstart-claude-code.md)
>
> Add the Computers MCP server to Claude Code so it can open a desktop, run commands, fork copies and ask you before it acts.

> [card] [Computers REST API](https://docs.stackshift.cloud/computers/rest-api.md)
>
> Every computer action is an endpoint under /api/v1/computers, with idempotent mutations, a typed error format, live sessions and an event stream.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.