Stringers
shx2005/codex-account-switcher · shx2005

codex-account-switcher: a Codex account-switching tool with 4 commits. How it got 900 stars in 34 days

What it is A command-line tool that saves multiple Codex accounts under names, switches with one command, and checks how much quota every account has left in one go.

Why it took off It didn't really catch on organically. Most stars came from a batch of bot accounts, and no single recommendation post exists off-platform. The need for "running several Plus accounts in rotation" is real, but it was already taken by cc-switch, cockpit-tools, and codex-auth.

DHow you could follow it Don't build another account switcher. You could borrow its safe structure of "leave login and quota checks to the official CLI, and only handle saving and switching yourself," or build what the leaders haven't covered (such as Windows support), and post on Zhihu, Bilibili, and LINUX DO, where real users are.

Grade D: the stars were bought, so they aren't an opportunity signal. The area already has 20 similar tools and one all-in-one tool with 150k stars. The leader gains only single digits a week, and the official team could add multi-account support at any time. Building another one won't get stars. Few people know about it yet
Data (updated daily) · Repo created 2026-10-03 · 950 stars · 7 days +293
GitHub · stars
05001k10-2310-2710-3111-0411-08950
Data 2026-10-23 → 2026-11-08 (17 days, 17 observations). Points before 10-28 come from deeply / archive backfill, not every day has one

In Oct 30, the only public repo of a developer named shx2005 gained 117 stars in a day. It's a Codex multi-account switching CLI, and its last commit was in Oct 20. In the same week, Loongphy/codex-auth (2.9k stars), the recognized leader in this area, gained only 8 stars. By Nov 6 it had 907 stars and 48 forks, but only 0 issues and 0 watchers. The tool itself is well written, but most of these stars aren't from real users. It's useful for seeing what bot-driven growth looks like, not for following.

What it is

A command-line tool called codex-account solves a specific problem: the Codex Plus quota isn't enough, Pro costs too much, so many people just run two or three Plus accounts in rotation. The official tool only offers login and logout, so every account switch means logging in again.

Its approach is to save each login under a name: save main saves the current account, add work calls official login to add a new one, use work switches to it, and list --usage lists every account's 5-hour and 7-day quota at once, showing what's left and when it resets. You can also export to a file and import it on another computer.

The first line of the README reads: "Are you tired of switching between multiple Codex accounts?" It's written in pure Python with no third-party runtime dependencies, supports macOS and Linux, and installs from GitHub via pipx.

The engineering is careful. Login is handed to the official codex login and completed in a temp directory, so a failure doesn't affect the current account. Quota checks use the official codex app-server, which sends no model requests and consumes no quota. Switching atomically replaces auth.json and keeps a backup from before the switch. It refuses to switch if Codex is still running, and credential file permissions are set to 600. For a tool that handles login credentials, this conservative design is the right call.

How the stars grew

Daily numbers from GitHub: created on 10-03, and by 10-23 it had 75 stars. After that it climbed steadily every day: 10-24 113, 10-28 391, 10-31 626, 11-03 844, 11-06 907. The single-day max was +117 (10-30). The last 7 days added +357, and the first 7 days added +475.

The curve has three things that don't add up.

There's no spike. A repo really pushed by one post shoots up for a day or two and then tapers off. This gains dozens a day for two weeks straight, like someone is dripping them in on a schedule.

Its peers aren't growing, only it is. The same week, Loongphy/codex-auth gained +8, Lampese/codex-switcher (919 stars) +10,170, -carry/codex-tools (1.1k stars) +3, and isxlan0/Codex_AccountSwitch +1. Organic demand for the whole area has flattened.

The fork accounts are all bots. Of the 48 fork accounts I could look up, all were registered between 2026 year 8 and October (25 in October alone). Their usernames all follow the "two random English words plus digits" pattern, like preempt-quintet-9e, laps84flex, and typists-ballast0c, and each has 0 followers. Forks ran at 10-21 to 2 a day starting from 10, which lines up exactly with when stars sped up. I checked what a few of these accounts had starred: dozens of unrelated small Chinese repos, covering WeChat mini-program templates, A-share research, and McDonald's budgeting, with 27 overlaps between two accounts. The same batch of accounts is also inflating another small Chinese Codex repo, Rice-dog/code-codex, where 116 of its 129 forks are this kind of bot account.

