0n3
MCP servers · Vercel AI Gateway · MCP server

Connect Codex CLI to Vercel AI Gateway

One line gives Codex CLI your Vercel AI Gateway account as tools: 5 endpoints, chat, models, embed, called with your own connection. No key in the prompt, a receipt for every call, revoke Codex CLI's access alone any time.

Get the line for Codex CLIConnect Vercel AI Gateway first

Three steps

  1. Create a free 0n3 account and connect Vercel AI Gateway. Paste a key or sign in; it lands in your vault, encrypted.
  2. Install 0n3 into Codex CLI. OpenAI's helper in your Terminal. Paste two lines.
  3. Ask Codex CLI: whoami. Then: "Chat completion in Vercel 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 Vercel AI Gateway

Chat · Chat completions1
Chat completionPOST /chat/completions
Models · List available models2
List modelsGET /models
Get a modelGET /models/{model}
Embed · Text embeddings0
Text embeddings
More · Everything else this app exposes.2
Create an embeddingPOST /embeddings
Create a responsePOST /responses

Vercel AI Gateway in other AI clients

Claude Code + Vercel AI GatewayMCP server + skillClaude (desktop & claude.ai) + Vercel AI GatewayconnectorChatGPT + Vercel AI Gatewayconnector · GPT actionGrok Bot (xAI) + Vercel AI Gatewaycustom connectorGemini CLI + Vercel AI GatewayMCP serverCursor + Vercel AI GatewayMCP serverVS Code (Copilot) + Vercel AI GatewayMCP serverWindsurf + Vercel AI GatewayMCP server

Codex CLI with other apps

Hostinger363 endpointsPipedrive310 endpointsTelegram132 endpointsResend67 endpointsSquare57 endpointsLinkedIn50 endpointsSlack45 endpointseBay42 endpointsCRM35 endpointsFigma32 endpointsCloudConvert32 endpointsMicrosoft 36526 endpoints