{"repo":"KJ20051223/CLIProxyAPI-cleaner","free":true,"listed":false,"github":"https://github.com/KJ20051223/CLIProxyAPI-cleaner","clone":"git clone https://github.com/KJ20051223/CLIProxyAPI-cleaner.git","description":"CLIProxyAPI-cleaner: a lightweight cleanup script plus web dashboard for auth-file account management, reporting, and service control.","language":"Python","stars":44,"topics":["auth-management","bilingual-docs","cleaner","cliproxyapi","dashboard","nginx","python","systemd"],"license":"MIT","category":"dashboards-admin","readme_excerpt":"CLIProxyAPI-cleaner 中文 English CLIProxyAPI-cleaner 是一个“ 自动清理脚本 + Web 控制台 ”一体化项目，用来管理和清理 CLIProxyAPI / auth-file 相关账号状态。 仓库默认首页是中文说明；如果你想看英文版，可以直接点上面的 English 。 这个仓库包含什么 - CLIProxyAPI-cleaner.py ：真正执行检测、禁用、删除、refresh、复活探测的主脚本 - app.py ：轻量 Web 后端，负责登录、状态查询、保存配置、控制 systemd、查看报告 - common.py ：配置加载、校验、命令拼装 - run cleaner.py ：读取 web config.json 并按当前配置启动 cleaner - cleanup retention.py ：独立的文件保留清理脚本，负责清理旧报告/备份并裁剪日志 - run retention.sh ：读取 web config.json 中的保留参数，再启动 retention 清理脚本 - manager.sh ：交互式安装 / 卸载脚本（systemd + 裸机场景） - MANAGER.md ：推荐的 systemd 安装说明，适合直接照着部署 - CLIProxyAPI-cleaner.service ：后台清理服务 - CLIProxyAPI-cleaner-web.service ：控制台服务 - CLIProxyAPI-cleaner-retention.service / .timer ：定时文件清理服务与定时器 - static/ ：前端页面 - web config.example.json ：公开版示例配置 能做什么 - 参数填写与保存 - 一键启动 / 停止 / 重启 cleaner - 一键重启 Web 控制台后端 - 一键执行 dry-run - 查看 cleaner / web 日志 - 查看最近报告（默认前 5 个） - 定时清理旧报告、旧备份，并自动裁剪过大的日志文件 - 登录限流、Host 白名单、Cookie 安全属性 - 支持 Docker / Docker Compose 部署 示例说明 文中涉及的账号场景、探测说明和相关描述，默认以 codex 为例；其他兼容 provider 的处理思路基本一致。 部署要求 - Linux - Python 3.10+ - systemd - Nginx（推荐，用于反代） - 服务器具备访问上游 API 和你的管理端地址的网络能力 目录结构 部署原理 页面保存配置后，会写入 web config.json 。 run cleaner.py 启动时会读取这份配置，再调用 CLIProxyAPI-cleaner.py 。 这样就不会出现“页面里改了参数，但 systemd 仍然跑旧命令”的问题。 --- 详细部署说明 Systemd 安装（推荐） 如果你准备把项目部署在 Linux 宿主机 + systemd 上，推荐直接使用仓库自带的交互式安装脚本： 这会自动完成： - 复制文件到 /opt/CLIProxyAPI-cleaner - 生成 web config.json - 根据你的选择设置 HTTP / HTTPS 对应的 CLIPROXY COOKIE SECURE - 安装并启动 cleaner / web / retention timer 详细说明请直接看： MANAGER.md Systemd 手动安装（高级 /","default_branch":null,"files":null,"tree":[],"storefront":"/r/KJ20051223","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/KJ20051223/CLIProxyAPI-cleaner/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}