Looking off-platform: in the last 45 days, X posts mentioning the repo name or author name numbered 0. The only places I could find it online were star-tracking sites like upstar.dev and ossradar.net. Those were pulled in by the stars, not the other way around. I found no recommendation posts on LINUX DO, V2EX, Zhihu, Xiaohongshu, or Reddit.

GitHub no longer lets you view this repo's star list directly, so "the stars are fake" is inferred from the fork accounts. That's a strong inference, not proof, and a small number of real users may be among them.

The need is real, but it's already been divided up

"Running a few Plus accounts in rotation" is a common setup in Chinese-speaking communities. Zhihu, Bilibili, cnblogs, and Tencent Cloud developer forums all have tutorials, and @LinearUncle on X recommended using cc-switch to manage two Codex accounts. Reddit r/codex also has people asking about it regularly. But that traffic went to older tools:

NameScaleHow it differs
farion1231/cc-switch152k starsAn all-in-one desktop tool, mainly for switching providers and configs, with account management on the side
jlcodes99/cockpit-tools19.7k stars, +7 in the last 229 daysA GUI account manager covering Codex, Cursor, Gemini, and more
Loongphy/codex-auth2.9k stars, +7 in the last 8 daysThe most direct rival: also a CLI, also checks quota, and can switch without a restart. Recommended in openai/codex official discussion #25630
170-carry/codex-tools1.1k starsGUI with an account-pool reverse proxy
Lampese/codex-switcher919 starsDesktop app with scheduled warm-ups
20 other similar repos50–250 starsMore than half are also called codex-account-switcher
3 VS Code extensions, plus commercial products like CodexUseNot verifiedSwitch accounts from the editor status bar or a standalone window

Searching "codex account switch" on GitHub turns up 20+ repos. What this one adds is zero dependencies, export/import, and no hot-switching. Those are engineering choices that users can't see from the list page, so they had little to do with it getting stars.

If it were you

D. Most of this repo's 900 stars were bought, not a sign that an opportunity has appeared. The area already has 20+ similar tools and one all-in-one tool with 150k stars, and the leader gains only single digits a week. Building another Codex account switcher won't get stars.

Who it suits: people who want to learn how to wrap an official CLI. Leaving login and quota checks to official commands, while handling only saving and switching yourself, is the safest structure for this kind of tool and the least likely to be blocked by the official side, so it's worth copying. It's also a good sample if you want to judge whether a repo is inflated.

Who it doesn't suit: anyone hoping to collect stars by building Codex account tools, or to boost a project by buying stars. The 900 bought stars came with 0 issues, 0 watchers, and 0 off-platform discussions. There are no followers, and it doesn't read well on a résumé. Anyone who checks the fork list will see through it right away.

How to build it: If you're going after this, don't build "yet another account switcher." Go for the parts the leader doesn't have yet, like Windows support (it's missing there and in many alternatives), a team-shared quota dashboard, or just submit PRs to codex-auth and cockpit-tools. What you're really building is reputation.

How to get users: The real users of this category gather under posts on Zhihu, Bilibili tutorials, and LINUX DO threads, plus the official openai/codex discussion board. People get referred there by others. Sitting on GitHub alone brings no one in.

Deadline: The moment OpenAI adds official multi-account support or shared quotas to Codex, the whole category is gone. That could happen at any time.

Wrong read if: ① over the next month it starts getting real issues and PRs, the author resumes updates, and organic recommendation posts appear outside GitHub, which would mean real users make up more of the stars than I estimated; ② after the inflated activity stops, stars keep growing naturally by dozens per week; ③ a new Codex account-switching tool hits 1000+ stars within 30 days through real word of mouth, showing the niche isn't saturated.

