Looking for Codex CLI docs?
Quick-jump to the official docs. Also wondering how to connect Codex CLI through a cheaper, more reliable API? Keep scrolling.
Quick Navigation
Jump straight to the most-searched Codex CLI docs
Install & Setup
Get Codex CLI running in 90 seconds on macOS, Linux, or Windows
AGENTS.md Guide
Customise your AI coding agent with rules and workflows
MCP Integration
Connect your tools and data sources via Model Context Protocol
Cloud Tasks
Offload async work — code review, refactors, batch fixes — to the cloud
Why connect Codex CLI through CodeGateway?
Codex CLI connects to OpenAI by default. But if you want to save money, avoid geo-restrictions, and use one key for everything — CodeGateway is the better backend.
Set a custom API endpoint in your Codex CLI config (takes 60 seconds):
export CODEX_API_BASE_URL="https://api.codegateway.dev/v1"
export CODEX_API_KEY="sk-cg-*********here"Codex CLI Articles
Our blog covers Codex CLI setup, configuration, MCP integration, and advanced tips
Ready to connect Codex CLI through CodeGateway?
Sign up free, top up from $5, one key unlocks all models.
Trusted by thousands of developers using Claude Code, Cursor, and Codex CLI



