0n3
MCP servers · AI/ML API · MCP server

Connect Codex CLI to AI/ML API

One line gives Codex CLI your AI/ML API account as tools: 2 endpoints, chat, models, 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 AI/ML API first

Three steps

  1. Create a free 0n3 account and connect AI/ML API. 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 AI/ML API".
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 AI/ML API

Chat · Chat completions1
Chat completionPOST /chat/completions
Models · List available models1
List modelsGET /models

AI/ML API in other AI clients

Claude Code + AI/ML APIMCP server + skillClaude (desktop & claude.ai) + AI/ML APIconnectorChatGPT + AI/ML APIconnector · GPT actionGrok Bot (xAI) + AI/ML APIcustom connectorGemini CLI + AI/ML APIMCP serverCursor + AI/ML APIMCP serverVS Code (Copilot) + AI/ML APIMCP serverWindsurf + AI/ML APIMCP server

Codex CLI with other apps

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