Data and sources

  • GitHub: the README of shx2005/codex-account-switcher (v0.3.0), its commit history (4 commits in total: 10-03, two on 10-19, and 10-20), its forks list and the fork accounts' registration dates; daily stars / forks (10-23 to 11-06).
  • Star counts for comparable repos and their gains over the last 7 days: GitHub, 11-06.
  • Off-platform: X searches over the last 45 days; web search results only turned up star-tracking sites like upstar.dev and ossradar.net.
  • Demand sources: X @LinearUncle's posts, Reddit r/codex "how to use two codex accounts", Tencent Cloud developer community tutorials, openai/codex Discussion #25630.

GitHub repo ↗

Research notes: competitor table, acquisition evidence, full research report
Competitors
NameWhereLaunchedScaleHow it differs from this one
Loongphy/codex-authOpen source2026-02-102.9k stars, +7 in the last 8 daysAlso does CLI switching plus quota checks, and can switch without restarting the App; this repo adds export/import, zero dependencies, and conservative anti-hot-switching
jlcodes99/cockpit-toolsOpen source2026-01-1619.7k starsA GUI account manager for multiple AI IDEs; this repo only does Codex, pure CLI
farion1231/cc-switchOpen source2025-08152k starsAn all-in-one desktop tool focused on provider/config switching
170-carry/codex-toolsOpen source2026-02-271.1k starsGUI plus account pool / v1 reverse proxy
Lampese/codex-switcherOpen source2026-01-14919 starsDesktop app with scheduled warm-ups
VS Code extensions (Codex Accounts Manager and 3 others)OtherFrom ¥2026-03Not verifiedSwitches and shows quota from the editor status bar
CodexUse / AgentsRoomWeb2026Not verifiedCommercial product, runs multiple accounts in parallel windows
Codex officialBig-company features——Official only offers login/logout, with no multi-account archiving; this gap is why the whole category exists
Where users come from
  • Verified Bought stars / forks: Of the 49 forks, 48 accounts were registered between 2026-08 and October, with usernames made of random words plus digits (preempt-quintet-9e, etc.), and 0 followers each. They star dozens of unrelated small Chinese repos at the same time, with 27 overlaps between two of them. They are the same batch as the botting accounts behind Rice-dog/code-codex. Fork counts have grown steadily every day since 10-21, in step with the faster star growth.
  • Inferred Real demand for "two Plus accounts, switch back and forth": Zhihu, Bilibili, and Tencent Cloud tutorials, X @LinearUncle, and Reddit r/codex all discuss it, but the traffic goes to cc-switch, cockpit-tools, and codex-auth.
  • Inferred Community posts / X / media: x-radar logged 45 mentions over the last 0 days; Jina/Exa only surfaced star-aggregator sites.

shx2005/codex-account-switcher: why it got traction

Research date 2026-11-06. Data sources: our GitHub database (repo_profile / repo_day, from 2026-10-28), data cards, GitHub API (repos / forks / users), Jina / Exa search, x-radar.

Bottom line

This is a carefully built Codex multi-account switching CLI (pure Python, no third-party libraries, using the official codex app-server to check quotas), but the niche is already crowded, the leaders in the same category barely gained stars this week, and it picked up roughly 900 stars in 34 days, mostly not from organic interest but from bought stars / forks. Evidence: almost all of the 49 fork accounts are random-name alt accounts registered between 2026-08 and October (such as preempt-quintet-9e and swabdyne9g), and they belong to the same batch as the Chinese small repos already confirmed as botted, like Rice-dog/code-codex. Apart from star-aggregator sites, I found no organic word-of-mouth posts anywhere online.

