Repository navigation
Releases
dev (20261118.4.0-dev)
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
Upgrade notes
- The background daemon is removed. Automatic switching, scheduled warmup and periodic usage refresh no longer run in the background;
use,list --force,warmupandlaunchare 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 uninstalldoes the same on demand. An oldself-updatemay printdaemon restart failedeven though the update succeeded. See Updating. launchrequires Codex CLI 0.159.2 or newer.codex-switch doctorreports 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
- @futuer-szd made their first contribution in #103
- @newbdez33 made their first contribution in #105
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
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
What's Changed
- fix: device login polling bails on unrecognized error codes by @WhymustIhaveaname in #44
- deps: bump rand from 0.10.1 to 0.10.2 by @dependabot[bot] in #45
New Contributors
- @WhymustIhaveaname made their first contribution in #44
Full Changelog: v0.0.20...v0.0.21
v0.0.20
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
What's Changed
- deps: bump chrono from 0.4.44 to 0.4.45 by @dependabot[bot] in #38
- ci: bump actions/checkout from 6 to 7 by @dependabot[bot] in #40
- deps: bump ratatui from 0.30.0 to 0.30.2 by @dependabot[bot] in #41
Full Changelog: v0.0.18...v0.0.19
v0.0.18
v0.0.17
v0.0.16
v0.0.15
Added
- Skip warmup for accounts warmed within the last hour —
useand TUI both checkis_warmed/set_warmedto 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.jsonis 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 singlekeymapmodule 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
useno longer probes Codex process state — Removed Codex process detection from theusecommand 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/knav,spacemark,entermenu,/search,rrefresh visible,ssort,tauto-refresh,aadd account,hhelp,qquit,escclear marks/search. Removed top-levelc/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/refreshscope implicitly — Top-levelralways 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.lockself-heal + 15s stale-takeover — Opening~/.codex-switch/auth.locknow recovers automatically when the file was left owned byrootfrom a priorsudoinvocation (unlinks and recreates without sudo). Acquisition usestry_lock_exclusivepolling 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-effortpid epoch_secsis written to the lock file for diagnostics
Security
rustls-webpki0.103.12 → 0.103.13 — RUSTSEC-2026-0104 (HIGH, DoS via panic on malformed CRL BIT STRING)libc0.2.185 → 0.2.186,zip8.5.1 → 8.6.0 — dependabot bumps
Full Changelog: v0.0.14...v0.0.15