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

> ## Agent Instructions
> For agents: install the OpenWork desktop app with `brew install --cask openwork` (macOS) or from https://openworklabs.com/download. Do not run `npx openwork`; the npm package named `openwork` is a different project.
> Connect an agent to OpenWork with the MCP Gateway: `claude mcp add --transport http openwork https://api.openworklabs.com/mcp/agent`. Teams sign up at https://app.openworklabs.com?mode=sign-up.
> Step-by-step agent guide: https://openworklabs.com/docs/start-here/use-openwork-from-an-ai-agent.md
> Connect Slack (any organization admin): https://openworklabs.com/docs/slack/connect-slack.md. OpenWork in Slack (@openwork bot) is private alpha for approved organizations. Setup guide: https://openworklabs.com/docs/slack/overview.md. Agent skill: https://openworklabs.com/.well-known/agent-skills/set-up-openwork-slack/SKILL.md.

# Computers

> Stop a cloud computer, choose its size, and grant a shared computer to a member or an agent from the terminal.

> [!WARNING]
>
> These commands are in preview and are available to customers on request. Each one is off until OpenWork turns it on for your organization, and how it works may change. To try one, ask your OpenWork contact.

The `openwork computers` commands manage the cloud computers OpenWork runs for your organization. Run the CLI and sign in as described in the [CLI overview](https://openworklabs.com/docs/cloud/cli.md).

```sh theme={null}
openwork computers list
```

`computers list` and `computers create --everyone` work once admin computer setup is on for the organization. The commands below each need a preview feature of their own.

| Command | What it does | Ask for |
| - | - | - |
| [`computers stop`](#stop) | Stops a running cloud computer | Admin computer stop |
| [`computers sizes`](#sizes) and `create --size` | Lists the sizes and sets one when creating | Computer sizes |
| [`computers create --name`](#create-name) | Records a computer that belongs to the organization | Shared computer grants |
| [`computers grant`](#grant), [`revoke`](#revoke), [`grants`](#grants) | Says who may use a shared computer | Shared computer grants |

A command whose feature is off stops with `feature_disabled` and changes nothing.

***

## stop

Stop a running cloud computer.

```sh theme={null}
openwork computers stop sam@example.com
```

Name the computer by its id, its name, or its owner's email. Its files are saved first, and it starts again by itself the next time it is needed. A computer in the middle of work is not stopped.

| Flag | Description |
| - | - |
| `--force` | Skip the confirmation. Required when no one is at the terminal. |
| `--dry-run` | Print the request instead of sending it. |

You need the **Disconnect team computers** permission.

***

## sizes

List the three sizes and which ones your deployment has set up.

```sh theme={null}
openwork computers sizes
```

The sizes are `small`, `medium` and `large`. Pass one when you set up computers for people:

```sh theme={null}
openwork computers create --members sam@example.com --size large
openwork computers create --teams Design --size small --dry-run
```

| Flag | Description |
| - | - |
| `--size <small\|medium\|large>` | Create the computers on this size. Without it they get the deployment's default. |

* A size the deployment has not set up is refused, and nothing is created for anyone in that command.
* A computer keeps its size for life. A member who already has a computer keeps the size it has; the command says so and leaves it alone.
* `computers list` gains a `SIZE` column. `default` means the computer was created without a size.

Choosing a size needs the **Set up cloud computers** permission and a recent sign-in. Listing sizes needs **View team computers**.

***

## create --name

Record a shared computer that belongs to the organization instead of to one person.

```sh theme={null}
openwork computers create --name build-box
```

The name is lowercase letters, digits and hyphens, and is unique in the organization. Asking for a name that exists changes nothing. This form does not take `--everyone`, `--teams` or `--members`.

> [!NOTE]
>
> Nobody can open a shared computer yet. The preview stores the computer and its grants so you can decide who it is for. No machine is started.

***

## grant

Grant one shared computer to one member or one agent.

```sh theme={null}
openwork computers grant build-box sam@example.com
openwork computers grant build-box --agent "Accounting Bot"
```

| Flag | Description |
| - | - |
| `--agent <id-or-name>` | Grant to an agent instead of a member. |

Only a shared computer can be granted. A member's own computer can never be granted to someone else, and a grant goes to one member or one agent at a time, not to a team.

***

## revoke

End a member's or an agent's grant.

```sh theme={null}
openwork computers revoke build-box sam@example.com
openwork computers revoke build-box --agent "Accounting Bot" --force
```

| Flag | Description |
| - | - |
| `--agent <id-or-name>` | End an agent's grant instead of a member's. |
| `--force` | Skip the confirmation. |

Removing a member from the organization or archiving an agent ends their grants too.

***

## grants

List the shared computers, or who one is granted to.

```sh theme={null}
openwork computers grants
openwork computers grants build-box
```

Creating, granting and revoking need the **Set up cloud computers** permission and a recent sign-in. Listing needs **View team computers**.


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