OpenAI Codex CLI Remote MCP Setup (~/.codex/config.toml)
Configure [mcp_servers.riftsh] in ~/.codex/config.toml to route Codex CLI tool calls across any online workstation in your Riftsh fleet.
~/.codex/config.toml
[mcp_servers.riftsh]
url = "https://riftsh.com/mcp"
http_headers = { "Authorization" = "Bearer rft_live_YOUR_SECRET_KEY" }Need custom _device host routing or directory guardrails?Open Interactive MCP Config Generator
1. Install & pair host
$ curl -fsSL https://riftsh.com/install.sh | sh
$ riftsh remote
2. Configure OpenAI Codex CLI
- 01Run
riftsh remote --server https://riftsh.comon your target host and approve pairing. - 02Mint an
rft_live_...API key in the Riftsh Console. - 03Append the
[mcp_servers.riftsh]TOML block above to~/.codex/config.toml. - 04Start
codexand verify remote tools withlist_devices.
FAQ
Can I revoke Codex CLI's access without disconnecting my workstation?
Yes. Deleting the rft_live_... key in /dashboard/keys immediately returns HTTP 401 to that CLI client while keeping your workstation online for other connectors.
Other clients
Ready to connect your first machine?