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?
| Feature | Claude Code | Codex CLI |
|---|---|---|
| API Format | Anthropic | OpenAI |
| ENV Variables | ANTHROPIC_* | OPENAI_* |
| Base URL | https://api.fizzlyapi.com | https://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
- Verify variables are set:
echo $OPENAI_API_KEY - Check shell config file
- Re-source the config:
source ~/.bashrc
Connection timeout
- Check your internet connection
- Verify the API URL:
https://api.fizzlyapi.com/v1 - Check if firewall is blocking the connection
Authentication failed (401)
- Verify your API key in the Fizzly Console
- Ensure the key has not been deleted or disabled
- Copy and paste the key again (watch for extra spaces)
For more detailed troubleshooting, see Troubleshooting