Skip to content

Development Releases

github-actions[bot] edited this page Jul 14, 2026 · 3 revisions

Testing development releases

Prerelease warning: the rolling dev build contains changes intended for the next stable release. It may change again before release. Do not use it when you need stable production behavior.

For stable-channel updates, Homebrew rules, and legacy-install migration, see Updating.

Install the rolling dev build

For an existing direct installation:

codex-switch self-update --dev

For a new macOS or Linux installation:

curl -fsSL https://github.com/xjoker/codex-switch/releases/download/dev/install.sh | bash -s -- --dev

Do not substitute a raw.githubusercontent.com/.../master/scripts/install.sh URL. That old branch can serve a retired installer which writes to /usr/local/bin. The dev Release asset above defaults to $HOME/.local/bin; it requests sudo only for the one-time removal of a root-owned legacy binary, or when you explicitly pass --system.

For a new Windows installation, run this in PowerShell:

$env:CS_DEV="1"
irm https://github.com/xjoker/codex-switch/releases/download/dev/install.ps1 | iex

Move from Homebrew to dev

Homebrew distributes stable releases only and owns its Cellar binary. Do not use self-update --dev against a Homebrew installation. Remove the package, then use the direct dev installer:

brew uninstall codex-switch
curl -fsSL https://github.com/xjoker/codex-switch/releases/download/dev/install.sh | bash -s -- --dev

Profiles and configuration remain under ~/.codex-switch; changing binary ownership does not reset them.

Verify the installation

Confirm that the reported version ends in -dev, then check the rolling channel without modifying the installation:

codex-switch --version
codex-switch self-update --check --dev

The installer and self-updater preserve profiles and configuration. On macOS and Linux, current direct installs default to the user-owned $HOME/.local/bin; Windows direct installs use %LOCALAPPDATA%\Programs\codex-switch.

Run a focused smoke test

Use the smallest path that covers the behavior you want to test:

codex-switch list
codex-switch tui

If you are testing a specific command, run codex-switch <command> --help before exercising it. Do not use live reset cards, profile deletion, daemon installation, or account switching unless those actions are part of the intended test.

Report a problem

Open an issue with:

  • operating system, architecture, terminal, and installation method
  • output from codex-switch --version
  • the exact command and the expected and actual behavior
  • the smallest reproducible sequence
  • redacted diagnostic output when needed
codex-switch --debug <command>

Remove tokens, profile contents, email addresses, account IDs, workspace names, identifying filesystem paths, and proxy credentials before sharing output. Use the GitHub issue tracker.

Return to stable

For a direct installation:

codex-switch self-update --stable

To return to Homebrew ownership, remove the direct installation and reinstall xjoker/tap/codex-switch with Homebrew.

curl -fsSL https://github.com/xjoker/codex-switch/releases/download/dev/install.sh | bash -s -- --uninstall
brew install xjoker/tap/codex-switch

When the uninstaller asks whether to remove the data directory, answer N to preserve profiles and configuration.

中文摘要

dev 是下一正式版发布前的滚动测试通道,可能继续变化。直装用户可运行 codex-switch self-update --dev;macOS/Linux 新装使用安装脚本的 --dev 参数,Windows PowerShell 设置 $env:CS_DEV="1" 后运行安装脚本。安装后用 codex-switch --version 确认版本以 -dev 结尾,并用 codex-switch self-update --check --dev 检查通道。测试结束后运行 codex-switch self-update --stable 回到直装正式版。

Homebrew 只提供正式版。切换开发版前先运行 brew uninstall codex-switch,再使用带 --dev 的直装脚本。若测试后希望恢复 Homebrew 管理,运行直装卸载脚本、在删除数据目录的询问中选择 N,然后执行 brew install xjoker/tap/codex-switch

提交问题前请删除 Token、profile 内容、邮箱、account ID、工作区名称、可识别身份的路径和代理凭据。更多中文入口见中文指南

Next steps

Clone this wiki locally