
DaydreamCodingandClaude Opus 4.7
56908d3c4c
feat(openai): codex_cli_only 新增放行 Claude Code Codex 插件的机制
适用场景:在 Claude Code 中使用 https://github.com/openai/codex-plugin-cc
插件时,插件经官方 codex app-server 以 clientInfo.name="Claude Code" 完成
initialize 握手,请求头被设为 originator=Claude Code、User-Agent 含
"Claude Code/",不在官方客户端白名单内,原本会被 codex_cli_only 拦截 403。
在官方客户端白名单未命中时评估两层独立放行(OR 语义):
- 按账号:account.Extra.codex_cli_only_allowed_clients 引用命名预设
(目前仅 claude_code),detector reason=allowed_client_matched
- 全局开关:/admin/settings 网关服务 OpenAI 区块新增
openai_allow_claude_code_codex_plugin(默认 false),开启后对所有
codex_cli_only 账号统一放行,detector reason=global_allowed_client_matched
签名仍要求 originator=Claude Code 精确等值 + UA 含 "Claude Code/"。
上游转发保持透传不变。
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-27 23:55:34 +08:00
..
2026-05-26 19:46:08 +08:00
2026-05-03 22:12:57 +08:00
2026-04-09 18:14:28 +08:00
2026-02-11 01:23:21 +08:00
2026-02-28 20:18:14 +08:00
2026-03-16 20:22:10 +08:00
2026-05-19 22:05:43 +08:00
2026-05-19 22:05:43 +08:00
2026-05-19 20:32:32 +08:00
2026-05-19 15:25:34 +08:00
2026-02-28 15:01:20 +08:00
2026-02-10 11:42:39 +08:00
2026-01-04 15:36:00 +08:00
2026-05-27 18:00:45 +08:00
2026-05-07 09:14:47 +08:00
2026-05-19 19:37:54 +08:00
2026-04-15 01:27:24 +08:00
2026-04-09 18:14:28 +08:00
2026-04-09 18:14:28 +08:00
2026-05-20 16:08:41 +08:00
2026-05-26 13:58:02 +08:00
2026-03-05 16:47:01 +08:00
2026-05-27 23:55:34 +08:00
2026-03-18 09:23:19 +08:00
2025-12-26 00:10:44 -08:00
2026-03-27 14:33:05 +08:00
2026-04-15 15:02:21 +08:00
2026-01-01 18:59:06 +08:00
2026-05-26 10:49:20 +08:00