Client or integration
Codex CLI
Area
CLI
Summary
ocx doctor does not warn when a key-auth provider stores an environment-variable reference that resolves to an empty value. The first actionable signal appears only when an inference request fails. I expected ocx doctor to identify the unresolved credential reference before a routed request reaches the adapter.
Reproduction
- Configure a key-auth provider such as OpenRouter with
authMode: "key" and apiKey: "${OPENROUTER_API_KEY}".
- Start OpenCodex without
OPENROUTER_API_KEY in the proxy process environment.
- Run
ocx doctor and observe that it reports no provider credential problem.
- Send a routed request through the provider.
- Observe
openai-chat requires a non-empty credential (authMode: key).
Version
2.7.43
Operating system
macOS
Provider and model
OpenRouter; any configured routed model
Logs or error output
Provider unreachable: openai-chat requires a non-empty credential (authMode: key)
Screenshots and supporting files
None.
Redacted configuration
{
"providers": {
"openrouter": {
"adapter": "openai-chat",
"baseUrl": "https://openrouter.ai/api/v1",
"authMode": "key",
"apiKey": "${OPENROUTER_API_KEY}"
}
}
}
The diagnostic should expose only the provider name, environment-variable name, and presence/resolution state. It must never print or persist the credential value. When proxy-process environment inspection is unsupported on the platform, the result should say that runtime resolution is unverified.
Checks
Client or integration
Codex CLI
Area
CLI
Summary
ocx doctordoes not warn when a key-auth provider stores an environment-variable reference that resolves to an empty value. The first actionable signal appears only when an inference request fails. I expectedocx doctorto identify the unresolved credential reference before a routed request reaches the adapter.Reproduction
authMode: "key"andapiKey: "${OPENROUTER_API_KEY}".OPENROUTER_API_KEYin the proxy process environment.ocx doctorand observe that it reports no provider credential problem.openai-chat requires a non-empty credential (authMode: key).Version
2.7.43
Operating system
macOS
Provider and model
OpenRouter; any configured routed model
Logs or error output
Screenshots and supporting files
None.
Redacted configuration
{ "providers": { "openrouter": { "adapter": "openai-chat", "baseUrl": "https://openrouter.ai/api/v1", "authMode": "key", "apiKey": "${OPENROUTER_API_KEY}" } } }The diagnostic should expose only the provider name, environment-variable name, and presence/resolution state. It must never print or persist the credential value. When proxy-process environment inspection is unsupported on the platform, the result should say that runtime resolution is unverified.
Checks