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

  1. 01Run riftsh remote --server https://riftsh.com on your target host and approve pairing.
  2. 02Mint an rft_live_... API key in the Riftsh Console.
  3. 03Append the [mcp_servers.riftsh] TOML block above to ~/.codex/config.toml.
  4. 04Start codex and verify remote tools with list_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.

Ready to connect your first machine?