{"id":47976278,"url":"https://github.com/denysdovhan/codex-account","last_synced_at":"2026-04-04T10:55:43.457Z","repository":{"id":345316098,"uuid":"1184457730","full_name":"denysdovhan/codex-account","owner":"denysdovhan","description":"A simple utility to switch Codex accounts","archived":false,"fork":false,"pushed_at":"2026-03-24T13:38:05.000Z","size":290,"stargazers_count":19,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-04T10:55:39.668Z","etag":null,"topics":["agentic-coding","ai-agents","codex","codex-app","codex-cli","openai"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/denysdovhan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"denysdovhan","buy_me_a_coffee":"denysdovhan"}},"created_at":"2026-03-17T15:53:47.000Z","updated_at":"2026-04-03T02:12:38.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/denysdovhan/codex-account","commit_stats":null,"previous_names":["denysdovhan/codex-account"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/denysdovhan/codex-account","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denysdovhan%2Fcodex-account","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denysdovhan%2Fcodex-account/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denysdovhan%2Fcodex-account/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denysdovhan%2Fcodex-account/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/denysdovhan","download_url":"https://codeload.github.com/denysdovhan/codex-account/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denysdovhan%2Fcodex-account/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31397056,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["agentic-coding","ai-agents","codex","codex-app","codex-cli","openai"],"created_at":"2026-04-04T10:55:42.735Z","updated_at":"2026-04-04T10:55:43.444Z","avatar_url":"https://github.com/denysdovhan.png","language":"Shell","funding_links":["https://github.com/sponsors/denysdovhan","https://buymeacoffee.com/denysdovhan","https://patreon.com/denysdovhan"],"categories":[],"sub_categories":[],"readme":"[![SWUbanner](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner-direct-single.svg)](https://stand-with-ukraine.pp.ua/)\n\n\u003c!-- markdownlint-disable no-inline-html --\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"Codex Account Demo\" src=\"./demo.gif\" /\u003e\n\u003c/p\u003e\n\u003c!-- markdownlint-enable no-inline-html --\u003e\n\n# codex-account\n\n[![GitHub Actions][gh-actions-image]][gh-actions-url]\n[![GitHub Sponsors][gh-sponsors-image]][gh-sponsors-url]\n[![Buy Me A Coffee][buymeacoffee-image]][buymeacoffee-url]\n[![X.com][x-image]][x-url]\n\n\u003e [!NOTE]\n\u003e A small CLI for switching Codex auth accounts by swapping `~/.codex/auth.json`.\n\nCodex currently does not provide a UI for switching between saved profiles. If you use separate work and personal accounts, moving between them usually means re-authenticating or manually replacing `auth.json`.\n\nThis utility keeps named snapshots of authenticated accounts so you can move between them without logging in again each time.\n\n## Installation\n\n```sh\n# Clone the repository into Codex's config area\ngit clone https://github.com/denysdovhan/codex-account ~/.codex/.codex-account\n\n# Expose the script as a runnable command from your local bin directory\nln -sfn ~/.codex/.codex-account/codex-account.sh ~/.local/bin/codex-account\n```\n\n\u003e [!IMPORTANT]\n\u003e Make sure `~/.local/bin` is on your `PATH`.\n\u003e Otherwise, the `codex-account` command will not be available after creating the\n\u003e symlink.\n\n## Quick Start\n\n```sh\n# Log into one Codex account first, then save it\ncodex-account save personal\n\n# Logout and login into another Codex account, then save that one too\ncodex-account save work\n\n# See saved accounts and the current match\ncodex-account list\n\n# Switch back to a saved account\ncodex-account switch personal\n\n# Show the active account\ncodex-account current\n```\n\n## Commands\n\n### `codex-account help`\n\nShow the built-in help text.\n\n### `codex-account list`\n\nList saved accounts. `*` marks the account whose saved snapshot matches the live\n`auth.json`. `~` marks the recorded current account when the live auth differs\nfrom every saved snapshot.\n\n### `codex-account current`\n\nPrint the active account name when it can be matched. If the live auth does not\nmatch a saved snapshot, it reports the recorded account when available.\n\n### `codex-account save \u003caccount\u003e`\n\nSave the current `~/.codex/auth.json` as `\u003caccount\u003e.auth.json` and mark that\naccount as current.\n\n### `codex-account switch \u003caccount\u003e`\n\nBack up the current auth as `\u003caccount\u003e-backup.auth.json` when the current auth\ncan be associated with a saved account, then restore the requested saved\naccount into `~/.codex/auth.json`.\n\n\u003e [!IMPORTANT]\n\u003e Restart Codex after switching if it is already running.\n\n### `codex-account \u003caccount\u003e`\n\nShorthand for `codex-account switch \u003caccount\u003e`.\n\n## Notes\n\n- This tool only swaps `auth.json`. It does not change the rest of `~/.codex`.\n- Saved accounts live in `~/.codex/.codex-account/accounts`.\n- Named backups are stored alongside saved accounts as `*-backup.auth.json`.\n- To add a new account, log into it with Codex first, then run\n  `codex-account save \u003caccount\u003e`.\n- Restart Codex after switching if it is already running.\n\n## Contributing\n\nInstall the local Git hooks after cloning:\n\n```sh\n# Install the Git hooks managed by pre-commit\npre-commit install\n```\n\n## License\n\nMIT © [Denys Dovhan](https://denysdovhan.com)\n\n\u003c!-- Badges --\u003e\n\n[buymeacoffee-image]: https://img.shields.io/badge/support-buymeacoffee-222222.svg?style=flat-square\n[buymeacoffee-url]: https://patreon.com/denysdovhan\n[gh-actions-image]: https://img.shields.io/github/actions/workflow/status/denysdovhan/codex-account/ci.yml?style=flat-square\u0026branch=main\n[gh-actions-url]: https://github.com/denysdovhan/codex-account/actions/workflows/ci.yml\n[gh-sponsors-image]: https://img.shields.io/github/sponsors/denysdovhan?style=flat-square\n[gh-sponsors-url]: https://github.com/sponsors/denysdovhan\n[x-image]: https://img.shields.io/badge/follow-%40denysdovhan-000000.svg?style=flat-square\n[x-url]: https://x.com/denysdovhan\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenysdovhan%2Fcodex-account","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdenysdovhan%2Fcodex-account","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenysdovhan%2Fcodex-account/lists"}