Skip to content

Work on a machine · Facts read

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.

Founder-led byMark KorotinFounder & CEO, CMDOP
onemark.cc

The problem

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

  • 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.

Download for Mac

The CMDOP app for macOS 14 or later, Apple silicon and Intel. Open it and sign in with your email: it sets up this Mac.

curl -fsSL https://install.cmdop.ai | sh

Connect 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

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

  • 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.