MCP servers · Cloudflare AI Gateway · MCP server
Connect Codex CLI to Cloudflare AI Gateway
One line gives Codex CLI your Cloudflare AI Gateway account as tools: 1 endpoint, chat, called with your own connection. No key in the prompt, a receipt for every call, revoke Codex CLI's access alone any time.
Three steps
- Create a free 0n3 account and connect Cloudflare AI Gateway. Paste a key or sign in; it lands in your vault, encrypted.
- Install 0n3 into Codex CLI. OpenAI's helper in your Terminal. Paste two lines.
- Ask Codex CLI: whoami. Then: "Chat completion in Cloudflare AI Gateway".
First, paste this in Terminal and press Enter
export ON3_TOKEN="<your 0n token>"
This tells your computer your 0n3 key.
The line above carries a placeholder; 0n3.app/install mints a real key named for Codex CLI and fills it in.
What Codex CLI can then do in Cloudflare AI Gateway
Chat · Chat completions through the gateway (provider/model ids)1
Chat completion
POST /chat/completionsCloudflare AI Gateway in other AI clients
Claude Code + Cloudflare AI GatewayMCP server + skillClaude (desktop & claude.ai) + Cloudflare AI GatewayconnectorChatGPT + Cloudflare AI Gatewayconnector · GPT actionGrok Bot (xAI) + Cloudflare AI Gatewaycustom connectorGemini CLI + Cloudflare AI GatewayMCP serverCursor + Cloudflare AI GatewayMCP serverVS Code (Copilot) + Cloudflare AI GatewayMCP serverWindsurf + Cloudflare AI GatewayMCP server
