Skip to content

[codex] 支持自定义平台 API Key#215

Merged
qxcnm merged 1 commit into
qxcnm:mainfrom
KilimiaoSix:codex/custom-api-key
May 12, 2026
Merged

[codex] 支持自定义平台 API Key#215
qxcnm merged 1 commit into
qxcnm:mainfrom
KilimiaoSix:codex/custom-api-key

Conversation

@KilimiaoSix
Copy link
Copy Markdown
Contributor

Summary

  • Add optional custom platform API key support when creating platform keys.
  • Validate custom keys for empty input, whitespace/control characters, length, and duplicates.
  • Wire the new customKey parameter through the frontend client, Tauri command, RPC dispatch, and service layer.
  • Update ccswitch/Codex CLI docs and cover the behavior with RPC and Playwright tests.

Closes #190

Validation

  • cargo test -p codexmanager-service --test rpc rpc_apikey_create_accepts_custom_key_and_rejects_duplicate
  • pnpm exec playwright test tests/api-keys-model-prefix.spec.ts
  • cargo check --manifest-path apps/src-tauri/Cargo.toml
  • pnpm run build:desktop
  • git diff --check

@KilimiaoSix KilimiaoSix mentioned this pull request May 12, 2026
1 task
@KilimiaoSix KilimiaoSix marked this pull request as ready for review May 12, 2026 03:16
@qxcnm qxcnm merged commit 1a1edb2 into qxcnm:main May 12, 2026
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.

[Feature] 支持APIKey自定义

2 participants