API Compatibility Smoke Tests
Use these scripts to quickly verify whether your local gateway is compatible with Codex CLI and Claude Code.
Run Codex smoke test
Show usage:
Run Claude smoke test
Show usage:
Override defaults
Both scripts support:
BASE_URL(default:http://127.0.0.1:8080)API_KEY(default:sk-123456)MODEL(default:gpt-5.2-codexfor Codex,claude-sonnet-4.6for Claude)
Note for Azure OpenAI:
- Use
BASE_URL=https://<resource>.openai.azure.com/openai - Do not append
/v1manually, because the script already calls/v1/modelsand/v1/responses
Note for Claude-compatible routers:
- Some routers do not implement
GET /v1/models;smoke_claude.shtreats HTTP 404 asINFOinstead ofFAIL. smoke_claude.shsends bothx-api-keyandAuthorization: Bearerheaders for better compatibility.
Examples:
BASE_URL=http://127.0.0.1:11434 API_KEY=ollama MODEL=qwen2.5-coder:14b ./smoke_codex.sh BASE_URL=https://<resource>.openai.azure.com/openai API_KEY=<azure-key> MODEL=gpt-5.3-codex ./smoke_codex.sh BASE_URL=http://127.0.0.1:11434 API_KEY=ollama MODEL=qwen2.5-coder:14b ./smoke_claude.sh BASE_URL=http://127.0.0.1:3456 API_KEY=sk-123456 MODEL=claude-sonnet-4.6 ./smoke_claude.sh