Skip to content

Releases: piperhex/codex-switch

Codex Switch v0.2.2

Choose a tag to compare

@github-actions github-actions released this 05 Jul 11:19

v0.2.2
本次版本修复云端同步在“云端账号多、本地账号少”时可能误删服务端账号的问题,并重做了账号冲突判断逻辑。
修复内容
修复同步时本地账号列表不完整可能覆盖云端完整列表的问题。
云端同步不再使用全量删除重建策略,改为逐账号 upsert。
只有用户明确删除账号时,才会调用云端删除接口。
新增账号级 lastModifiedAt 字段,用于本地与云端冲突判断。
移除旧的 access_token iat 与 last_refresh 判断逻辑。
Codex 修改 .codex/auth.json 后,Codex Switch 会先同步回本地账号库,再参与云端同步。
当本地和云端都有同一账号时,会保留 lastModifiedAt 更新的一方。
服务端变更
synced_accounts 新增 lastModifiedAt 字段。
关闭 TypeORM synchronize 的部署需要执行:
apps/admin/sql/20260705-sync-last-modified.sql

Codex Switch v0.2.1

Choose a tag to compare

@github-actions github-actions released this 05 Jul 05:22

Windows, macOS, and Linux installers are attached below.

Full Changelog: v0.2.0...v0.2.1

Codex Switch v0.2.0

Choose a tag to compare

@github-actions github-actions released this 05 Jul 04:16

Codex Switch v0.2.0

Codex Switch 是一个本地优先的 Codex / ChatGPT 多账号切换桌面应用。本版本聚焦账号管理、使用量查看、快速切换、云同步与桌面辅助能力。

主要功能

  • 支持通过 Codex CLI OAuth + PKCE 登录账号
  • 支持应用内登录窗口、系统浏览器登录,以及导入现有 auth.json
  • 支持管理多个 Codex / ChatGPT 账号,并原子切换 $CODEX_HOME/auth.json
  • 显示账号邮箱、套餐、5 小时 / 周期用量、重置时间与 reset credits
  • 支持单账号刷新、全部账号刷新、全局自动刷新、当前账号自动刷新
  • 支持账号备注与到期时间维护
  • 支持账号备份导出与 .cs 备份文件导入
  • 提供系统托盘菜单,可快速切换账号、打开主窗口、重启 Codex 或退出应用
  • 提供可选的置顶悬浮用量气泡,支持拖动、悬停展开、点击刷新与快捷菜单
  • 提供“Restart Codex”操作,切换账号后可尝试重启本机 Codex 进程
  • 支持中英文界面、主题色、悬浮窗与刷新策略设置
  • 支持可选云端登录与账号同步
  • 附带 NestJS 云同步后端与 React 管理后台,包含用户、邀请、审批、账号与审计日志管理
  • 支持版本检查与更新提示

安全说明

完整 auth.json、access token 和 refresh token 保留在 Rust 后端处理,不会传递给 React 前端或写入应用日志。账号凭据存放在本机应用数据目录中,目前不会额外加密,请仅在可信设备上使用,并保护好操作系统账号。

当前限制

  • OAuth 回调优先使用本地端口 1455,失败后回退到 1457
  • 嵌入式登录依赖系统 WebView 与身份提供方策略,如失败请改用系统浏览器
  • Restart Codex 为尽力而为,效果取决于本机进程发现与系统启动策略
  • 当前主要面向桌面环境

Codex Switch v0.1.22

Choose a tag to compare

@github-actions github-actions released this 04 Jul 15:55

Windows and macOS installers are attached below.

Full Changelog: v0.1.21...v0.1.22

Codex Switch v0.1.21

Choose a tag to compare

@github-actions github-actions released this 04 Jul 11:33

Windows and macOS installers are attached below.

Full Changelog: v0.1.20...v0.1.21

Codex Switch v0.1.20

Choose a tag to compare

@github-actions github-actions released this 03 Jul 16:27

Windows and macOS installers are attached below.

Full Changelog: v0.1.19...v0.1.20

Codex Switch v0.1.19

Choose a tag to compare

@github-actions github-actions released this 03 Jul 16:17

Windows and macOS installers are attached below.

Full Changelog: v0.1.18...v0.1.19

Codex Switch v0.1.18

Choose a tag to compare

@github-actions github-actions released this 03 Jul 15:59

Windows and macOS installers are attached below.

Full Changelog: v0.1.17...v0.1.18

Codex Switch v0.1.17

Choose a tag to compare

@github-actions github-actions released this 03 Jul 15:53

Windows and macOS installers are attached below.

Full Changelog: v0.1.16...v0.1.17

Codex Switch v0.1.16

Choose a tag to compare

@github-actions github-actions released this 03 Jul 07:55

Windows and macOS installers are attached below.

Full Changelog: v0.1.15...v0.1.16