Skip to content

Releases

dev (20261118.4.0-dev)

Pre-release

Choose a tag to compare

@github-actions github-actions released this 15 Oct 09:19

Development build from refs/tags/dev at 63f9078.

This is a pre-release build for testing. Use codex-switch self-update --dev to install, or codex-switch self-update --stable to return to the latest stable release.

Older macOS/Linux direct install in /usr/local/bin: migrate once with the matching user-level installer. It verifies the download, requests sudo once, installs to ~/.local/bin, removes the old binary, and preserves profiles and configuration.

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

Version: 20261118.4.0-dev

v20261001.5.0

Choose a tag to compare

@github-actions github-actions released this 01 Oct 06:53

Upgrade notes

  • The background daemon is removed. Automatic switching, scheduled warmup and periodic usage refresh no longer run in the background; use, list --force, warmup and launch are one-shot commands and the TUI refreshes while open. A LaunchAgent, systemd unit or scheduled task left by an older release now removes itself when it starts the new binary; codex-switch daemon uninstall does the same on demand. An old self-update may print daemon restart failed even though the update succeeded. See Updating.
  • launch requires Codex CLI 0.159.2 or newer. codex-switch doctor reports the installed version.
  • Managed authentication policy is enforced (system requirements.toml, managed config, macOS MDM, workload identity federation variables) before ChatGPT requests; custom provider launches stay available.
  • Custom API providers (Beta), TUI Providers/Settings/Logs tabs with mouse support, and Codex app-server daemon restarts after a switch. Full details: CHANGELOG.

Older macOS/Linux direct install in /usr/local/bin: migrate once with the matching user-level installer. It verifies the download, requests sudo once, installs to ~/.local/bin, removes the old binary, and preserves profiles and configuration.

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

