You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
codex-responses-api-proxy validates the API key against [A-Za-z0-9_-] and refuses anything else. That makes the responses-api-endpoint (bring-your-own-endpoint) path unusable with any provider whose credential is base64, because the key is the only way to get an Authorization: Bearer value to that endpoint.
Concrete case: AWS Bedrock's OpenAI-compatible /openai/v1/responses endpoint takes a bearer token that is base64 (~460 chars, = padding). The action never reaches the model:
Error: API key may only contain ASCII letters, numbers, '-' or '_'
responses-api-proxy did not write server info -> exit 1
Why it can't be worked around
The action has exactly one credential input, and it goes straight into the proxy (action.yml, "Start Responses API proxy"):
responses-api-endpoint only swaps the upstream URL, so there is no separate place to put the upstream Authorization value. Transforming the key to satisfy the charset is not an option either: the proxy forwards it verbatim, so stripping or re-encoding it just fails auth at the provider.
Worth noting the failure is also misreported. The proxy prints the real error, but the step is backgrounded and reports outcome=success; the job fails ~10s later on the generic responses-api-proxy did not write server info, and run_codex is skipped. Anyone hitting this sees a message about a missing file rather than a rejected key.
Possible fixes, in order of how little they'd change
Relax the proxy's key validation (or gate it on the default endpoint). The restriction looks aimed at OpenAI-issued keys; when the caller supplies their own upstream, the key format is the provider's business.
Let the upstream credential be passed separately, e.g. upstream-authorization / --upstream-header, so openai-api-key stays an OpenAI concern.
Failing either, surface the proxy's stderr on the failing step so the cause is visible.
Related: #107 asks for first-class Bedrock support. This is narrower — the transport already works, one validation blocks it — so fixing it would unblock Bedrock (and Azure/any gateway with a non-alphanumeric key) without a new provider abstraction.
Hit the same thing on openai/codex-action@v1 against Bedrock's OpenAI-compatible endpoint. Same symptom, same dead end.
Worth emphasising the third suggestion above — the misreported failure cost us far more time than the validation itself. All we saw was:
responses-api-proxy did not write server info
Error: Process completed with exit code 1
The proxy step reports outcome=success and its stderr is gone with the backgrounded shell, so the real message ("API key may only contain ASCII letters, numbers, '-' or '_'") never surfaces. We went looking at IAM policies and endpoint URLs before finding this issue.
One extra data point for prioritisation: the Codex CLI itself already has first-class Bedrock support — model_providers.amazon-bedrock with native SigV4 auth, no bearer token involved at all. So we dropped the action and
call codex exec directly:
model = "openai.gpt-5.6-terra"model_provider = "amazon-bedrock"
[model_providers.amazon-bedrock.aws]
region = "us-east-1"
That works today and is arguably better than the bearer-token path (short-lived OIDC credentials, no static key in repo secrets). But it means giving up the action's proxy isolation, which is the whole reason the proxy exists. Relaxing the validation (option 1) would let people keep both.
Activity
ruby077113 commentedon Aug 21, 2026
Hit the same thing on
openai/codex-action@v1against Bedrock's OpenAI-compatible endpoint. Same symptom, same dead end.Worth emphasising the third suggestion above — the misreported failure cost us far more time than the validation itself. All we saw was:
responses-api-proxy did not write server info
Error: Process completed with exit code 1
The proxy step reports
outcome=successand its stderr is gone with the backgrounded shell, so the real message ("API key may only contain ASCII letters, numbers, '-' or '_'") never surfaces. We went looking at IAM policies and endpoint URLs before finding this issue.One extra data point for prioritisation: the Codex CLI itself already has first-class Bedrock support —
model_providers.amazon-bedrockwith native SigV4 auth, no bearer token involved at all. So we dropped the action andcall
codex execdirectly:That works today and is arguably better than the bearer-token path (short-lived OIDC credentials, no static key in repo secrets). But it means giving up the action's proxy isolation, which is the whole reason the proxy exists. Relaxing the validation (option 1) would let people keep both.