# Give Claude Code access to another computer through MCP CMDOP connects the AI you already use to your own computers, and MCP is how. Install CMDOP on the other computer, create an agent token for Claude Code on your page, and add the MCP address https://\.cmdop.dev/mcp/ to Claude Code with one command. Claude Code is seen working end to end this way. The token has a lifetime you choose, from 5 minutes to 90 days, and you can extend or revoke it. A new agent can only read. Facts read: 2026-11-24 ## Two questions share this search [Section on website](https://cmdop.ai/academy/lessons/claude-code-remote-machine-mcp#two-questions-title) - How do I add a remote MCP server to Claude Code? Anthropic's documentation covers that, for any server. - How do I let Claude Code work on a computer it is not running on? That is what this page covers, with CMDOP as the server. - [Claude Code: connect to MCP servers](https://code.claude.com/docs/en/mcp) ## Install CMDOP on the other computer [Section on website](https://cmdop.ai/academy/lessons/claude-code-remote-machine-mcp#install-title) Run this on the Mac or Linux computer you want Claude Code to reach. Windows is not supported yet. No account yet? `cmdop setup` makes one: it asks for your email and the code from the letter, and your first computer gets your address. On a Mac: [Download for Mac](https://install.cmdop.ai/download/macos/universal2?format=app-zip). On Linux and servers: ```text curl -fsSL https://install.cmdop.ai | sh ``` ## Create an agent token [Section on website](https://cmdop.ai/academy/lessons/claude-code-remote-machine-mcp#token-title) On your CMDOP page, open the Agents tab and create a token for Claude Code. The page shows it once. You choose its lifetime, from 5 minutes to 90 days; you can extend it later, and you can revoke it. The owner's own token does not open the MCP server. - [Tokens](https://docs.cmdop.ai/concepts/tokens) ## Add it to Claude Code [Section on website](https://cmdop.ai/academy/lessons/claude-code-remote-machine-mcp#add-title) On the computer where Claude Code runs, paste this in a terminal. Put your address and the token in place of the two placeholders. the Claude Code setup line ```text claude mcp remove --scope user cmdop 2>/dev/null; claude mcp add --scope user --transport http cmdop https://your-address.cmdop.dev/mcp/ --header "Authorization: Bearer " ``` A line with the token in it stays in your shell history. Put the token in a private file and read it from there, or clear the line afterwards. - [Connect Claude Code](https://docs.cmdop.ai/guides/connect/claude-code) ## Check it [Section on website](https://cmdop.ai/academy/lessons/claude-code-remote-machine-mcp#check-title) Ask Claude Code to call `machines_list`. It answers with your computers. If it says `unauthorized`, the token is wrong or was revoked: create a new one. - [Try it in three steps](https://cmdop.ai/try) ## What it may do there [Section on website](https://cmdop.ai/academy/lessons/claude-code-remote-machine-mcp#allowed-title) A new agent can only read. Writing, running commands and the screen are switched on by hand, for that agent, on your page. - [Choose what an agent may do](https://docs.cmdop.ai/guides/access) - [Run commands and long tasks](https://docs.cmdop.ai/guides/run) ## Cut it off [Section on website](https://cmdop.ai/academy/lessons/claude-code-remote-machine-mcp#cut-off-title) Revoking the token cuts the agent off from its next call. Pausing the computer stops every call and its running tasks; only a person at the computer can resume it. - [Revoke an agent](https://docs.cmdop.ai/guides/access/revoke) - [Pause and presence](https://docs.cmdop.ai/guides/pause-and-presence) ## The same address for other clients [Section on website](https://cmdop.ai/academy/lessons/claude-code-remote-machine-mcp#same-address-title) Codex and ChatGPT work against the same address, with the same computers and the same permissions, so you can change the AI without touching the machines. They are the other two clients seen working end to end. Apps that sign in through the browser can use the browser sign-in instead of a token. - [Connect Codex](https://docs.cmdop.ai/guides/connect/codex) - [ChatGPT with your own computer over MCP](https://cmdop.ai/academy/lessons/chatgpt-mcp-your-computer.md) ## Limits [Section on website](https://cmdop.ai/academy/lessons/claude-code-remote-machine-mcp#limits-title) - macOS and Linux only. Windows is not supported yet. - Claude Code is the Claude client named here. Other Claude apps are not described on this page. - The setup line comes from the same source as the connect panel on your page, so the page's line wins if they ever differ. - [The MCP server](https://docs.cmdop.ai/reference/mcp) - [Feature status](https://docs.cmdop.ai/help/feature-status) ## Related materials - [Run terminal commands on your Mac from ChatGPT](https://cmdop.ai/academy/lessons/chatgpt-run-terminal-commands-mac.md) - [Outbound-only MCP access compared](https://cmdop.ai/academy/lessons/mcp-tunnels-compared.md) - [ChatGPT with your own computer over MCP](https://cmdop.ai/academy/lessons/chatgpt-mcp-your-computer.md) [All materials in this path](https://cmdop.ai/academy/paths/connect-your-ai.md)