0n3
MCP servers · OpenAI · MCP server

Connect Codex CLI to OpenAI

One line gives Codex CLI your OpenAI account as tools: 4 endpoints, generate image, create embedding, text to speech, 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 OpenAI first

Three steps

  1. Create a free 0n3 account and connect OpenAI. Paste a key or sign in; it lands in your vault, encrypted.
  2. Install 0n3 into Codex CLI. OpenAI's terminal agent reads 0n3 over Streamable HTTP with a token from your environment.
  3. Ask Codex CLI: whoami. Then: "Create an image in OpenAI".
Put the token in your environment
export ON3_TOKEN="<your 0n token>"

Add it to your shell profile so Codex finds it next time.

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 OpenAI

Generate image · Generate images with DALL-E1
Create an imagePOST /images/generations
Create embedding · Create text embeddings1
Create an embeddingPOST /embeddings
Text to speech · Convert text to speech1
Text to speechPOST /audio/speech
Generate text · Generate text completions0
Generate text completions
More · Everything else this app exposes.1
Chat completionPOST /chat/completions

OpenAI in other AI clients

Claude Code + OpenAIMCP server + skillClaude (desktop & claude.ai) + OpenAIconnectorChatGPT + OpenAIconnector · GPT actionGemini CLI + OpenAIMCP serverCursor + OpenAIMCP serverVS Code (Copilot) + OpenAIMCP serverWindsurf + OpenAIMCP server

Codex CLI with other apps

Hostinger363 endpointsTelegram132 endpointsPipedrive95 endpointsResend67 endpointsSquare57 endpointsLinkedIn50 endpointsSlack45 endpointsFigma32 endpointsCloudConvert32 endpointseBay25 endpointsQuickBooks21 endpointsCloudflare21 endpoints