[Feature]: 执行器凭据支持订阅 OAuth 登录,并可读套餐用量
需求
Claude、Gemini、Codex 都支持订阅账号登录(OAuth / 设备码)或 API Key。希望 LoopForge 在个人设置里同样支持订阅登录,并能读取对应套餐用量,而不是只填 API Key。
现状(据官方 README)
个人设置里模型凭据主要是填 API Key。Codex、Claude Code,以及跑 Gemini 的 Antigravity,在已连接的执行机器上可以复用本机登录;这是本机 CLI 登录的复用,不是平台内的订阅 OAuth 流程。GitHub 连接已经支持设备码 OAuth,模型凭据还没有对等入口。通过 Antigravity 使用「Gemini 官方 API」时仍需填写 API Key,且文档写明这笔是单独计费。
用量
订阅登录后,套餐限额(例如 Codex 的 5 小时窗和周限额、重置时间、积分)是跟登录态走的,跟 API Key 不是同一套账。像 Sheprd 这类工具能读到用量,是因为复用了机器上已有的 CLI 登录态去查套餐接口;只填 OpenAI / Gemini API Key 拿不到这套订阅限额。
期望
- 在个人设置中为 Claude、Gemini、Codex(及同样提供订阅登录的执行器)增加「用订阅账号登录」,登录后使用该订阅额度,不必先准备 API Key。保留现有 API Key 作为备选。
- 已连接执行机器上的本机登录复用可以保留,但不应是唯一不靠 API Key 的路径。
- 平台能展示(或提供接口查询)对应套餐用量:已用比例、重置时间、积分/余额等服务本身提供的窗口信息。
版本
LoopForge v0.4.0。已查过现有 issue,没有同类功能建议(#1040 只涉及 Gemini API 的 Base URL,不是订阅登录或用量)。
感谢反馈。
我理解你希望个人设置里的执行器凭据,除了现有 API Key,也能用订阅账号(OAuth / 设备码)登录 Claude、Gemini、Codex 等,并在登录后查看对应套餐用量(已用比例、重置时间、积分等)。本机 CLI 登录复用可以保留,但不该是唯一不靠 API Key 的路径。
已经看到这条需求,会按现有 Issue 排期查看。
需求+1 ,请注意Gemini和Antigravity是俩个CLI工具
Closed: execution machines now support reusing the machine's own subscription login. In personal settings, Claude Code / Codex / Antigravity can use an existing subscription through the selected execution machine instead of requiring an API Key; SOP native and Docker sandboxes also stage the corresponding CLI login.
Covered by merged PRs:
- #972 — feat(runner): add CLI authentication and maintenance controls: Claude Code / Codex reuse the Runner account login, and SOP sandboxes use the same login state
- #1016 — feat(runner): support Antigravity login and harden credential refresh: Antigravity reuses the execution machine subscription via agy, and unifies Codex/Claude Code token refresh inside the Runner
- #1021 — Coordinate Runner OAuth refresh and reject sandbox credential replacement: centralized OAuth refresh coordination and protection against sandboxes replacing host credentials (merged into the #1016 feature branch)