What the product is

  • codex-account CLI tool: name and save Codex logins (ChatGPT OAuth / API key), use to switch, list --usage to check every account's 5-hour / 7-day quota and reset times at once, and export/import to move to another computer.
  • The design stresses safety and official integration throughout: login is handed off to the official codex login and completed in a temporary CODEX_HOME; quotas go through the official codex app-server, with no model requests sent; auth.json is replaced atomically, with a backup kept from before the switch; switching is refused while the client is running; credential file permissions are 600. macOS/Linux, Python 3.11+, zero third-party runtime dependencies. (README, v0.3.0)
  • Development was very short: only 4 commits in total (10-03 one, 10-19 two, 10-20 one). v0.2.0 shipped on 10-19, v0.3.0 on 10-20, and there have been no commits since. 0 issues, and the watcher count is 0. The author shx2005 (Haoxiang Sun) has only these 1 public repos and 22 followers. (GitHub API)

Growth data

  • 10-03 repo created; 10-23 when we first recorded it, 75 stars, then steady daily growth: 10-24 113 → 10-28 391 → 10-31 626 → 11-03 844 → 11-06 907. Peak single-day gain was 117 (10-30); 357 gained over the last 7 days, and 475 over the first 7 days. (Daily data card)
  • The curve has no spikes. It gains a few dozen a day, every day, for two weeks, which doesn't look like it was driven by any single post.
  • Star gains for comparable repos in the same week (GitHub repo_profile, gain_7d): Loongphy/codex-auth (2855 stars, category leader) +8; Lampese/codex-switcher (919) +10,170; -carry/codex-tools (1144) +3; isxlan0/Codex_AccountSwitch (251) +1. Organic demand across the whole category has flattened, and this repo alone is adding three to four hundred a week.

