# Give Claude Code or Codex another computer

Claude Code or Codex runs on your laptop and works on another computer: a build server, a home
server, a second Mac. It reads first; writing and running commands are switched on by hand.

**In short:** Install CMDOP on the other computer and run `cmdop setup`. Then add your MCP address to the agent:
[Claude Code](https://docs.cmdop.ai/guides/connect/claude-code.md) or [Codex](https://docs.cmdop.ai/guides/connect/codex.md).

## When to use this

The code, the data or the hardware is on a computer the agent does not run on.

## Steps

1. Install CMDOP on the other computer and run `cmdop setup` with your email
   ([quick start](https://docs.cmdop.ai/start/quickstart-owner.md)).
2. Connect the agent on the computer where it runs: [Claude Code](https://docs.cmdop.ai/guides/connect/claude-code.md)
   with an agent token, or [Codex](https://docs.cmdop.ai/guides/connect/codex.md) through the browser or a token.
3. Ask for facts first: "What is the system and the disk space of my build server?"
   ([`sys_info`](https://docs.cmdop.ai/reference/tools/sys_info.md)).
4. When the task needs it, switch on `write` or `exec` for that agent
   ([grant risk classes](https://docs.cmdop.ai/guides/access/grant.md)).

## Check

The agent's `machines_list` shows the other computer `online`, and its answers name it.

## If it fails

- [`unauthorized`](https://docs.cmdop.ai/reference/errors/unauthorized.md): the token or approval ran out or was revoked;
  connect again.
- [`denied`](https://docs.cmdop.ai/reference/errors/denied.md): the class is not switched on for this agent.

## Related

[Several computers in one chat](https://docs.cmdop.ai/guides/use-cases/several-computers.md) ·
[Cut an agent off](https://docs.cmdop.ai/guides/use-cases/cut-off.md)
