# Cut an agent off right now

Two ways to stop an agent, for two situations: revoke one agent on every computer, or pause one
computer for every agent.

**In short:** One agent: your page → All machines → Agents → the agent → Revoke. One computer: the machine on
your page → Pause. Resuming a paused computer needs a person at it.

## When to use this

An agent does something you did not ask for, a token may have leaked, or you are about to leave a
computer and want nothing to act on it.

## Steps

1. **One agent, everywhere:** [revoke it](https://docs.cmdop.ai/guides/access/revoke.md). Its next call, on any
   computer, returns [`unauthorized`](https://docs.cmdop.ai/reference/errors/unauthorized.md). It cannot be undone; to
   bring it back, connect it again as a new agent.
2. **One computer, every agent:** [pause it](https://docs.cmdop.ai/guides/pause-and-presence.md). Every call returns
   [`paused`](https://docs.cmdop.ai/reference/errors/paused.md), and every running task on it is stopped.
3. Afterwards, [see what it did](https://docs.cmdop.ai/guides/use-cases/what-did-it-do.md).

| | Revoke | Pause |
|---|---|---|
| Stops | one agent, on every computer | every agent, on one computer |
| Running tasks | keep running: stop them with `task_stop` or pause the computer | stopped |
| Undo | connect again as a new agent | a person at the computer resumes it |

Tokens also end on their own: you choose their lifetime, from 5 minutes to 90 days.

## Check

The agent's next call gets `unauthorized` (revoked) or `paused` (paused), and your page shows it.

## Related

[Tokens](https://docs.cmdop.ai/concepts/tokens.md) · [Presence and pause](https://docs.cmdop.ai/concepts/presence-and-pause.md)
