跳到正文
TakoAPI
返回技能列表

codex-account-switcher

由 odrobnik 提供

Coding Agents & IDEs
2.6k下载量由 clawskills.sh 提供
2星标
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Manage multiple OpenAI Codex accounts.

描述

该技能的功能

Manages multiple OpenAI Codex accounts by capturing and swapping authentication tokens stored in ~/.codex/. Supports listing accounts, adding new ones via browser login, switching by name, and auto-selecting the account with the most available weekly quota.

Avoids manual token file management and repeated browser logins when juggling multiple Codex accounts with separate quota limits.

何时使用

  • Switching from personal to work Codex account before a project session
  • Auto-selecting the account with remaining quota when one is exhausted
  • Adding a new Codex identity without disrupting the current active login
  • Checking which account is active and how much weekly quota remains
  • Scripting account rotation in automated or non-interactive environments

示例工作流

输入

User asks: switch to the account with the most available quota

智能体
  1. 1

    Run codex-accounts.py auto to initiate quota check

  2. 2

    Script reads auth tokens from ~/.codex/accounts/*.json for each saved account

  3. 3

    Queries quota status per account and compares weekly usage

  4. 4

    Writes the winning account's token to ~/.codex/auth.json

  5. 5

    Reports the switched account and remaining quota percentage

输出

Active account switched to the one with lowest weekly usage; confirmation printed with quota breakdown for all accounts

前置要求

  • OpenAI Codex account (one or more)

安装

clawhub install odrobnik/codex-account-switcher

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接