Connect Codex to another Mac or Linux computer over MCP
Install CMDOP on the other computer and run `cmdop setup`: it asks for your email and the code from the letter. Then add your own MCP address, https://<your-address>.cmdop.dev/mcp/, to Codex, signing in through the browser or with an agent token. Codex is seen working end to end this way. It starts able to read only; writing, running commands and the screen are switched on by hand.
Guides · Facts read
Two questions share this search
- How do I reach Codex itself from somewhere else? That is OpenAI's to answer, in its Codex documentation.
- How do I let Codex work on a computer it is not running on? That is what this page covers, with CMDOP as the MCP server.
Install CMDOP on the other computer
Run this on the Mac or Linux computer you want Codex to reach. Windows is not supported yet. The computer connects out, so there is no port to open on it. 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.
curl -fsSL https://install.cmdop.ai | shAdd it to Codex
On the computer where Codex runs, paste this in a terminal with your address in place of the placeholder. Your CMDOP page opens: check the app's name, choose how long it may connect, from 5 minutes to 90 days, and approve.
codex mcp add cmdop --url https://your-address.cmdop.dev/mcp/ && codex mcp login cmdopIf the browser sign-in does not suit you, the connect page shows the agent-token setup for Codex as well.
Check it
Ask Codex: "How much memory and disk space is left on my other computer?" It calls sys_info and answers with the numbers, reading only. If it says unauthorized, the approval ran out or was revoked: connect again.
What it may do there
A new agent can only read. Writing, running commands and the screen are switched on by hand, for that agent, on your page. With running switched on, a long job runs in a real terminal, and Codex reads its output by the task's id.
Cut it off
Revoke Codex on your page and it is cut off from its next call.
The same computer for Claude Code and ChatGPT
Claude Code and ChatGPT work against the same address, with the same computers and the same permissions. They are the other two clients seen working end to end.
Limits
- macOS and Linux only. Windows is not supported yet.
- 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.