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
This is a duplicate of #32446. The Codex agent fails because gh-aw's lock compiler uses --exclude-env OPENAI_API_KEY without enabling the api-proxy sidecar that provides placeholder injection.
AWF already handles this when apiProxy.enabled: true is set. The fix is in the gh-aw lock compiler — it should generate a config like:
When apiProxy.enabled is true and OPENAI_API_KEY is in the host environment, AWF will:
Strip the real key from the agent container
Inject OPENAI_API_KEY=sk-placeholder-for-api-proxy so Codex's auth check passes
Set OPENAI_BASE_URL=http://172.30.0.30:10000 (the sidecar)
The sidecar injects the real key before forwarding upstream
No manual --exclude-env needed — credential isolation is automatic.
Activity
lpcox commentedon May 21, 2026
Root Cause & Fix
This is a duplicate of #32446. The Codex agent fails because gh-aw's lock compiler uses
--exclude-env OPENAI_API_KEYwithout enabling the api-proxy sidecar that provides placeholder injection.AWF already handles this when
apiProxy.enabled: trueis set. The fix is in the gh-aw lock compiler — it should generate a config like:{ "apiProxy": { "enabled": true }, "network": { "allowDomains": ["api.openai.com"] } }Piped to AWF:
When
apiProxy.enabledis true andOPENAI_API_KEYis in the host environment, AWF will:OPENAI_API_KEY=sk-placeholder-for-api-proxyso Codex's auth check passesOPENAI_BASE_URL=http://172.30.0.30:10000(the sidecar)No manual
--exclude-envneeded — credential isolation is automatic.See:
docs/awf-config-spec.md§5 CLI Mapping andsrc/services/api-proxy-service.tslines 250-261