/agi-super-team:provider-key-managerfrom agi-super-team
Rotates and syncs API keys across multi-agent workspaces by migrating to environment variable references. Audits hardcoded keys, migrates configs, and updates keys with a single command.
Ships in agi-super-team. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
一条命令更换供应商 API Key,全员生效,零遗漏。
OpenClaw 多 agent 架构下,每个 agent 都有独立的 models.json,更换一个 provider key 需要:
openclaw.json 全局配置models.jsonpass 存储一个 key 要改 15+ 处,漏改一个就报错。
OpenClaw 原生支持 ${ENV_VAR} 语法引用环境变量:
// openclaw.json
{
"env": {
"vars": {
"ZAI_API_KEY": "actual-key-value-here"
}
},
"models": {
"providers": {
"zai": {
"apiKey": "${ZAI_API_KEY}", // ← 引用环境变量,不硬编码
"baseUrl": "https://open.bigmodel.cn/api/coding/paas/v4"
}
}
}
}
核心原则:
env.vars 中(单一真相源)apiKey 用 "${ENV_VAR}" 引用models.json 删除 apiKey 字段,继承全局 provider换key, 更换key, provider key, API key 更换, 模型key, key管理, 供应商密钥
python3 ~/clawd/skills/provider-key-manager/scripts/manager.py audit
扫描所有 agent 的 models.json,报告:
${ENV_VAR} 引用的 providerpython3 ~/clawd/skills/provider-key-manager/scripts/manager.py migrate [--provider zai] [--dry-run]
自动执行:
openclaw.json 中的硬编码 key 移入 env.vars"${ENV_VAR}"pass 存储python3 ~/clawd/skills/provider-key-manager/scripts/manager.py update <provider> <new-key> [--base-url <url>]
一条命令完成:
env.vars 中的 keypass 存储python3 ~/clawd/skills/provider-key-manager/scripts/manager.py test <provider>
对指定 provider 发送最小请求,验证 key 有效。
python3 ~/clawd/skills/provider-key-manager/scripts/manager.py status
显示所有 provider 的 key 来源、baseUrl、模型列表。
| Provider | 环境变量 | pass 路径 |
|---|---|---|
| zai | ZAI_API_KEY | api/zai |
| xingjiabiapi | XINGJIABIAPI_KEY | api/xingjiabiapi |
| xai | XAI_API_KEY | api/xai |
| xingsuancode | XINGSUANCODE_KEY | api/xingsuancode |
| moonshot | MOONSHOT_API_KEY | api/kimi |
| minimax | MINIMAX_API_KEY | api/minimax |
| xinyuan | XINYUAN_API_KEY | api/xinyuan |
| boluobao | BOLUOBAO_API_KEY | api/boluobao |
GOOGLE_API_KEY | api/google-ai-studio |
┌─────────────────────────────────┐
│ openclaw.json │
│ ┌───────────────────────┐ │
│ │ env.vars │ │
│ │ ZAI_API_KEY: "xxx" │ ← 单一真相源 (Single Source of Truth)
│ │ XAI_API_KEY: "yyy" │ │
│ └───────────┬───────────┘ │
│ │ ${ZAI_API_KEY} │
│ ┌───────────▼───────────┐ │
│ │ models.providers.zai │ │
│ │ apiKey: "${ZAI_API_KEY}" │
│ │ baseUrl: "https://..." │ │
│ └───────────────────────┘ │
└─────────────────────────────────┘
│ 继承
┌─────────┼─────────┐
▼ ▼ ▼
agent/ agent/ agent/
main/ ops/ code/ ...
models.json models.json
(无 apiKey,继承全局)
manager.py update zai <new-key> → Gateway 重启 → 完成/tmp/provider-key-backup/What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub aaaaqwq/agi-super-team --plugin agi-super-team869 skills in this plugin
/5minbtcBTC 5分钟K线实时方向预测 + 币安预测市场错价套利(paper)。v6.0 真OFI驱动: 方向由当前K线原生 in-candle OFI 净流一票决定(ofi_n=2*(tb/v)-1, REST klines[9] 聚合, 零WS依赖; WS ofi.json 做新鲜度反转保护与交叉校准), 概率=P(close>open|ofi) 经验校准表+Bayesian shrink, edge=EV=p−ask 错价检测, 方向二选一无中性。13因子自v5.9起收敛到3个有证据信号且不再决定bias。黑天鹅防护: ATR spike+FNG<25。launchd 常驻 realtime/watch/trader。⚠️ Binance 端点**人工**双向切换(引擎为单端点硬依赖,无自动故障切换;2026-09-11 曾因 data-api SSL 失败静默断档 6h)。/sales-enablementWhen the user wants to create sales collateral, pitch decks, one-pagers, objection handling docs, or demo scripts. Also use when the user mentions 'sales deck,' 'pitch deck,' 'one-pager,' 'leave-behind,' 'objection handling,' 'deal-specific ROI analysis,' 'demo script,' 'talk track,' 'sales playbook,' 'proposal template,' 'buyer persona card,' 'help my sales team,' 'sales materials,' or 'what should I give my sales reps.' Use this for any document or asset that helps a sales team close deals. For competitor comparison pages and battle cards, see competitor-alternatives. For marketing website copy, see copywriting. For cold outreach emails, see cold-email./accessibility-compliance-accessibility-auditYou are an accessibility expert specializing in WCAG compliance, inclusive design, and assistive technology compatibility. Conduct audits, identify barriers, and provide remediation guidance.Other plugins' skills for the same job