Prerequisites
- A ByteSpike account + a key. For GPT-5 / o-series, a key in any
group that serves them (typically the OpenAI /
defaultgroup). For reaching Claude or Gemini via Responses translation, the key’s group must include those models. - Codex CLI installed:
Configure
Codex CLI readsOPENAI_API_KEY + OPENAI_BASE_URL. Set both:
Verify
401 = wrong key, 402 = wallet empty,
400 model_not_allowed = the default model isn’t in your key’s
group.
Switching models
Most Codex versions accept--model:
gpt-5-* is the OpenAI-native path; the
Claude id triggers ByteSpike’s Responses→Messages translation
under the hood. The CLI never knows the difference.
Common configs
One key, multi-model session
One key, multi-model session
Pick a key whose group includes the models you want to bounce
between (typically the all-protocols group if your account
has one). The CLI can then
--model between OpenAI native and
Claude/Gemini translated within a single session.Reasoning mode (o-series + GPT-5)
Reasoning mode (o-series + GPT-5)
Pass through Codex’s reasoning controls:The gateway forwards the
reasoning.effort field verbatim. Pricing reflects the higher reasoning-token output — see pricing.Structured output (JSON Schema)
Structured output (JSON Schema)
Codex’s
--response-format json_schema=... flag is forwarded as
response_format to the gateway, which handles it correctly per
model (GPT supports the JSON Schema mode directly;
the Claude path falls back to text + parse).Tool definitions
Tool definitions
Codex’s tool definitions (
--tools=...) are forwarded as the
Responses-API tools array. On the GPT path they’re native;
on the Claude/Gemini path the gateway translates to the
target model’s tool format (input_schema for Claude,
functionDeclarations for Gemini).Codex vs Claude Code — when to use which
Many teams keep both installed and pick per task. Use one ByteSpike
account, generate one key per CLI bound to its preferred group.
Troubleshooting
Next
Claude Code CLI
Anthropic’s coding CLI, same kind of setup.
/responses reference
The protocol Codex speaks.
Models
GPT-5 / o-series catalog.
Cursor IDE
Editor-level integration.