Run the EveryAPI gateway inside Codex CLI
Codex is OpenAI's open-source Rust coding agent. `everyapi use codex` starts it in an isolated EveryAPI-owned CODEX_HOME and routes its native Responses API traffic through the gateway without overwriting your regular Codex configuration.
One base URL line points Codex CLI at EveryAPI
Base URL: https://api.everyapi.ai/v1
everyapi auth logineveryapi use codex # Creates an isolated ~/.config/everyapi/codex-home and sets CODEX_HOME for this launch# Uses Codex's native Responses API; your normal ~/.codex configuration is unchangedFrom zero to your first call
- Install codex
npm i -g @openai/codex or install per the official GitHub repo README. EveryAPI doesn't take over codex's own installation.
github.com/openai/codex
- Launch with everyapi use codex
The EveryAPI CLI creates ~/.config/everyapi/codex-home, writes the provider configuration and API-key auth there, sets CODEX_HOME for the child process, and then launches Codex. Your normal ~/.codex directory is left unchanged.
- Want to run another vendor's model?
Pass Codex's own --model flag after `--` when you want to select a model. The generated provider uses EveryAPI's native /v1/responses endpoint; available models depend on your account catalog.
Everyday slash commands in Codex CLI
These are built into Codex CLI itself and work unchanged through EveryAPI. Type / in the input box to see the full list — these are the ones you will actually reach for.
/resumeResume a saved chat and continue where you left off./newStart a new chat without leaving the session./compactSummarize the conversation to avoid hitting the context limit./exportExport the conversation as Markdown./modelChoose the model and reasoning effort; launched via everyapi use codex, the picker shows your key's catalog./statusShow the current session configuration and token usage./initCreate an AGENTS.md with project instructions for Codex./configConfigure Codex preferences./permissionsChoose what Codex is allowed to do./mcpList MCP tools and manage server connections./reviewReview your current changes and find issues.resumeLaunch subcommand, not a slash command: everyapi use codex -- resume reopens the most recent or a chosen session.Codex CLI × EveryAPI
Do codex's sandbox / approval modes still work?
Not affected. codex's local agent behaviors like --approval-policy / --sandbox are independent of the EveryAPI gateway and work as usual.
Should I pick the codex CLI or Claude Code?
Both work under the same EveryAPI account without conflict. The codex CLI is more OpenAI-flavored, while Claude Code is closer to the Anthropic agent style. EveryAPI isn't tied to either.