
Security News
GPT-6 Astra Attempts Supply Chain Attacks Against Open Source Maintainers in Testing
GPT-6 Astra hits 100% on ExploitBench and finds zero-days autonomously, while independent tests reveal scope violations and monitoring gaps.
@ramarivera/codex-auth-linux-arm64
Advanced tools
⚠️ This is a fork of Loongphy/codex-auth. It was created specifically to restore the background auto-switch feature that was removed in the upstream v0.3.x series, and to make the Windows background service run silently (no console popups). For the canonical version, use
@loongphy/codex-auth.
codex-auth is a command-line tool for switching Codex accounts.
Install with npm:
npm install -g @ramarivera/codex-auth
You can also run it without a global install:
npx @ramarivera/codex-auth list
codex-auth works with these Codex clients:
[!IMPORTANT] For Codex CLI and Codex App users, switch accounts, then restart the client for the new account to take effect.
If you want seamless automatic account switching without restarting, use the forked
codext, an enhanced Codex CLI.Install it with
npm i -g @loongphy/codextand runcodext.Codex App users can use
codex-auth app, but it is not stable. See Details.
Install the Codex CLI even if you mainly use the VS Code extension or the App, because it makes adding accounts easier:
npm install -g @openai/codex
After that, you can use codex-auth login, or codex-auth login --device-auth to sign in and add accounts more easily.
Detailed command documentation lives in docs/commands/README.md.
[!NOTE] This documentation is based on v0.3.x. Some commands described here may not be available in the current release.
To try the latest features, please install the alpha version via:
npm install -g @loongphy/codex-auth@nextIf you want to downgrade to v0.2.x, you may need to manually update the
~/.codex/accounts/registry.json:"schema_version": 3
| Command | Description |
|---|---|
codex-auth list [--live] [--active] [--api|--skip-api] | List stored accounts and usage state |
codex-auth login [--device-auth] | Run codex login, then add the current account |
codex-auth switch [--live] [--api|--skip-api] | Switch the active account interactively |
codex-auth switch <query> | Switch directly by row number or account selector |
codex-auth remove [--live] [--api|--skip-api] | Remove accounts interactively |
codex-auth remove <query> [<query>...] | Remove accounts by selector |
codex-auth remove --all | Remove all stored accounts |
codex-auth alias set <query> <alias> | Set an alias for an account |
codex-auth alias clear <query> | Clear the alias for an account |
| Command | Description |
|---|---|
codex-auth import <path> [--alias <alias>] | Import a single auth file or batch import a folder |
codex-auth import --cpa [<path>] | Import CLIProxyAPI token JSON |
codex-auth import --purge [<path>] | Rebuild registry.json from auth files |
codex-auth export [<dir>] | Export stored account auth files |
codex-auth export --cpa [<dir>] | Export CLIProxyAPI token JSON |
codex-auth clean | Delete managed backup and stale account files |
| Command | Description |
|---|---|
codex-auth config live --interval <seconds> | Configure live TUI refresh interval |
codex-auth list
codex-auth list --active
codex-auth switch
codex-auth switch 02
codex-auth remove work
codex-auth import /path/to/auth.json --alias personal
codex-auth list --skip-api
[!IMPORTANT] The
appcommand is experimental and may never become a stable feature.It is designed to enable seamless account switching without restarting the Codex App. By leveraging the
CODEX_CLI_PATHenvironment variable, it dynamically injects our managed codext CLI to handle authentication on the fly.The
appcommand is constrained by ongoing changes in the official Codex App and Codex CLI. It may not always take effect and may also break your app.
| Command | Description |
|---|---|
codex-auth app [--id <id>] [--codex-cli-path <path>] | Experimental: launch Codex App with detected defaults, CODEX_HOME, CODEX_CLI_PATH, and platform overrides |
Support seamless account switching including:
Remove the npm package:
npm uninstall -g @loongphy/codex-auth
API-backed refresh is the default. When you pass --skip-api, codex-auth reads the newest ~/.codex/sessions/**/rollout-*.jsonl file instead. Recent Codex builds often write token_count events with rate_limits: null. The local files may still contain older usable usage limit data, but in practice they can lag by several hours, so local-only refresh may show a usage limit snapshot from hours ago instead of your latest state.
Run the API-backed default with:
codex-auth list
Run one local-only command with:
codex-auth list --skip-api
Verify with:
codex exec "say hello"
This project is provided as-is and use is at your own risk.
Usage Data Refresh Source:
codex-auth supports two sources for refreshing account usage/usage limit information:
curl must be available at runtime.--skip-api, the tool scans local ~/.codex/sessions/*/rollout-*.jsonl files for usage data and skips team name refresh API calls. This mode is safer, but it can be less accurate because recent Codex rollout files often contain rate_limits: null, so the latest local usage limit data may lag by several hours.API Call Declaration: By using the default API-backed refresh, this tool will send your ChatGPT access token to OpenAI's servers for usage limit and team name refresh. The exact endpoints are:
GET https://chatgpt.com/backend-api/wham/usageGET https://chatgpt.com/backend-api/accountsThis behavior may be detected by OpenAI and could violate their terms of service, potentially leading to account suspension or other risks. The decision to use this feature and any resulting consequences are entirely yours.
FAQs
@ramarivera/codex-auth binary for linux arm64
The npm package @ramarivera/codex-auth-linux-arm64 receives a total of 8 weekly downloads. As such, @ramarivera/codex-auth-linux-arm64 popularity was classified as not popular.
We found that @ramarivera/codex-auth-linux-arm64 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
GPT-6 Astra hits 100% on ExploitBench and finds zero-days autonomously, while independent tests reveal scope violations and monitoring gaps.

Product
Socket can now send alerts and supply chain attack notifications to Microsoft Teams, with filters that route the right updates to each channel.

Security News
pnpm 12 rewrites the package manager in Rust, cutting install times by up to 90% while preserving pnpm 11 workflows and lockfiles.