v0.6.0
CodexRelay v0.6.0
CodexRelay v0.6.0 是一次面向正式发布流程的整理版本,重点完善了命令命名、卸载与更新体验、双语文档以及自动化构建与发布能力。
主要更新
-
新增推荐短命令
cxr,同时保留完整命令codex-relay。 -
移除旧版命令兼容入口和旧配置目录自动迁移逻辑。
-
新增
cxr update,可直接从 GitHubmain分支更新程序,并保留现有 Profile 数据。 -
重做
cxr uninstall:- 交互式询问是否保留 Profile、备份和状态数据。
--purge可直接删除全部 CodexRelay 管理数据。- 无论哪种卸载方式,都不会删除当前
~/.codex/auth.json和config.toml。
-
中文
README.md设为默认文档,并新增完整英文版README.en.md。 -
新增跨平台 CI,覆盖 Linux、macOS、Windows,以及 Python 3.11、3.12、3.13。
-
新增自动 Release Workflow:
- 校验 Git Tag 与项目版本一致。
- 自动运行测试。
- 构建 Wheel 和源码包。
- 执行隔离安装冒烟测试。
- 自动创建 GitHub Release 并上传构建产物。
-
预留基于 PyPI Trusted Publishing 的自动发布流程。
-
完善 Shell 自动补全、首次自动导入当前 Codex 配置和安装脚本。
安装
uv tool install git+https://github.com/Lortzing/CodexRelay.git安装后使用:
cxr status也可以从源码安装:
git clone https://github.com/Lortzing/CodexRelay.git
cd CodexRelay
./install.sh常用命令
cxr status
cxr import-current
cxr use <profile>
cxr auto <profile1> <profile2> --watch
cxr launch -p <profile1> -p <profile2> --
cxr update
cxr uninstall构建产物
本次 Release 包含:
- Python Wheel
- Source Distribution
注意事项
- ChatGPT 用量查询依赖非公开稳定接口,未来可能因上游变化而失效。
- Responses API 健康检查会发送最小请求,可能产生少量 Token 消耗。
- 已运行的 Codex 进程可能缓存认证信息,切换 Profile 后建议重新启动 Codex。