Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add aAAaqwq/AGI-Super-Team --skill api-provider-setupgit clone --depth 1 https://github.com/aAAaqwq/AGI-Super-TeamWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/aaaaqwq/agi-super-team/api-provider-setup)<a href="https://agentmods.dev/skills/aaaaqwq/agi-super-team/api-provider-setup"><img src="https://agentmods.dev/badge/skills/aaaaqwq/agi-super-team/api-provider-setup.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00063 | $0.02582 |
| Opus 5 | $0.00032 | $0.01291 |
| Sonnet 5 | $0.00013 | $0.00516 |
| Haiku 4.5 | $0.00006 | $0.00258 |
Grade A, and why
api-provider-setup scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
curl -X POST "https://your-api-endpoint/v1/messages" \ How it starts
The opening of the file, as written. The whole thing — 324 lines — stays where its author put it; the contents beside it link to each section on GitHub.
API Provider Setup
为 OpenClaw 添加和配置第三方 API 中转站供应商。
配置位置
配置文件:~/.openclaw/openclaw.json
在 models.providers 部分添加自定义供应商。
配置模板
Anthropic 兼容 API(如 anapi、智谱)
{
"models": {
"mode": "merge",
"providers": {
"供应商名称": {
"baseUrl": "https://api.example.com",
"apiKey": "sk-your-api-key",
"auth": "api-key",
"api": "anthropic-messages",
"models": [
{
"id": "model-id",
"name": "显示名称",
"reasoning": false,
"input": ["text"],
"contextWindow": 200000,
"maxTokens": 8192,
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0
}
}
]
}
}
}
}
OpenAI 兼容 API(如 OpenRouter)
{
"models": {
"mode": "merge",
"providers": {
"供应商名称": {
"baseUrl": "https://api.example.com/v1",
"apiKey": "sk-your-api-key",
"auth": "api-key",
"api": "openai-completions",
"models": [
{
"id": "gpt-4",
"name": "GPT-4",
"reasoning": false,
"input": ["text"],
"contextWindow": 128000,
"maxTokens": 4096
}
]
}
}
}
}
关键字段说明
| 字段 | 必填 | 说明 |
|---|---|---|
baseUrl |
✅ | API 端点地址(不含 /v1/messages 等路径) |
apiKey |
✅ | API 密钥 |
auth |
✅ | 认证方式,通常为 api-key |
api |
✅ | API 格式:anthropic-messages 或 openai-completions |
models |
✅ | 该供应商支持的模型列表 |
models[].id |
✅ | 模型 ID(调用时使用) |
models[].name |
❌ | 显示名称 |
models[].contextWindow |
❌ | 上下文窗口大小 |
models[].maxTokens |
❌ | 最大输出 token 数 |
models[].reasoning |
❌ | 是否支持推理模式 |
添加模型别名
在 agents.defaults.models 中添加别名:
{
"agents": {
"defaults": {
"models": {
"供应商/模型id": {
"alias": "简短别名"
}
}
}
}
}
⚠️ 重要约束:
alias字段必须是字符串,不能是数组!// ✅ 正确 "alias": "opus46" // ❌ 错误 - 会导致 Config validation failed "alias": ["opus46", "<provider>/model"]如果需要多个别名指向同一模型,需要在
models中添加多条记录:"供应商/模型id": { "alias": "别名1" }
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 7d ago First seen · 324 lines · 63 tokens per session scan A 8a7d704db606
api-provider-setup is a skill published in the GitHub repository aAAaqwq/AGI-Super-Team (91 stars, last pushed 2d ago), licensed MIT. It adds 63 tokens to every session and 2,582 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
testing-service-contracts
Use when testing service contracts is required during quality work, especially when the result must be traceable, independently reviewable, and safe to hand to another agent.
testing-service-resilience
Use when testing service resilience is required during quality work, especially when the result must be traceable, independently reviewable, and safe to hand to another agent.
designing-api-deprecation
Use when designing api deprecation is required during api-products product work, especially when the result must be traceable, independently reviewable, and safe to hand to another agent.
designing-api-developer-portal
Use when designing api developer portal is required during api-products product work, especially when the result must be traceable, independently reviewable, and safe to hand to another agent.
designing-api-idempotency
Use when designing api idempotency is required during api-products product work, especially when the result must be traceable, independently reviewable, and safe to hand to another agent.
designing-api-rate-limits
Use when designing api rate limits is required during api-products product work, especially when the result must be traceable, independently reviewable, and safe to hand to another agent.