codex-auth export
May 9, 2026 ยท View on GitHub
Usage
codex-auth export [<dir>]
codex-auth export --cpa [<dir>]
Standard Export
- Exports stored account auth snapshots.
- A directory path writes direct child
*.auth.jsonfiles to that directory. - Without a directory path, files are written to
CODEX_HOME/accounts/backup. - The exported directory can be imported with
codex-auth import <dir>.
CLIProxyAPI Export
--cpa exports flat CLIProxyAPI token JSON.
- A directory path writes direct child
.jsonfiles to that directory. - Without a directory path, files are written to
CODEX_HOME/accounts/backup. - The exported directory can be imported with
codex-auth import --cpa <dir>.
Output
stdoutreceives the number of exported accounts and destination directory.