返回顶部
t

token-config-checker令牌配置检测器

批量检测 token / auth JSON 配置文件有效性,并可对 access token 做在线轻量探测,自动输出脱敏报告。适用于排查 Codex/OpenAI/OpenAI 兼容客户端导出的登录配置、会话凭据文件、token 缓存文件。支持把配置分为 valid / no_quota / invalid 三类并分别保存。 Also validates token/auth JSON files such as Codex/OpenAI/OpenAI-compatible exported session configs, supports online probing, redacted reports, and saving valid / no_quota / invalid configs into separate directories.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.1.4
安全检测
已通过
109
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

token-config-checker

token-config-checker

简体中文 | English



简体中文

用于检测包含 accesstoken / refreshtoken / id_token 的 JSON 配置文件是否还有效。

提供内容

  • - scripts/checktokenconfigs.py:基础版,支持离线检测和可选在线探测
  • scripts/checktokenconfigs_plus.py:增强版,支持脱敏输出、失败原因分类、三分类保存、写入报告文件

快速用法

检测单个文件

bash python3 scripts/checktokenconfigs.py /path/to/file.json

批量检测目录

bash python3 scripts/checktokenconfigs.py /path/to/dir

在线探测 access_token

bash python3 scripts/checktokenconfigs.py /path/to/file.json --probe

增强版:按 valid / no_quota / invalid 三分类保存

bash python3 scripts/checktokenconfigs_plus.py ./tokens \ --probe \ --probe-url https://api.openai.com/v1/models \ --save-valid-dir ./valid_configs \ --save-no-quota-dir ./noquotaconfigs \ --save-invalid-dir ./invalid_configs \ --group-by-type \ --out report.txt

输出重点

  • - validoffline:离线结构和过期时间是否正常
  • onlinevalid:在线探测是否通过
  • failureclass:失败分类,例如 tokenexpired / onlineinvalidorrevoked
  • bucket:最终分类(valid / noquota / invalid)

注意事项

  • - 这类配置文件非常敏感,不要分享原始文件。
  • 对 Codex 配置,在线结果通常比离线判断更重要。
  • 默认探测地址使用 OpenAI 官方接口;如果你使用私有中转或自定义面板,请手动传入 --probe-url。
  • 建议开启 --out 输出报告,便于复查。

English

Use this skill to validate JSON config files containing accesstoken / refreshtoken / id_token.

Included scripts

  • - scripts/checktokenconfigs.py: basic version with offline checks and optional online probing
  • scripts/checktokenconfigs_plus.py: enhanced version with redacted output, failure classification, three-bucket saving, and report generation

Quick usage

Check one file

bash python3 scripts/checktokenconfigs.py /path/to/file.json

Batch scan a directory

bash python3 scripts/checktokenconfigs.py /path/to/dir

Online probe access_token

bash python3 scripts/checktokenconfigs.py /path/to/file.json --probe

Enhanced: save configs into valid / no_quota / invalid buckets

bash python3 scripts/checktokenconfigs_plus.py ./tokens \ --probe \ --probe-url https://api.openai.com/v1/models \ --save-valid-dir ./valid_configs \ --save-no-quota-dir ./noquotaconfigs \ --save-invalid-dir ./invalid_configs \ --group-by-type \ --out report.txt

Key outputs

  • - validoffline: whether the file looks structurally valid offline
  • onlinevalid: whether online probing succeeded
  • failureclass: failure reason classification
  • bucket: final bucket (valid / noquota / invalid)

Notes

  • - These files are highly sensitive. Do not share raw configs.
  • For Codex-style configs, online probe results are usually more important than offline checks.
  • Default probe target uses the OpenAI official endpoint; if you use a private relay or custom panel, pass your own --probe-url explicitly.
  • Prefer --out to generate a reusable report.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 token-config-checker-1776057841 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 token-config-checker-1776057841 技能

通过命令行安装

skillhub install token-config-checker-1776057841

下载

⬇ 下载 token-config-checker v1.1.4(免费)

文件大小: 11.28 KB | 发布时间: 2026-4-14 14:07

v1.1.4 最新 2026-4-14 14:07
Make code defaults public-safe by using OpenAI official probe URL by default and remove private endpoint references from docs and code.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部