# Give Claude Code or Codex a home Linux server without handing over an SSH key Install CMDOP on the server with one command. The server connects out, so you open no port on your router. Claude Code or Codex then reach it through your own MCP address, https://\.cmdop.dev/mcp/, with an agent token you can limit in time and revoke. A new agent can only read until you switch on writing, running commands or the screen by hand. Facts read: 2026-11-24 ## The problem [Section on website](https://cmdop.ai/academy/lessons/home-linux-server-without-ssh-key#problem-title) You have a Linux server at home and want Claude Code or Codex to inspect it or run a job there. If the agent runs elsewhere, it needs a route to the server and permission to act on it. An SSH account or a private network with an MCP server can fit that setup. This guide uses the computer's outbound connection and an agent token whose permissions you choose. ## How it works instead [Section on website](https://cmdop.ai/academy/lessons/home-linux-server-without-ssh-key#how-title) - The server connects out to CMDOP. It opens no inbound port, so there is nothing to forward on your router. - Your agents reach it through your own MCP address, https://\.cmdop.dev/mcp/, with an agent token. The token is not a login to the server. - Claude Code, Codex and ChatGPT are the three clients seen working end to end this way. ## Install CMDOP on the server [Section on website](https://cmdop.ai/academy/lessons/home-linux-server-without-ssh-key#install-title) On the Linux server, the same install command as on any other computer. Windows is not supported yet. 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 ``` ## Connect Claude Code or Codex [Section on website](https://cmdop.ai/academy/lessons/home-linux-server-without-ssh-key#connect-title) On your CMDOP page, create an agent token in the Agents tab and add your address to the agent. Each client's line is on its page in the docs. - [Connect Claude Code](https://docs.cmdop.ai/guides/connect/claude-code) - [Connect Codex](https://docs.cmdop.ai/guides/connect/codex) ## What the agent may do [Section on website](https://cmdop.ai/academy/lessons/home-linux-server-without-ssh-key#allowed-title) - A new agent can only read. Writing files, running commands and the screen are switched on by hand, for that agent, on your page. - The token has a lifetime you choose, from 5 minutes to 90 days. You can extend it or revoke it. - Revoking cuts the agent off from its next call. - To stop everything on the server at once, pause it from your page. Only a person at the server can resume it. - [Choose what an agent may do](https://docs.cmdop.ai/guides/access) - [Tokens](https://docs.cmdop.ai/concepts/tokens) - [Revoke an agent](https://docs.cmdop.ai/guides/access/revoke) - [Pause and presence](https://docs.cmdop.ai/guides/pause-and-presence) ## What you can check afterwards [Section on website](https://cmdop.ai/academy/lessons/home-linux-server-without-ssh-key#record-title) Your server itself keeps a record of every call with its arguments, for 30 days or up to 500 MiB, so you can read what an agent asked it to do. CMDOP's side keeps only a fingerprint of the arguments. - [The record of calls](https://docs.cmdop.ai/concepts/audit-and-history) ## A first task to try [Section on website](https://cmdop.ai/academy/lessons/home-linux-server-without-ssh-key#first-task-title) Choose the server you mean from the computer list, then ask how full its disks are and how much memory is available. This uses `sys_info`, a read operation. The agent needs read access and the server's own limits still apply. If the call is refused or the server is unavailable, keep that result visible instead of trying another computer automatically. To list the ten largest folders it would run `du`, and running commands is a switch you turn on by hand. Turn it on for that agent only when you want it. ## Other ways to do this [Section on website](https://cmdop.ai/academy/lessons/home-linux-server-without-ssh-key#alternatives-title) - An SSH MCP server with a key for the agent. - Tailscale or WireGuard to reach the server, with an MCP server running on it. - A vendor tunnel to an MCP server you already run, from Anthropic or OpenAI. Each fits a different setup. The comparison of the tunnels is on its own page. - [Outbound-only MCP access compared](https://cmdop.ai/academy/lessons/mcp-tunnels-compared.md) ## Limits [Section on website](https://cmdop.ai/academy/lessons/home-linux-server-without-ssh-key#limits-title) - Linux and macOS only. Windows is not supported yet. - The screen tools work on Linux only with X11. A server without a desktop has no screen to share. - This page makes no claim about uptime of the server or of the connection. - [Feature status](https://docs.cmdop.ai/help/feature-status) ## Related materials - [Claude Code on another computer over MCP](https://cmdop.ai/academy/lessons/claude-code-remote-machine-mcp.md) - [Outbound-only MCP access compared](https://cmdop.ai/academy/lessons/mcp-tunnels-compared.md) - [Cut off an AI agent](https://cmdop.ai/academy/lessons/cut-off-an-ai-agent.md) [All materials in this path](https://cmdop.ai/academy/paths/work-on-a-machine.md)