Releases: mibgb65-cloud/OmniProxy
OmniProxy v1.2.1
v1.2.1 - Prem gateway, AnyRouter, and Codex quota refinements / Prem 网关、AnyRouter 与 Codex 额度优化
This stable release consolidates the validated v1.2.1 beta line. It adds AnyRouter and Prem gateway support, improves Codex quota display and cost estimates, and fixes Prem's OpenAI plus Anthropic dual-protocol routing through the official local confidential-proxy.
本正式版汇总已验证的 v1.2.1 beta 版本线,新增 AnyRouter 与 Prem 网关支持,优化 Codex 额度展示和美元预估,并修复 Prem 通过官方本机 confidential-proxy 使用 OpenAI 与 Anthropic 双协议时的路由兼容性。
Features / 新特性
- AnyRouter gateway: Added AnyRouter as a local gateway target with OpenAI/Codex and Anthropic-compatible entrypoints.
- AnyRouter 网关:新增 AnyRouter 本地网关目标,支持 OpenAI/Codex 与 Anthropic 兼容入口。
- Prem gateway: Added Prem account management, local forwarding, validation, and Codex one-click setup through OmniProxy.
- Prem 网关:新增 Prem 账号管理、本地转发、账号校验,以及通过 OmniProxy 配置 Codex 的一键接入。
- Prem Claude Code setup: Added a dedicated Claude Code Prem quick action using
http://127.0.0.1:<port>/prem/anthropicand the Prem modeldeepseek-v4-pro.- Prem Claude Code 一键配置:新增 Claude Code 的 Prem 快捷配置,使用
http://127.0.0.1:<端口>/prem/anthropic和 Prem 模型deepseek-v4-pro。
- Prem Claude Code 一键配置:新增 Claude Code 的 Prem 快捷配置,使用
- Codex quota estimates: Added cache-aware weekly Codex quota cost estimates and clearer quota labels for Codex Team accounts.
- Codex 额度预估:新增缓存感知的 Codex 周额度美元预估,并为 Codex Team 账号显示更准确的额度标签。
Bug Fixes / 问题修复
- Prem dual-protocol routing: Fixed Prem forwarding so OpenAI-compatible requests route to
/openai/v1/...and Anthropic-compatible requests route to/anthropic/v1/...on the local confidential proxy.- Prem 双协议路由:修复 Prem 转发路径,OpenAI 兼容请求会转到本机 confidential proxy 的
/openai/v1/...,Anthropic 兼容请求会转到/anthropic/v1/...。
- Prem 双协议路由:修复 Prem 转发路径,OpenAI 兼容请求会转到本机 confidential proxy 的
- Prem proxy startup: Updated automatic Prem startup to run official
@premai/api-sdk confidential-proxy --no-attest --compat bothand pass enabled Prem API keys throughPREM_API_KEY.- Prem 代理启动:自动启动 Prem 代理时改为运行官方
@premai/api-sdk confidential-proxy --no-attest --compat both,并通过PREM_API_KEY传入启用的 Prem API Key。
- Prem 代理启动:自动启动 Prem 代理时改为运行官方
- Codex usage stability: Fixed Codex quota estimate edge cases, history storage behavior, and scheduler stability issues found during the beta line.
- Codex 使用稳定性:修复 beta 验证过程中发现的 Codex 额度预估边界、历史记录存储行为和调度稳定性问题。
Breaking Changes / 不兼容更新
- None / 无
Refactor & Performance / 重构与优化
- Gateway compatibility: Existing saved Prem Base URLs ending in
/v1,/openai/v1, or/anthropic/v1are normalized before forwarding.- 网关兼容性:已保存的 Prem Base URL 如果以
/v1、/openai/v1或/anthropic/v1结尾,转发前会自动归一到本机代理根地址。
- 网关兼容性:已保存的 Prem Base URL 如果以
- Tests and docs: Added focused coverage and help content for AnyRouter, Prem OpenAI/Codex, Prem Anthropic, Prem validation, and one-click client configuration.
- 测试与文档:补充 AnyRouter、Prem OpenAI/Codex、Prem Anthropic、Prem 校验和一键客户端配置的测试与帮助说明。
Validation / 验证
git diff --checkgo test ./...cmd /c npm testcmd /c npm run buildC:\Users\mimanchi\go\bin\wails.exe build- GitHub Actions release builds for
v1.2.1-beta.1throughv1.2.1-beta.12
Full Changelog / 完整更新日志: v1.2.0...v1.2.1
OmniProxy v1.2.1-beta.9
v1.2.1-beta.9 - Prem Codex one-click setup / Prem Codex 一键接入
This beta follows v1.2.1-beta.8 with a focused Codex integration improvement for Prem. Codex can now be configured from OmniProxy's one-click setup page to use the local /prem/v1 OpenAI-compatible entrypoint. The Codex-side API key remains a local placeholder; OmniProxy still selects Prem accounts locally and injects the real Prem API key when forwarding to pcci-proxy.
本次 beta 延续 v1.2.1-beta.8,集中补齐 Prem 的 Codex 一键接入。现在可在 OmniProxy「一键配置」页面直接把 Codex 写入本地 /prem/v1 OpenAI 兼容入口。Codex 侧仍只保存本地占位 API Key;真实 Prem API Key 继续由 OmniProxy 在本地选择账号并注入到转发给 pcci-proxy 的请求中。
Features / 新特性
- Codex Prem setup: Added a
Configure Codex Premaction that writes%USERPROFILE%\.codex\config.tomlwith a dedicatedpremprovider pointing tohttp://127.0.0.1:<port>/prem/v1.- Codex Prem 一键配置:新增「配置 Codex Prem」操作,会把
%USERPROFILE%\.codex\config.toml写入专用premprovider,并指向http://127.0.0.1:<端口>/prem/v1。
- Codex Prem 一键配置:新增「配置 Codex Prem」操作,会把
- Local placeholder auth: The setup creates or preserves a local placeholder
OPENAI_API_KEY, while keeping real Prem API keys inside OmniProxy's account pool.- 本地占位鉴权:一键配置会创建或复用本地占位
OPENAI_API_KEY,真实 Prem API Key 仍保存在 OmniProxy 账号池中。
- 本地占位鉴权:一键配置会创建或复用本地占位
Bug Fixes / 问题修复
- None / 无
Refactor & Documentation / 重构与文档
- Wails bindings: Synced the desktop binding for
ConfigureCodexPrem.- Wails 绑定:同步桌面端
ConfigureCodexPrem调用。
- Wails 绑定:同步桌面端
- Docs and UI copy: Updated Quickstart, README, and English README to include Prem as a Codex one-click target.
- 文档和界面文案:更新一键配置页、中文 README 和英文 README,补充 Prem 的 Codex 一键接入说明。
Validation / 验证
git diff --checkgo test ./...cmd /c npm testcmd /c npm run buildC:\Users\mimanchi\go\bin\wails.exe build
Full Changelog / 完整更新日志: v1.2.1-beta.8...v1.2.1-beta.9
OmniProxy v1.2.1-beta.8
v1.2.1-beta.8 - Prem account setup simplification / Prem 账号录入简化
This beta follows v1.2.1-beta.7 with a focused correction to the Prem gateway setup. Prem accounts now only need API keys. OmniProxy uses the global Prem pcci-proxy Base URL, selects an available Prem account locally, and injects that account's API key into forwarded requests.
本次 beta 延续 v1.2.1-beta.7,集中修正 Prem 网关配置方式。Prem 账号现在只需要填写 API Key。OmniProxy 会使用全局 Prem pcci-proxy Base URL,在本地选择可用 Prem 账号,并把该账号的 API Key 注入转发请求。
Features / 新特性
- None / 无
Bug Fixes / 问题修复
- Prem account form: Removed the Base URL field from Prem account creation, editing, and batch import. Prem accounts now save only the account name and API key.
- Prem 账号表单:从 Prem 添加、编辑和批量导入中移除 Base URL 字段。Prem 账号现在只保存账号名称和 API Key。
- Prem scheduling path: Prem routing and validation now always use the global
Prem pcci-proxy Base URL, while OmniProxy rotates the selected account API key.- Prem 调度路径:Prem 转发和验证现在始终使用全局
Prem pcci-proxy Base URL,同时由 OmniProxy 轮换选中的账号 API Key。
- Prem 调度路径:Prem 转发和验证现在始终使用全局
⚠️ Breaking Changes / 不兼容更新
- Attention: Prem account-level Base URL is no longer used. Configure the local
pcci-proxyendpoint once in Global Settings, then add one or more Prem API Key accounts.- 必读:Prem 账号级 Base URL 不再生效。请在全局设置中统一配置本机
pcci-proxy入口,然后添加一个或多个 Prem API Key 账号。
- 必读:Prem 账号级 Base URL 不再生效。请在全局设置中统一配置本机
Refactor & Performance / 重构与优化
- User guidance: Updated settings, help content, README, and English README to document the cleaner
client -> OmniProxy -> pcci-proxy -> Prem gatewayflow.- 使用说明:更新全局设置、帮助内容、中文 README 和英文 README,说明更清晰的
客户端 -> OmniProxy -> pcci-proxy -> Prem gateway链路。
- 使用说明:更新全局设置、帮助内容、中文 README 和英文 README,说明更清晰的
Validation / 验证
git diff --checkgo test ./...cmd /c npm testcmd /c npm run buildC:\Users\mimanchi\go\bin\wails.exe build
Full Changelog / 完整更新日志: v1.2.1-beta.7...v1.2.1-beta.8
OmniProxy v1.2.1-beta.7
v1.2.1-beta.7 - Prem gateway beta / Prem 网关接入 beta
This beta follows v1.2.1-beta.6 with first-class Prem gateway support. OmniProxy can now manage Prem API keys, expose a local /prem/v1 OpenAI-compatible entrypoint, and forward requests through Prem's official local pcci-proxy while keeping local account scheduling, retry, and usage tracking in OmniProxy.
本次 beta 延续 v1.2.1-beta.6,加入 Prem 网关一等接入。OmniProxy 现在可以管理 Prem API Key,暴露本机 /prem/v1 OpenAI 兼容入口,并通过 Prem 官方本机 pcci-proxy 转发请求,同时继续由 OmniProxy 负责本地账号调度、失败重试和用量记录。
Features / 新特性
- Prem provider: Added Prem to the account pool with API Key credentials and per-account Base URL support.
- Prem 厂商:账号池新增 Prem,支持 API Key 凭据和账号级 Base URL。
- OpenAI-compatible Prem route: Added
/prem/v1and/premroutes for Prem model calls, including version-prefix normalization when the upstream Base URL already ends with/v1.- OpenAI 兼容 Prem 入口:新增
/prem/v1与/prem路由,支持 Prem 模型调用,并处理上游 Base URL 已包含/v1时的路径去重。
- OpenAI 兼容 Prem 入口:新增
- Multi-key scheduling: Prem accounts participate in OmniProxy's existing scheduler and retry flow. Multiple Prem keys can be mapped to different local
pcci-proxyports through account-level Base URLs.- 多 Key 调度:Prem 账号接入 OmniProxy 现有调度和重试流程。多个 Prem Key 可通过账号级 Base URL 分别映射到不同本机
pcci-proxy端口。
- 多 Key 调度:Prem 账号接入 OmniProxy 现有调度和重试流程。多个 Prem Key 可通过账号级 Base URL 分别映射到不同本机
Bug Fixes / 问题修复
- None / 无
⚠️ Breaking Changes / 不兼容更新
- None / 无
- Attention: Prem still requires the official
pcci-proxyprocess to be running locally. OmniProxy does not implement Prem's encrypted gateway protocol directly in this beta.- 必读:Prem 仍需要先在本机运行官方
pcci-proxy进程。此 beta 中 OmniProxy 不直接实现 Prem 加密网关协议。
- 必读:Prem 仍需要先在本机运行官方
Refactor & Performance / 重构与优化
- Gateway configuration cleanup: Prem follows the same gateway Base URL validation, outbound proxy normalization, and account-level routing patterns used by compatible gateway providers.
- 网关配置收敛:Prem 复用兼容网关厂商的 Base URL 校验、出站代理归一化和账号级路由模式。
- User guidance: Updated account editor hints, batch import placeholders, settings, help content, README, and English README for the new Prem route and multi-key
pcci-proxyusage.- 使用说明:更新账号编辑提示、批量导入占位、全局设置、帮助内容、中文 README 和英文 README,说明新的 Prem 路由和多 Key
pcci-proxy用法。
- 使用说明:更新账号编辑提示、批量导入占位、全局设置、帮助内容、中文 README 和英文 README,说明新的 Prem 路由和多 Key
Validation / 验证
go test ./...cmd /c npm testcmd /c npm run buildC:\Users\mimanchi\go\bin\wails.exe buildgit diff --check
Full Changelog / 完整更新日志: v1.2.1-beta.6...v1.2.1-beta.7
OmniProxy v1.2.1-beta.12
v1.2.1-beta.12 - Prem dual-protocol gateway fix / Prem 双协议网关修复
This beta follows v1.2.1-beta.11 with a focused Prem gateway compatibility fix. OmniProxy now routes Prem OpenAI and Anthropic-compatible requests to the official confidential-proxy --compat both paths, and adds a dedicated Claude Code Prem one-click setup.
本次 beta 延续 v1.2.1-beta.11,集中修复 Prem 网关兼容性。OmniProxy 现在会把 Prem 的 OpenAI 与 Anthropic 兼容请求转发到官方 confidential-proxy --compat both 路径,并新增 Claude Code 的 Prem 一键配置。
Features / 新特性
- Claude Code Prem setup: Added a
Premquick action for Claude Code that writes%USERPROFILE%\.claude\settings.jsonwithANTHROPIC_BASE_URL=http://127.0.0.1:<port>/prem/anthropicand the Prem modeldeepseek-v4-pro.- Claude Code Prem 一键配置:一键配置页新增 Claude Code 的
Prem快捷操作,会写入%USERPROFILE%\.claude\settings.json,使用ANTHROPIC_BASE_URL=http://127.0.0.1:<端口>/prem/anthropic和 Prem 模型deepseek-v4-pro。
- Claude Code Prem 一键配置:一键配置页新增 Claude Code 的
- Prem dual-protocol entrypoints: Documented and exposed both Prem OpenAI/Codex and Prem Anthropic local entrypoints in Quickstart and help content.
- Prem 双协议入口:一键配置页和帮助文档补充 Prem OpenAI/Codex 与 Prem Anthropic 两类本地入口。
Bug Fixes / 问题修复
- Prem gateway routing: Fixed Prem forwarding so
/prem/v1/chat/completionsroutes to/openai/v1/chat/completions, while/prem/anthropic/v1/messagesroutes to/anthropic/v1/messageson the local confidential proxy.- Prem 网关路由修复:修复 Prem 转发路径,
/prem/v1/chat/completions现在会转到本机 confidential proxy 的/openai/v1/chat/completions,/prem/anthropic/v1/messages会转到/anthropic/v1/messages。
- Prem 网关路由修复:修复 Prem 转发路径,
- Prem proxy startup compatibility: Updated automatic Prem proxy startup to run official
@premai/api-sdk confidential-proxy --no-attest --compat bothand pass the enabled Prem API key throughPREM_API_KEY.- Prem 代理启动兼容性:自动启动 Prem 代理时改为运行官方
@premai/api-sdk confidential-proxy --no-attest --compat both,并通过PREM_API_KEY传入启用的 Prem API Key。
- Prem 代理启动兼容性:自动启动 Prem 代理时改为运行官方
- Prem validation: Fixed Prem token validation to probe
/openai/v1/models, matching the official local proxy's OpenAI-compatible route.- Prem 校验修复:Prem 账号校验改为探测
/openai/v1/models,与官方本机代理的 OpenAI 兼容路由一致。
- Prem 校验修复:Prem 账号校验改为探测
Refactor & Documentation / 重构与文档
- Prem Base URL normalization: Existing saved Prem Base URLs ending in
/v1,/openai/v1, or/anthropic/v1are normalized back to the local proxy root before forwarding.- Prem Base URL 兼容处理:已保存的 Prem Base URL 如果以
/v1、/openai/v1或/anthropic/v1结尾,转发前会兼容归一到本机代理根地址。
- Prem Base URL 兼容处理:已保存的 Prem Base URL 如果以
- Focused tests: Added backend coverage for Prem OpenAI routing, Prem Anthropic routing, Prem validation, and Claude Code Prem settings generation.
- 聚焦测试:补充 Prem OpenAI 路由、Prem Anthropic 路由、Prem 校验和 Claude Code Prem 配置生成的后端测试。
Validation / 验证
git diff --checkgo test ./...cmd /c npm testcmd /c npm run buildC:\Users\mimanchi\go\bin\wails.exe build
Full Changelog / 完整更新日志: v1.2.1-beta.11...v1.2.1-beta.12
OmniProxy v1.2.1-beta.11
v1.2.1-beta.11 - Prem local proxy auto-start / Prem 本机代理自动启动
This beta follows v1.2.1-beta.10 and integrates Prem's local confidential proxy into OmniProxy's lifecycle. Users no longer need to start the Prem local proxy manually when using Prem API keys through OmniProxy.
本次 beta 延续 v1.2.1-beta.10,把 Prem 的本机 confidential proxy 纳入 OmniProxy 生命周期管理。使用 Prem API Key 通过 OmniProxy 转发时,不再需要用户手动启动 Prem 本机代理。
Features / 新特性
- Prem local proxy auto-start: When at least one enabled Prem account exists, OmniProxy now starts the official
@premai/api-sdkconfidential-proxyvianpxand binds it to the port fromPrem pcci-proxy Base URL, such as127.0.0.1:3100.- Prem 本机代理自动启动:存在启用的 Prem 账号时,OmniProxy 会通过
npx启动官方@premai/api-sdk的confidential-proxy,并使用Prem pcci-proxy Base URL中的端口,例如127.0.0.1:3100。
- Prem 本机代理自动启动:存在启用的 Prem 账号时,OmniProxy 会通过
- Lifecycle management: OmniProxy starts the Prem proxy on app startup, after adding or enabling a Prem account, and after relevant config changes. It stops only the process it started when OmniProxy exits or when no enabled Prem account remains.
- 生命周期管理:应用启动、添加或启用 Prem 账号、相关配置变更后都会触发检查;退出 OmniProxy 或没有启用的 Prem 账号时,只停止 OmniProxy 自己启动的进程。
- Settings toggle: Added a settings switch to disable automatic Prem local proxy startup while keeping manual forwarding behavior available.
- 设置开关:设置页新增自动启动开关;关闭后仍可手动维护 Prem 本机代理并继续转发。
Bug Fixes / 问题修复
- Prem Codex usability: Fixed the practical
no active token availablefailure path caused by OmniProxy forwarding to127.0.0.1:3100while no Prem local proxy process was listening.- Prem Codex 可用性修复:修复 OmniProxy 已转发到
127.0.0.1:3100,但 Prem 本机代理未监听时导致实际请求失败的问题。
- Prem Codex 可用性修复:修复 OmniProxy 已转发到
Refactor & Documentation / 重构与文档
- Added focused tests for Prem proxy Base URL parsing and for preserving the disabled auto-start setting across config reloads.
- 补充 Prem 代理 Base URL 解析测试,以及自动启动开关关闭后重新加载仍保持关闭的配置测试。
Validation / 验证
git diff --checkgo test ./...cmd /c npm testcmd /c npm run buildC:\Users\mimanchi\go\bin\wails.exe build
Full Changelog / 完整更新日志: v1.2.1-beta.10...v1.2.1-beta.11
OmniProxy v1.2.1-beta.10
v1.2.1-beta.10 - Codex Prem wire API fix / Codex Prem 配置修复
This beta follows v1.2.1-beta.9 with a focused compatibility fix for Codex Prem one-click setup. Newer Codex versions no longer accept wire_api = "chat" in provider config, so OmniProxy now writes Prem's Codex provider with wire_api = "responses".
本次 beta 延续 v1.2.1-beta.9,集中修复 Codex Prem 一键配置的兼容性问题。新版 Codex 已不再接受 provider 配置中的 wire_api = "chat",因此 OmniProxy 现在会把 Prem 的 Codex provider 写为 wire_api = "responses"。
Features / 新特性
- None / 无
Bug Fixes / 问题修复
- Codex Prem startup fix: Fixed Codex startup failure after configuring Prem with OmniProxy by writing
wire_api = "responses"for[model_providers.prem].- Codex Prem 启动修复:修复通过 OmniProxy 配置 Prem 后 Codex 启动报错的问题,现在
[model_providers.prem]会写入wire_api = "responses"。
- Codex Prem 启动修复:修复通过 OmniProxy 配置 Prem 后 Codex 启动报错的问题,现在
- Upgrade guidance: Users who installed
v1.2.1-beta.9should run "配置 Codex Prem" again, or manually change%USERPROFILE%\.codex\config.tomlfromwire_api = "chat"towire_api = "responses".- 升级处理:已使用
v1.2.1-beta.9的用户需要重新执行「配置 Codex Prem」,或手动把%USERPROFILE%\.codex\config.toml中的wire_api = "chat"改为wire_api = "responses"。
- 升级处理:已使用
Refactor & Documentation / 重构与文档
- None / 无
Validation / 验证
git diff --checkgo test ./...cmd /c npm testcmd /c npm run buildC:\Users\mimanchi\go\bin\wails.exe build
Full Changelog / 完整更新日志: v1.2.1-beta.9...v1.2.1-beta.10
OmniProxy v1.2.1-beta.6
v1.2.1-beta.6 - AnyRouter gateway beta / AnyRouter 网关接入 beta
This beta follows v1.2.1-beta.5 with first-class AnyRouter support. OmniProxy can now manage AnyRouter API keys, route Codex/OpenAI-compatible traffic through /anyrouter/v1, route Claude Code/Anthropic-compatible traffic through /anyrouter/anthropic, and write local Codex or Claude Code configuration for the AnyRouter gateway.
本次 beta 延续 v1.2.1-beta.5,加入 AnyRouter 一等接入。OmniProxy 现在可以管理 AnyRouter API Key,通过 /anyrouter/v1 转发 Codex/OpenAI 兼容请求,通过 /anyrouter/anthropic 转发 Claude Code/Anthropic 兼容请求,并支持一键写入 Codex 或 Claude Code 的 AnyRouter 本地配置。
Features / 新特性
- AnyRouter provider: Added AnyRouter to the account pool with per-account Base URL support and the default upstream
https://anyrouter.top.- AnyRouter 厂商:账号池新增 AnyRouter,支持账号级 Base URL,默认上游为
https://anyrouter.top。
- AnyRouter 厂商:账号池新增 AnyRouter,支持账号级 Base URL,默认上游为
- Codex/OpenAI gateway route: Added
/anyrouter/v1and/anyrouterroutes for Codex/OpenAI-compatible Responses traffic, including version-prefix normalization for upstreams that already include/v1.- Codex/OpenAI 网关入口:新增
/anyrouter/v1与/anyrouter路由,转发 Codex/OpenAI 兼容 Responses 请求,并处理上游 Base URL 已包含/v1时的路径去重。
- Codex/OpenAI 网关入口:新增
- Claude Code/Anthropic gateway route: Added
/anyrouter/anthropicfor Claude Code and Anthropic Messages-compatible traffic using AnyRouter API keys.- Claude Code/Anthropic 网关入口:新增
/anyrouter/anthropic,使用 AnyRouter API Key 转发 Claude Code 与 Anthropic Messages 兼容请求。
- Claude Code/Anthropic 网关入口:新增
- One-click client configuration: Added AnyRouter quick configuration actions for Codex and Claude Code, including Wails bindings and local HTTP control API endpoints.
- 客户端一键配置:新增 Codex 与 Claude Code 的 AnyRouter 一键配置,包含 Wails 绑定和本地 HTTP 控制 API 端点。
Bug Fixes / 问题修复
- None / 无
⚠️ Breaking Changes / 不兼容更新
- None / 无
Refactor & Performance / 重构与优化
- Gateway configuration cleanup: AnyRouter follows the same account-level Base URL and outbound proxy normalization paths as sub2api and new-api where applicable.
- 网关配置收敛:AnyRouter 复用与 sub2api、new-api 一致的账号级 Base URL 和出站代理归一化路径。
- User guidance: Updated quickstart, settings, help content, and README entries for the new AnyRouter routes and client configuration flow.
- 使用说明:更新一键配置、全局设置、帮助内容和 README 中的 AnyRouter 路由与客户端配置说明。
Validation / 验证
go test ./...cmd /c npm testcmd /c npm run buildgit diff --check
Full Changelog / 完整更新日志: v1.2.1-beta.5...v1.2.1-beta.6
OmniProxy v1.2.1-beta.5
v1.2.1-beta.5 - Codex quota estimate and history storage fixes / Codex 额度预估与历史存储修复
This beta follows v1.2.1-beta.4 with two focused Codex fixes. Weekly USD estimates now require current weekly-window usage rows instead of falling back to lifetime account totals, and Codex sub2api / new-api one-click configuration no longer disables Responses storage, so official Codex conversation history remains available after switching gateways.
本次 beta 延续 v1.2.1-beta.4,集中修复两个 Codex 问题。周额度美元预估现在必须基于当前周窗口内的用量记录,不再回退使用账号累计总 Token;同时 Codex sub2api / new-api 一键配置不再关闭 Responses 存储,切换网关后仍可看到官方 Codex 对话历史。
Features / 新特性
- None / 无
Bug Fixes / 问题修复
- Codex quota estimate: Stopped using lifetime account token totals as a fallback for weekly quota estimation when current weekly-window daily rows are unavailable.
- Codex 额度预估:当前周窗口 daily 用量不可用时,不再用账号累计 Token 作为周额度预估兜底。
- Codex pricing parity: Added the GPT-5.4 / GPT-5.5 long-context pricing threshold and multipliers used by the reference billing path.
- Codex 计价一致性:补齐参考计费路径中的 GPT-5.4 / GPT-5.5 长上下文阈值与倍率。
- Codex conversation history: Stopped writing
disable_response_storage = truewhen configuring Codex for sub2api / new-api, and removed that stale key from existing Codex config during one-click configuration.- Codex 对话历史:配置 Codex sub2api / new-api 时不再写入
disable_response_storage = true,一键配置也会清理旧配置中残留的该项。
- Codex 对话历史:配置 Codex sub2api / new-api 时不再写入
⚠️ Breaking Changes / 不兼容更新
- None / 无
Refactor & Performance / 重构与优化
- Estimate copy: Clarified that Codex weekly estimates are based on the current weekly usage window.
- 预估文案:明确 Codex 周额度预估基于当前周窗口内用量。
- Codex config generation: Kept gateway configuration scoped to routing and model settings without changing the user's response storage preference.
- Codex 配置生成:网关配置只调整路由和模型设置,不再改变用户的响应存储偏好。
Validation / 验证
cmd /c npm testcmd /c npm run buildgo test ./...git diff --check
Full Changelog / 完整更新日志: v1.2.1-beta.4...v1.2.1-beta.5
OmniProxy v1.2.1-beta.4
v1.2.1-beta.4 - cache-aware Codex quota estimates / 缓存感知 Codex 额度预估
This beta follows v1.2.1-beta.3 with a focused correction to Codex weekly quota estimation. The estimate now accounts for cached token usage, aligns the default GPT-5.5 pricing fallback with the reference billing logic, and uses Codex quota window metadata to keep the 5-hour and weekly labels in the right positions.
本次 beta 延续 v1.2.1-beta.3,集中修正 Codex 周额度美元预估。额度估算现在会纳入缓存 Token 用量,默认 GPT-5.5 价格回退与参考计费逻辑保持一致,并使用 Codex 额度窗口元数据确保 5 小时和周额度标签位置正确。
Features / 新特性
- None / 无
Bug Fixes / 问题修复
- Codex quota estimate: Fixed weekly USD quota estimates to subtract cached-read tokens from billable input and charge cache creation/read tokens separately.
- Codex 额度预估:修复周额度美元预估,将缓存命中的输入 Token 从普通输入计费中扣除,并单独计算缓存写入/读取成本。
- Codex pricing fallback: Aligned the default GPT-5.5 estimate with the standard GPT-5.4 fallback pricing used by the reference billing path.
- Codex 价格回退:将默认 GPT-5.5 额度估算对齐参考计费路径中的 GPT-5.4 标准回退价格。
- Codex quota labels: Used
window_minutesmetadata when available so Codex Team accounts keep the primary window as5h额度and the long window as weekly quota.- Codex 额度标签:在可用时使用
window_minutes元数据,确保 Codex Team 账号主窗口显示为5h额度,长窗口显示为周额度。
- Codex 额度标签:在可用时使用
⚠️ Breaking Changes / 不兼容更新
- None / 无
Refactor & Performance / 重构与优化
- Usage accounting: Added cached-token fields to proxy usage parsing, token statistics, Wails response models, and frontend quota estimation utilities.
- 用量统计:为代理用量解析、账号统计、Wails 响应模型和前端额度估算工具补充缓存 Token 字段。
Validation / 验证
go test ./...cmd /c npm testcmd /c npm run buildgit diff --check
Full Changelog / 完整更新日志: v1.2.1-beta.3...v1.2.1-beta.4