by 5345asda · Codex Skill · ★ 162
Last updated: · Indexed by AgentSkillsHub · Auto-synced every 8h
CPACodexKeeper 中文 | English CPACodexKeeper 是一个用于巡检和维护 CPA 管理端中的 codex token 的 Python 工具。 它的目标不是生成 token,而是对已经存储在 CPA 管理 API 中的 codex token 做持续维护。 核心能力 检查 token 是否失效 按实际返回的 quota 窗口自动禁用或启用 可选地刷新已禁用且即将过期的 token 支持 配置、Docker 和 GitHub Actions CI 适合谁用 如果你已经有一个 CPA 管理 API,并且希望: 定期清理失效 token 控制 token 的 usage 配额占用 在额度恢复后自动启用 token 在需要时对已禁用且临近过期 token 启用自动刷新 那么这个项目就是为这个场景准备的。 快速开始 更多配置和运行方式见下文。 项目解决什么问题 在实际使用中,codex token 往往不是静态资源,而是会随着时间推移出现以下情况: token 已失效,但仍残留在管理端 token 的 usage 配额已经耗尽,不适合继续分发 token 已被手动禁用,但额度恢复后没有自动启用 token 快过期了,在明确允许刷新时需要对已禁用项提前刷新 team 账号和非 team 账号的 usage 返回结构不同,需要统一处理 CPACodexKeeper 会把这些维护动作自动化,减少人工巡检和手工清理。 当前维护逻辑 每轮巡检中,程序会按下面的顺序处理: 从 CPA 管理 API 拉取 token 列表 只保留 的 token 逐个获取 token 详情 读取 token 过期时间和剩余有效期 调用 OpenAI usage 接口检查可用性和限额 如果 usage 返回 或 ,则判定 token 无效或 workspace 已停用,并删除 如果 usage 返回中包含两个 quota 窗口,则按窗口实际含义判断 只要任一窗口达到阈值,就会禁用;只有两个窗口都低于阈值时才会重新启用 如果 token 没有 ,并且已经过期,则直接删除 如果 token 没有 refreshto
| Stars | 162 |
| Forks | 36 |
| Language | Python |
| Category | Codex Skill |
| License | MIT |
| Quality Score | 51.866/100 |
| Open Issues | 3 |
| Last Updated | 2026-04-28 |
| Created | 2026-03-20 |
| Platforms | cli, codex, docker, python |
| Est. Tokens | ~3k |
These tools work well together with CPACodexKeeper for enhanced workflows:
Looking for a CPACodexKeeper alternative? If you're comparing CPACodexKeeper with other codex skill tools, these 6 projects are the closest alternatives on Agent Skills Hub — ranked by topic overlap, star count, and community traction.
A Python library powered by Language Models (LLMs) for conversational data discovery and analysis.
OpenSail is the open-source alternative to Codex App, Claude Desktop, Cursor, and Cowork for agentic software
A production-ready runtime framework for agent apps with secure tool sandboxing, Agent-as-a-Service APIs, scal
AI Agent Development Platform - Supports multiple models (OpenAI/DeepSeek/Wenxin/Tongyi), knowledge base manag
MCPCAN is a centralized management platform for MCP services. It deploys each MCP service using a container de
phpMyFAQ - Open Source FAQ web application for PHP 8.3+ and MySQL, PostgreSQL and other databases
Explore other popular codex skill tools:
CPACodexKeeper is Maintain CPA-managed codex tokens with quota checks, auto refresh, disable/enable logic, and Docker support.. It is categorized as a Codex Skill with 162 GitHub stars.
CPACodexKeeper is primarily written in Python. It covers topics such as automation, cli, codex.
You can find installation instructions and usage details in the CPACodexKeeper GitHub repository at github.com/5345asda/CPACodexKeeper. The project has 162 stars and 36 forks, indicating an active community.
CPACodexKeeper is released under the MIT license, making it free to use and modify according to the license terms.
The top alternatives to CPACodexKeeper on Agent Skills Hub include BambooAI, OpenSail, agentscope-runtime. Each offers a different approach to the same problem space — compare them side-by-side by stars, quality score, and community activity.