Skip to content

Fix Codex CLI key config generation#2882

Open
LiuZhouZhouJieLun wants to merge 1 commit into
Wei-Shaw:mainfrom
LiuZhouZhouJieLun:fix/codex-cli-key-config
Open

Fix Codex CLI key config generation#2882
LiuZhouZhouJieLun wants to merge 1 commit into
Wei-Shaw:mainfrom
LiuZhouZhouJieLun:fix/codex-cli-key-config

Conversation

@LiuZhouZhouJieLun
Copy link
Copy Markdown
Contributor

Summary

  • Fix Codex CLI and Codex CLI WebSocket config generation for OpenAI-compatible API keys.
  • Generate a custom proxy provider with /v1 base URL and env_key = "OPENAI_API_KEY" instead of the built-in OpenAI provider + auth.json mode.
  • Update macOS/Linux and Windows instructions to show environment variable setup, and keep OpenCode using /v1 covered by tests.

Closes #2879

Validation

  • corepack pnpm@10.18.3 --dir frontend test:run src/components/keys/__tests__/UseKeyModal.spec.ts
  • corepack pnpm@10.18.3 --dir frontend typecheck
  • corepack pnpm@10.18.3 --dir frontend lint:check
  • corepack pnpm@10.18.3 --dir frontend build
  • codex --strict-config doctor --summary with generated HTTP config: config loaded, provider auth detected
  • codex --strict-config doctor --summary with generated WebSocket config: config loaded, provider auth detected; WebSocket probe warns in my current environment but the config/auth path is correct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Web 页面生成的 Codex CLI config.toml 直接复制后不可用

1 participant