Install
Use npm or Bun if you want the easiest setup:
# or
Then verify the command is available:
Other Install Options
Install the latest GitHub release directly:
|
Build from source:
Requires Rust 1.94 or newer.
Setup
- Log in with your first Codex account:
- Log in with another Codex account and save it:
- Switch when needed:
Use --include-config when a profile also needs ~/.codex/config.toml, for example custom providers:
Common Commands
| Command | What it does |
|---|---|
codexswitch-cli save --label work |
Save the current ~/.codex/auth.json as a profile. |
codexswitch-cli load --label work |
Restore a saved profile. |
codexswitch-cli list |
Show saved profiles. |
codexswitch-cli status --all |
Show active and saved profile usage. |
codexswitch-cli export --output profiles.json |
Export profiles for backup or transfer. |
codexswitch-cli import --input profiles.json |
Import profiles from an export bundle. |
codexswitch-cli doctor --fix |
Check and repair local profile storage. |
Run codexswitch-cli help <command> for command-specific options.
Storage
Profiles are stored locally under:
~/.codex/codexswitch/profiles/
Auth files and export bundles contain secrets. Keep them private.
Docs
About SyntaxSkills
SyntaxSkills hosts this repository to keep maintenance continuous and community-owned. The goal is not profit; it is to keep the tool maintained beyond any single person. Contributors and maintainers are welcome to join.