LoopForge icon indicating copy to clipboard operation
LoopForge copied to clipboard

[Feature]: 支持为 Codex 执行器配置多个上游网关,并明确 CLI 与 provider 的关系

Open xenstar opened this issue 1 week ago • 0 comments

Problem

我们在自建的 LoopForge v0.4.0 中,通过 Codex CLI 连接一个 OpenAI 兼容网关(Codex++)。目前个人设置里只有一条 Codex 执行器配置,Base URL、密钥和模型目录都放在这条配置下。功能可以工作,但界面上看不到上游网关名称,也无法同时保留多个 Codex 兼容网关,例如个人订阅、团队网关和本地代理之间的切换。

想请教一下,当前这样设计主要是出于哪些考虑?比如是为了简化配置和 UI,还是因为 Codex CLI 的 provider/profile 生命周期、凭据注入或执行器抽象有技术限制?

Proposed behavior

  • 保留一个 Codex 执行器,但允许配置多个命名清晰的上游 provider/profile。
  • 每个 profile 可以有自己的 Base URL、密钥和模型目录。
  • 在聊天、角色和 SOP 节点选择模型时,可以同时看出模型以及实际使用的 profile,避免切换时误用凭据。
  • 如果目前不打算支持多个 profile,也请说明推荐的配置方式,以及覆盖同一个 Codex Base URL 时有哪些限制。

Scope

Platform — UI / integrations

Alternatives considered

  • 继续覆盖同一条 Codex 凭据的 Base URL 和模型目录。这样可以运行,但缺少切换能力和可见性。
  • 单独增加一个“Codex++”执行器类型。我们理解 Codex++ 本质上仍是 Codex 兼容的上游,因此更希望保留“执行器”和“网关/provider”之间的语义区分。

Checks

  • [x] This proposal does not require organization-specific infrastructure or credentials.
  • [x] I searched existing issues and discussions for similar proposals.

xenstar avatar Nov 21 '26 17:11 xenstar