MCP servers · Hugging Face Inference Providers · MCP server
Connect Codex CLI to Hugging Face Inference Providers
One line gives Codex CLI your Hugging Face Inference Providers 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.
Three steps
- Create a free 0n3 account and connect Hugging Face Inference Providers. 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 Hugging Face Inference Providers".
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 Hugging Face Inference Providers
Chat · Chat completions1
Chat completion
POST /chat/completionsModels · List available models1
List models
GET /modelsHugging Face Inference Providers in other AI clients
Claude Code + Hugging Face Inference ProvidersMCP server + skillClaude (desktop & claude.ai) + Hugging Face Inference ProvidersconnectorChatGPT + Hugging Face Inference Providersconnector · GPT actionGrok Bot (xAI) + Hugging Face Inference Providerscustom connectorGemini CLI + Hugging Face Inference ProvidersMCP serverCursor + Hugging Face Inference ProvidersMCP serverVS Code (Copilot) + Hugging Face Inference ProvidersMCP serverWindsurf + Hugging Face Inference ProvidersMCP server
