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://<your-address>.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.
Guides · Facts read
The problem
You have a server at home: a NAS, a mini PC, a guest on a hypervisor. You want Claude Code or Codex to look at it, clean it up or run a job on it. The usual way is an SSH key for the agent and a port open to the internet, or a VPN the agent has to join. With an SSH key, the agent holds a key that opens everything the account can do.
How it works instead
- 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://<your-address>.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
On the Linux server, the same install command as on any other computer. Windows is not supported yet.
curl -fsSL https://install.cmdop.ai | shConnect Claude Code or Codex
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.
What the agent may do
- 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.
What you can check afterwards
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.
A first task to try
Ask: "How full are the disks on my server, and how much memory is free?" The agent calls sys_info, which only reads, so it works without changing a setting.
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
- 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.
Limits
- 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.