Beautiful terminal identities, one command away.
Codex Themes is an open-source theme manager for Codex CLI. It validates community themes, previews them in the terminal, exports matching terminal palettes, installs a real custom Codex .tmTheme, and safely writes reversible Codex config into ~/.codex/config.toml.
- Semantic theme manifest format in
theme.toml - Go CLI with
setup,list,preview,apply,sync,doctor,current,rollback,validate, andexport-terminal - Safe config backups and rollback support
- Real Codex TUI integration via
~/.codex/themes/*.tmTheme - Branded Codex status line presets with model, directory, branch, context, and fast-mode indicators
- Terminal companion exports for Windows Terminal, iTerm2, Ghostty, Alacritty, and ANSI JSON
- Accessibility-aware theme validation
- Bundled premium theme collection under
themes/
Your screenshot shows the command is not installed on your PATH yet. From C:\Users\gamin\codex-themes, run:
powershell -ExecutionPolicy Bypass -File .\scripts\install.ps1 -Source local -RunSetupThat installs codex-theme into your user programs folder, adds it to your user PATH, and opens the guided theme picker immediately.
If you want a direct one-command install + apply for a git-branch-only footer:
powershell -ExecutionPolicy Bypass -File .\scripts\install.ps1 -Source local -Theme tokyo-night -StatusLine branch-onlyThere is also a shorter wrapper from the repo root:
.\install.cmd -Source local -Theme tokyo-night -StatusLine branch-onlygo install github.com/ychampion/codex-themes/cmd/codex-theme@latestirm https://raw.githubusercontent.com/ychampion/codex-themes/main/scripts/install.ps1 | iexcurl -fsSL https://raw.githubusercontent.com/ychampion/codex-themes/main/scripts/install.sh | bashgo build ./cmd/codex-theme
./codex-theme listnpm i -g codex-theme- Homebrew formula generated via GoReleaser
- Scoop and Winget manifests
- GitHub release archives for macOS, Linux, and Windows
codex-theme list
codex-theme preview amber-nocturne
codex-theme apply amber-nocturne --status-line balanced --export-terminal ghostty,alacritty
codex-theme current
codex-theme doctorThe fastest way to try the full experience on any OS is:
codex-theme setupWhat it does now:
- opens a guided theme picker
- shows a branded live preview before applying
- writes
[tui]with a real Codex custom theme + status line config - writes the managed
[codex_themes]section into~/.codex/config.toml - installs
~/.codex/themes/codex-themes-<theme>.tmTheme - exports companion palette files for common terminals
- patches Windows Terminal automatically when available
If you use Codex inside Windows Terminal, this is the smoothest path:
codex-theme setupAfter setup finishes, open a new Windows Terminal tab and run:
codexRun the same command in your shell:
codex-theme setupCodex Themes automatically installs the Codex theme and exports companion files for terminals like Ghostty, Alacritty, and iTerm2. Use codex-theme doctor to see the exported file paths.
If you want a non-interactive version:
codex-theme setup --theme amber-nocturne --status-line balancedIf you only want the Git branch in the Codex footer:
codex-theme apply tokyo-night --status-line branch-onlyIf you are still in the repo and do not want to install globally yet, the immediate fallback is:
.\codex-theme.exe setupOr from anywhere on Windows, without installing globally first:
& "C:\Users\gamin\codex-themes\codex-theme.exe" apply tokyo-night --status-line branch-onlyAfter setup or apply, check three things:
- Run
codex-theme doctor- you should see
codex_theme,codex_theme_file, andstatus_line
- you should see
- Start a fresh terminal session and run
codex- the footer should show a richer status line with model, directory, branch, and context usage
- In Codex, open
/theme- you should see the installed custom theme name like
codex-themes-amber-nocturne
- you should see the installed custom theme name like
You can also inspect ~/.codex/config.toml directly and confirm:
[tui]theme = 'codex-themes-<theme>'status_line = [...]
- Schema:
schemas/theme.schema.json - Guide:
docs/theme-authoring.md - Release flow:
docs/releasing.md - Validate locally:
codex-theme validate path/to/theme.toml
go test ./...
go build ./cmd/codex-themeCurrent Codex builds already support two important hooks that Codex Themes uses today:
- custom
.tmThemefiles under~/.codex/themes/ - built-in
[tui].status_line
That means the current release gives you a real in-Codex upgrade right now: custom syntax colors plus a richer footer/status line, while companion terminal palettes keep the outer terminal aligned.