Evidence of botting (key finding)

  1. All the fork accounts are alt accounts: Of the 49 forks, the 48 accounts we could look up were registered in 2026-08 (12 accounts), 2026-09 (11 accounts), and 2026-10 (25 accounts). Every username follows the pattern of two random English words plus a numeric suffix (laps84flex, null07-deepest, typists-ballast0c ...). Each has 0 followers and 3 to 9 repos. Forks began at 10-21, running 2 to 10 per day, at the same time the star growth picked up. (GitHub API /forks, /users)
  2. These accounts also star the same batch of unrelated Chinese small repos: We sampled 5 accounts and checked their star lists. All are dozens of unrelated small repos (WeChat mini-program templates, A-share research, McDonald's budgeting, guzhezao/xhs-content-skill, OpenSparX/MasterAgent ...). preempt-quintet-9e (starred 75 repos) and laps84flex (86) share 27 overlapping stars. The only Codex-related repos on those lists are Rice-dog/code-codex, Xinge2333/codex-quota-bar, shilongWang1107/codex-status-light, and this repo.
  3. Same accounts as a repo already confirmed as botted: Our earlier report on gh_Rice-dog__code-codex was verified. Of its 129 forks, 116 were the same kind of templated alt accounts, and that report already named this batch as also forking codex-account-switcher.
  4. No organic spread: x-radar searches over the last 45 days for "codex-account-switcher" and "shx2005" each returned 0 results. Jina / Exa searches only surfaced star-aggregator sites like upstar.dev, ossradar.net, grasppy, repositorystats, and gitofanton (the stars pulled these sites in, not the other way around). I found no recommendation posts on LINUX DO, V2EX, Zhihu, Xiaohongshu, or Reddit.
  5. 900 stars, 0 issues, and 0 watchers is also abnormal for a CLI that handles login credentials: real users usually raise compatibility problems.
  6. Note: The GitHub stargazers API now returns empty or 404 for this repo and for the leading comparable repos, so I couldn't look at the starring accounts directly. The star inference comes from the fork accounts instead (fork/star ≈ 5%, consistent with the same batch of accounts at work). This is a strong inference, not a confirmed check of each starring account.

Competitors (doing the same thing)

NameWhereLaunchedScaleHow it differs from this one
jlcodes99/cockpit-toolsOpen-source desktop2026-01-1619.7k stars, +7 in the last 229 daysThey are a GUI account manager for general AI IDEs (Codex / Cursor / Gemini / Antigravity, etc.); they only do Codex, and only via CLI.
farion1231/cc-switchOpen-source desktop2025-08152k starsThey focus mainly on switching providers / configs, with account management on the side; this one focuses on archiving official account OAuth and checking quotas.
Loongphy/codex-authOpen source CLI2026-02-102.9k stars, +8 over the last 7 days; recommended in openai/codex Discussion #25630The most direct rival: it also does CLI switching and quota checks, and can switch without restarting the Codex App. This one adds export/import, zero dependencies, and a conservative design that refuses hot switching.
170-carry/codex-toolsOpen-source GUI + CLI2026-02-271.1k starsThey have an account pool / v1 reverse proxy; this one doesn't do proxying.
Lampese/codex-switcherOpen-source desktop2026-01-14919 starsThey are a desktop app with scheduled warm-ups; this one is CLI.
isxlan0/Codex_AccountSwitch, RioArisk/codex-auth-manager, liuzhao1225/codex-account-switcher, lordydord/Codex-Account-Switcher, and othersOpen source2026-01 to 0850–250 starsMostly GUI / menu bar apps; feature overlap is high.
VS Code extensions: Codex Accounts Manager (wannanbigpig), DondakeLtd Codex Account Switcher, techfetch-dev Codex Account SwitchVS Code / Open VSXFrom ¥2026-03Install counts not verifiedSwitches and shows quota from the editor status bar
CodexUse (codexuse.com), AgentsRoom, Windows Store AI Usage Monitor & SwitcherWeb / commercial desktop2026Not verifiedCommercial product that runs multiple windows at once
pi-codex-account-switcher, an Omarchy plugin, codex-profiles (an OpenAI community post)Plugins / other2026SmallBuilt into other tools
OfficialBig-company features——Codex official currently only has logout / login, with no multi-account archiving. This gap is why the whole category exists.

Searching GitHub for "codex account switch" turns up 20 or more comparable repos. Over half are named "codex-account-switcher", the same name as this repo.

Where users come from (growth levers)

  • Bought stars / forks: See above. Confirmed as the same botting accounts, and the main source of the star count.
  • Real demand, already taken: Plus quotas run out and Pro is too expensive, so people run two Plus accounts and switch between them. It's a common workaround in the Chinese-speaking dev community (X @LinearUncle recommended cc-switch for managing two Codex accounts; there are tutorials on Zhihu, Bilibili, cnblogs, and Tencent Cloud; people keep asking about it on Reddit r/codex). The need is real, but the competitors above already captured it, not this repo.
  • Bilingual README with an SEO title: the description opens with "Tired of switching between multiple Codex accounts?", which helps search, but I found no evidence that search brought in many stars.
  • Community posts / influencers / media: none found.

Differentiation

  • The real differences: zero-dependency pure-Python CLI; quota checks go through the official app-server and don't consume model quota; thorough credential safety (atomic replacement, backups, refusal to hot-switch, permission 600); cross-device export/import and direct import of the official auth.json.
  • This is good engineering taste, but users can't see it: the leader codex-auth is also a CLI that checks quotas, and it can switch without a restart. The differentiation is not why it took off; its star count mainly came from inflation.

What to borrow

  • Product-wise: "reuse the official CLI for login and quota checks, and only manage storage and switching yourself" is the safest structure for this kind of tool. It has the least risk when things break and is the least likely to get blocked by the official side.
  • Growth-wise: this inflation network (random-named sock accounts starring and forking a batch of small Chinese repos at a steady daily rate) can serve as a detection sample. Any repo that meets all of these — "forkers are all random names registered after 2026-08", "0 issues / 0 watchers", "the leaders in its category aren't growing" — should be treated as inflated first.

Still unclear

  • The starring accounts aren't visible (the stargazers endpoint is closed), so the share of fake stars can't be calculated precisely, and there may be a few real users.
  • It's unknown who is paying for it or why (the author has only this one repo; it may be for job hunting or a résumé).
  • Real usage is unknown: it's installed via pipx from git, and there are no PyPI download numbers.

Sources

This article was written by AI from public data and the data we collect daily. Numbers are sourced, and inferences are labeled.