# Run an agent only on one computer

> For people who open the same project from several computers of one account.

- Area: Desktop app
- Plans: All plans
- Last checked against the product: 2026-12-02
- Web page: https://agentsroom.dev/docs/agent-machine-lock

## What it does

For people who open the same project from several computers of one account.
A saved agent can be pinned to one of them. Without it, one click on the
agent's row on the other computer starts a fresh, blank console there: two
conversations of the same agent, and the work is lost from view. With it, no
other computer ever starts a console of that agent.

## Where to find it

Edit agent > Advanced options > "Run only on this computer". Turn it on from
the computer the agent belongs to. On another computer the same switch reads
"Run only on <computer>".

## How to use it

1. On the computer that should run the agent, open its card menu > Edit agent.
2. Open Advanced options and turn on "Run only on this computer", then Save.
3. On any other computer of the account, a click on the agent's row starts it
   on its computer when that one is online (remote view). Offline: a message
   says "This agent runs only on <computer>" and nothing starts.
4. A trigger, a ticket, `agents_spawn` or a start from the phone aimed at
   another computer opens a console that says where the agent runs, and
   starts nothing. This holds for the copy of the agent a ticket starts too.
5. A ticket that enters a backlog column whose agent is locked (a column
   prompt with "New agent") runs that column on the agent's computer when it
   is online and has the project. Otherwise a notification says where the
   agent runs and nothing starts. In progress, To do and Done keep their own
   start: there, a locked agent aimed at another computer starts nothing.

Turning the switch off, from any computer, brings back the usual behaviour.

## Settings

- `machineLock` (agent, Edit agent > Advanced options > Run only on this
  computer): off by default. Stored with the agent on your account, so every
  computer and the phone see it. A locked agent ignores the project's machine
  pool ([Machine pool and machine budget](https://agentsroom.dev/docs/machine-pool.md)). A console already running is never closed by it.

## Agent tools (MCP)

- `settings_set` scope agent, key `machineLock`: "here" (the computer running
  the app that receives the call), a computer name or device id of the
  account, or null to remove the lock. `settings_get` returns the computer's
  name.
- `agents_spawned_get` / `agents_spawned_wait`: an agent started by another
  agent on a computer that the lock refuses reads `held` with `heldReason`
  `launch_failed`, and its tab says where the agent runs.

## Providers

All providers, no difference.

## Mobile

The switch is not on the phone yet: set it on a computer, or ask an agent
(`settings_set`). A start asked from the phone follows the lock, because the
paired computer runs the same start path.

## Limits

- A computer that cannot tell which one it is (signed out) starts the agent
  as before: the lock compares this computer with the one stored on the agent.
- A trigger, or a ticket started in In progress, aimed at another computer
  does not move to the locked computer yet: it starts nothing and says where
  the agent runs. A ticket entering any other column with a prompt does move
  there (since 2026-12-02).
- A project published to a team never carries the lock: members get the agent
  without it, since the publisher's computer is not theirs (fixed 2026-11-29).

## Common questions

- **One click on my second computer starts a blank console of an agent that
  belongs on the first. How do I stop that?** Turn on "Run only on this
  computer" in the agent's Advanced options, on the computer it belongs to.
- **I locked a column's agent to another computer and tickets moved into that
  column still started it here.** Fixed on 2026-12-02: the column now starts
  it on its computer, or tells you where it runs when that computer cannot
  take it.
- **Does the lock stop an agent that is already running?** No. It only
  refuses new consoles on the other computers.
- **I published my project to my team and their copy of the agent would not
  start.** Fixed on 2026-11-29: the lock stayed on the published agent and
  pointed at your computer. A project published since then leaves it out, and
  anyone can turn the switch off in Edit agent > Advanced options.

## Related

- [Machine pool and machine budget](https://agentsroom.dev/docs/machine-pool.md): where a start goes when no agent is pinned.
- [Remote Fleet](https://agentsroom.dev/docs/remote-fleet.md): the connection between the account's computers this builds on.
