docsFAQCodex CLI

Codex CLI FAQ

Common questions about using Codex CLI with Fizzly API.

Setup

How do I configure Codex CLI with Fizzly API?

Set two environment variables:

$env:OPENAI_API_KEY = "your-fizzly-api-key"
$env:OPENAI_BASE_URL = "https://api.fizzlyapi.com/v1"

See detailed guides: Windows | macOS | Linux

Which models can I use?

Supports 200+ AI models. See Codex CLI Models.

What’s the difference from Claude Code?

FeatureClaude CodeCodex CLI
API FormatAnthropicOpenAI
ENV VariablesANTHROPIC_*OPENAI_*
Base URLhttps://api.fizzlyapi.comhttps://api.fizzlyapi.com/v1

Troubleshooting

”codex” command not found

Cause: Codex CLI is not installed or not in PATH.

Solution:

# Reinstall Codex
npm install -g @openai/codex
 
# Check npm global bin path
npm config get prefix
 
# Add to PATH if needed
export PATH="$(npm config get prefix)/bin:$PATH"

“OPENAI_API_KEY not set” error

  1. Verify variables are set: echo $OPENAI_API_KEY
  2. Check shell config file
  3. Re-source the config: source ~/.bashrc

Connection timeout

  1. Check your internet connection
  2. Verify the API URL: https://api.fizzlyapi.com/v1
  3. Check if firewall is blocking the connection

Authentication failed (401)

  1. Verify your API key in the Fizzly Console
  2. Ensure the key has not been deleted or disabled
  3. Copy and paste the key again (watch for extra spaces)

For more detailed troubleshooting, see Troubleshooting