# Pause a machine

Pausing a machine stops everything agents do on it at once. Anyone may pause; only a person at the
machine may resume.

**In short:** Menu bar → CMDOP → Pause agents, or `cmdop control control.pause`. Resume in the CMDOP app with
Touch ID or your password.

## When to use this

An agent does something you did not expect, you hand the machine to someone, or you want to be
sure nothing acts while you are away. To end one agent's access everywhere instead,
[revoke it](https://docs.cmdop.ai/guides/access/revoke.md).

## Pause

Any one of these:

- the menu bar: CMDOP → **Pause agents**;
- the CMDOP window: the Pause switch at the bottom;
- a terminal on the machine: `cmdop control control.pause`;
- by hand: create an empty file named `control.pause` in the machine's config folder.

At once:

- every tool call returns [`paused`](https://docs.cmdop.ai/reference/errors/paused.md), for every agent and the page;
- every running task is stopped;
- an agent controlling the screen loses control, and held keys and buttons are released.

## Resume

Resuming raises what agents may do again, so it needs you at the machine:

1. Open the CMDOP app on the machine (the menu bar shows "Paused: open cmdop to resume").
2. Turn the Pause switch off and confirm with Touch ID or your password.

On a machine without the app, delete `control.pause` from the config folder
(`~/.config/cmdop` on Linux). A script, an agent or the page cannot resume:
`cmdop control control.resume` from a terminal returns `needs_presence` and exits with code 3.

## What else needs a person at the machine

Changes that raise what agents may do on this machine, made through the CMDOP app, ask for Touch ID
or your password: resuming, and pairing a client. A call that needs it and has no person behind it
returns [`needs_presence`](https://docs.cmdop.ai/reference/errors/needs_presence.md); an agent stops and asks you.

## Check

```bash
cmdop control control.state
```

prints `"paused": true` while the machine is paused, and `false` after you resume.

## Related

[Presence and pause](https://docs.cmdop.ai/concepts/presence-and-pause.md) · [Revoke an agent](https://docs.cmdop.ai/guides/access/revoke.md)