What's Changed

  • feat(tui): surface pay-per-use credits in the account list and details by @xjoker in #62
  • fix(install): verify Sigstore build provenance at first install (#61) by @xjoker in #66
  • fix(import): skip re-importing a saved account instead of duplicating it (#59) by @xjoker in #65
  • deps: bump webbrowser to 1.2.4 to fix RUSTSEC-2026-0257 (CI audit failure) by @xjoker in #63
  • feat(provider): custom API provider profiles store + CLI (PR-1) by @xjoker in #67
  • chore: add Cloud Agent development environment config by @xjoker in #72
  • feat(provider): complete the custom API provider feature on dev (#68–#73) by @xjoker in #75
  • fix(daemon): persist CODEX_SWITCH_HOME into installed services (#60) by @xjoker in #64
  • feat(tui): launch Codex from account and provider tabs by @xjoker in #77
  • feat(provider): form editor, multi-model, and rename by @xjoker in #78
  • fix(launch): pass Codex argv after -- without eating alias or model overrides by @xjoker in #79
  • feat: scheduled warmup, timezone, and TUI Settings tab by @xjoker in #80
  • fix(provider): 注入网关模型列表到 Codex /model 并补全 metadata by @xjoker in #81
  • feat(provider): fill models by hand or from gateway /models by @xjoker in #83
  • fix(provider): catalog none without --reasoning; -c after exec by @xjoker in #84
  • feat(provider): pick slugs from large gateway /models catalogs by @xjoker in #85
  • fix(provider): skip must clear leftover Codex thinking effort by @xjoker in #87
  • fix(tui): pin provider form fields and scroll the model list by @xjoker in #88
  • feat(provider): probe Responses support without generating tokens by @xjoker in #89
  • fix(provider): copy MCP and prompts into isolated Codex home by @xjoker in #90
  • fix(provider): concurrent launch homes with symlink and merge by @xjoker in #91
  • fix: complete warmup streams and prefer Luna by @futuer-szd in #103
  • fix: restart the Codex app-server daemon after a credential switch by @newbdez33 in #105

New Contributors

Full Changelog: v20260804.1.0...v20261001.5.0

Issue reporters

Thanks for the reports fixed in this release: @zhy0216 (#104), @Listen3 (#99), @7678837-glitch (#59, #60, #61).

v20260804.1.0

Choose a tag to compare

@github-actions github-actions released this 10 Aug 02:15

Older macOS/Linux direct install in /usr/local/bin: migrate once with the matching user-level installer. It verifies the download, requests sudo once, installs to ~/.local/bin, removes the old binary, and preserves profiles and configuration.

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

What's Changed

  • deps: bump toml from 1.1.2+spec-1.1.0 to 1.1.3+spec-1.1.0 by @dependabot[bot] in #46

Full Changelog: v0.0.21...v20260804.1.0

v0.0.21

Choose a tag to compare

@github-actions github-actions released this 10 Jul 02:55

What's Changed

New Contributors

Full Changelog: v0.0.20...v0.0.21

v0.0.20

Choose a tag to compare

@github-actions github-actions released this 01 Jul 23:27

What's Changed

  • deps: bump anyhow from 1.0.102 to 1.0.103 by @dependabot[bot] in #42

Full Changelog: v0.0.19...v0.0.20

v0.0.19

Choose a tag to compare

@github-actions github-actions released this 29 Jun 06:30

What's Changed

Full Changelog: v0.0.18...v0.0.19

v0.0.18

Choose a tag to compare

@github-actions github-actions released this 08 Jun 08:56

Full Changelog: v0.0.17...v0.0.18

v0.0.17

Choose a tag to compare

@github-actions github-actions released this 11 May 02:50

Full Changelog: v0.0.16...v0.0.17

v0.0.16

Choose a tag to compare

@github-actions github-actions released this 06 May 02:15

Full Changelog: v0.0.15...v0.0.16

v0.0.15

Choose a tag to compare

@github-actions github-actions released this 29 Apr 14:18

Added

  • Skip warmup for accounts warmed within the last hour — use and TUI both check is_warmed/set_warmed to avoid redundant warmup requests when an account was already warmed recently
  • Dynamic warmup model selection — Warmup now resolves the target model via the API per process (cached behind a tokio Mutex) instead of using a hardcoded slug, keeping warmup correct as upstream models change
  • TUI Add account (a) — Add a brand-new account directly from the main view; popup chooses between Browser (PKCE) and Device code OAuth flows. The TUI suspends during OAuth and re-opens with the new profile loaded
  • TUI re-Login (Enter > l) — Re-authorize the selected profile from the Account menu; supports both Browser and Device code flows. If the profile is currently active, the live ~/.codex/auth.json is also refreshed
  • TUI Account menu (Enter) — Pressing Enter on a selected account opens a popup with: u Use, l re-Login, n reName, w Warmup, f reFresh this one, d Delete
  • TUI Batch menu (Enter when accounts marked) — Pressing Enter while one or more accounts are marked opens a batch popup with: r Refresh selected, w Warmup selected, l re-Login selected (sequential), d Delete selected
  • TUI Help (h) — Help popup lists every binding, grouped by section. Sources from a single keymap module so it stays in sync with the status bar
  • TUI popups adapt to screen size — All popups (Help, Account menu, Batch menu, OAuth flow chooser) center on screen, clamp width/height to the terminal, support vertical scrolling with a block-character scrollbar, and fall back to a one-line message when the terminal is too small

Changed

  • use no longer probes Codex process state — Removed Codex process detection from the use command path; switching auth no longer depends on what Codex is doing
  • TUI keymap redesigned — All shortcuts are pure lowercase (uppercase silently treated as the same key); bindings no longer overlap. Top-level keys: j/k nav, space mark, enter menu, / search, r refresh visible, s sort, t auto-refresh, a add account, h help, q quit, esc clear marks/search. Removed top-level c/d/n/w/a-as-auto — those operations now live in the Enter menu (which surfaces them with discoverable labels)
  • TUI status bar simplified — Shows only the 6 most-used bindings (j/k nav │ enter menu │ / search │ r refresh │ h help │ q quit); full list moved to the Help popup
  • TUI marks no longer change r/refresh scope implicitly — Top-level r always refreshes the visible (search-filtered) view. Batch refresh / warmup / re-login / delete are explicit actions in the Enter > Batch menu, eliminating the "why did only some get refreshed" surprise

Fixed

  • TUI popup scroll clamps to content bounds — When the terminal shrank or popup content shortened, the persisted scroll offset could exceed the visible range and leave the popup blank until manually scrolled. Render path now writes the clamped value back to popup state
  • auth.lock self-heal + 15s stale-takeover — Opening ~/.codex-switch/auth.lock now recovers automatically when the file was left owned by root from a prior sudo invocation (unlinks and recreates without sudo). Acquisition uses try_lock_exclusive polling with a 15s deadline; after the deadline the holder is treated as stale and the lock file is unlinked + recreated to take over (orphan inode keeps any old fd's lock harmless). Best-effort pid epoch_secs is written to the lock file for diagnostics

Security

  • rustls-webpki 0.103.12 → 0.103.13 — RUSTSEC-2026-0104 (HIGH, DoS via panic on malformed CRL BIT STRING)
  • libc 0.2.185 → 0.2.186, zip 8.5.1 → 8.6.0 — dependabot bumps

Full Changelog: v0.0.14...v0.0.15