codexuse-cli
v3.9.7
Published
CodexUse CLI for profiles, Accounts Pool, daemon mode, licenses, and sync.
Readme
CodexUse CLI
Install (npm):
npm install -g codexuse-cliCommands:
codexuse account-pool status [--runtime=desktop|daemon] [--state-dir=/abs/path] [--port=NNNN]
codexuse account-pool enable
codexuse account-pool disable
codexuse account-pool routing <least-used|round-robin>
codexuse account-pool profiles <list|set|add|remove|reset> [names...]
codexuse account-pool models <list|add|remove|reset> [model-ids...]
codexuse account-pool reasoning <list|add|remove|reset> [values...]
codexuse account-pool fast-mode <list|add|remove|reset> [values...]
codexuse account-pool keys <list|create|revoke> [id]
codexuse account-pool sessions list [--runtime=desktop|daemon] [--state-dir=/abs/path]
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> [--restart-codex]
codexuse profile autoroll [--switch-left=0-50] [--threshold=50-100] [--dry-run] [--watch] [--interval=seconds] [--restart-codex|--no-restart-codex]
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
codexuse daemon start [--port=NNNN] [--telegram-bot-token=<token>] [--project-path=/abs/path]Notes:
- Requires Codex CLI on PATH for
profile add/refresh(runscodex login). profile listreads live rate-limit usage via Codex CLI by default.- Use
--no-usageto skip rate-limit fetch. - Use
--compactfor names only. - On headless/SSH, login defaults to device auth. Override with
--login=browser. - Use
--skip-loginif you already rancodex login. - First CLI run bootstraps storage migration automatically.
- Accounts Pool settings are shared with the desktop app on the same machine.
- Accounts Pool API keys and live sessions are runtime-specific (
desktopvsdaemon) because each runtime has its own pool store. profile autorollrequires Pro.profile autorolluses live rate-limit usage and switches when current remaining usage is at or below the% leftthreshold.profile autorolldefaults to saved desktop auto-roll switch threshold when available (else 5% left).- Prefer
--switch-left=NN;--threshold=NNremains as the legacy used-percent alias. profile autorollhonors the saved desktop "restart official Codex after auto-switch" setting; override with--restart-codexor--no-restart-codex.profile switch <name> --restart-codexrestarts official Codex after a manual switch.profile autoroll --watchkeeps polling at--intervalseconds (default30).daemon startlaunches the bundled headless Projects/chat server and can also serve Accounts Pool.daemon startrequires Bun on PATH because the bundled server runs on Bun.- Use
--port=NNNNwhen another local client should keep one stable Accounts Pool base URL. - Set token via
--telegram-bot-token=...orCODEXUSE_TELEGRAM_BOT_TOKEN. - Telegram remote control is only enabled when a bot token is provided.
--project-path=/abs/pathauto-registers that path (if needed) and sets it as the default project for new Telegram chats.
