GitHub - advcharles/coder-check

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-codex for Codex, claude-sonnet-4.6 for Claude)

Note for Azure OpenAI:

  • Use BASE_URL=https://<resource>.openai.azure.com/openai
  • Do not append /v1 manually, because the script already calls /v1/models and /v1/responses

Note for Claude-compatible routers:

  • Some routers do not implement GET /v1/models; smoke_claude.sh treats HTTP 404 as INFO instead of FAIL.
  • smoke_claude.sh sends both x-api-key and Authorization: Bearer headers 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