Overview
- Skill Key
- geekjair/codex-cleaner
- Author
- geekjair
- Source Repo
- openclaw/skills
- Version
- -
- Source Path
- skills/geekjair/codex-cleaner
- Latest Commit SHA
- 29cf13faacb372ba7f1a8abf29098bd238823a54
Monitor and clean invalid codex auth files from CPA (Codex Provider Agent). Checks quota status, disables 401 files, double-verifies before deletion. Use when user mentions "codex clean", "clean auth", "auth files", "CPA清理", "codex 认证", "清理无效文件", or needs to manage codex authentication files.
Stars
0
Installs
0
Status
ACTIVE
Visibility
PUBLIC
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 codex-cleaner 技能。 若已安装,则直接安装 codex-cleaner 技能。
# Codex Auth File Cleaner
Clean invalid codex auth files via CPA management API. Zero dependencies (pure Python stdlib).
## First Run
Run setup wizard to configure CPA URL and admin key:
```bash
python3 scripts/codex_cleaner.py setup
```
Config saved to `config.json` (auto-created, gitignored). Config priority: CLI args > env vars (`CPA_URL`/`CPA_KEY`) > config.json.
## Commands
```bash
# View status
python3 scripts/codex_cleaner.py status
python3 scripts/codex_cleaner.py status --json
# Check active files, disable 401s
python3 scripts/codex_cleaner.py check
# Double-verify disabled files, then delete confirmed 401s
python3 scripts/codex_cleaner.py delete
# Full clean (check + delete), output human-readable report
python3 scripts/codex_cleaner.py clean --report
# Full clean, output JSON
python3 scripts/codex_cleaner.py clean --json
# Loop mode (default 300s interval)
python3 scripts/codex_cleaner.py monitor -i 300
```
## Workflow
```
clean = check + delete
check: fetch active codex files → concurrent quota check → disable 401s
delete: fetch disabled files → verify#1 (401?) → wait 2s → verify#2 (still 401?) → delete
```
Double verification prevents accidental deletion of temporarily failing files.
## Nanobot Integration
For periodic monitoring, run `clean --report` via HEARTBEAT or cron, then send the stdout report to the user via `message` tool.
Example:
```bash
cd ~/.nanobot/workspace/skills/codex-cleaner && python3 scripts/codex_cleaner.py clean --report
```
## Report Format
```
🧹 Codex 认证清理报告
⏰ 2026-02-26 13:50:00
📊 清理前
总计: 100 | 可用: 85 | 已禁用: 15
🔍 检查阶段
检测: 85 | 失效(401): 3 | 已禁用: 3
🗑️ 删除阶段
待删: 18 | 验证通过: 15 | 已删除: 15 | 跳过: 3
📊 清理后
总计: 85 | ✅可用: 82 | ⛔已禁用: 3
⚡ 本次清理: 禁用 3 + 删除 15 = 18 个无效文件
```
## Config File
`config.json` (auto-generated by setup wizard):
```json
{
"cpa_url": "http://YOUR_CPA_HOST:PORT",
"cpa_key": "YOUR_ADMIN_KEY",
"concurrency": 2...
laborany
基于 Claude Code 的桌面 AI 工作力平台 — 支持飞书/QQ 远程调度、技能创建、定时任务。OpenClaw 的桌面实现,零代码养好你的 AI 🦞 Desktop AI workforce platform built on Claude Code. Feishu/QQ bot integration, skill creation, scheduled tasks — OpenClaw for your desktop. Raise your AI lobsters 🦞
heyixuan2
Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pipeline: search → generate → analyze → colorize → preview → open BS → user slice → print → monitor. Supports all 9 Bambu Lab printers (A1 Mini, A1, P1S, P2S, X1C, X1E, H2C, H2S, H2D).
win4r
Reusable OpenClaw skill for remote Linux deployment with MiniMax M2.1 and Telegram bot setup
botlearn-ai
Bots learn, human earns, curated open claw playbook list and skill list for life long learners at https://botlearn.ai
duanecilliers
Web-based admin dashboard for OpenClaw — manage Discord persona bots, workspace files, skills, cron jobs, channels, and config
abczsl520
OpenClaw skill: Dynamic bug audit for Node.js web projects (games, data tools, WeChat, APIs, bots). 200+ real-world pitfalls.