CLI reference
Manage profiles, licenses, and cloud sync straight from the terminal.
Install
Recommended: Install from the desktop app: Settings → CLI → Install command in PATH.
Optional npm install:
npm install -g codexuse-cli
Verify:
codexuse --version
Commands
codexuse profile list
codexuse profile list --no-usage
codexuse profile list --compact
codexuse profile current
codexuse profile add <name> [--skip-login] [--device-auth] [--login=browser|device]
codexuse profile refresh <name> [--skip-login] [--device-auth] [--login=browser|device]
codexuse profile switch <name>
codexuse profile autoroll [--threshold=50-100] [--dry-run] [--watch] [--interval=seconds]
codexuse profile delete <name>
codexuse profile rename <old> <new>
codexuse license status
codexuse license activate <license-key>
codexuse sync status
codexuse sync pull
codexuse sync push
Examples
codexuse profile list --compact
codexuse profile add Work --login=device
codexuse profile switch Personal
codexuse profile autoroll --dry-run
codexuse profile autoroll --watch --interval=30 --threshold=95
codexuse license status
Cross-device handoff Pro
Common pattern: push from your main laptop, then pull on a second machine so your profiles and config are ready.
# on the second machine
codexuse sync status
codexuse sync pull
codexuse profile list --compact
Notes
profile addandrefreshruncodex login(Codex CLI required).- Use
--no-usageto skip live rate-limit fetch. profile autorollruns once by default; use--watchfor continuous checks.profile autorollsupports--dry-runto preview a switch without applying it.- In terminal/other clients, profile changes usually apply on the next resumed/new turn, not mid-turn.
- On SSH/headless, login defaults to device auth.
- License state is shared between the desktop app and CLI.
- Cloud sync commands are Pro-only and manual (no background auto-sync).