api-provider-setup

api-provider-setup is a skill for Claude Code from aAAaqwq/AGI-Super-Team. It costs 63 tokens per session (2,582 once invoked), scanned A, original, MIT.

A set of instructions for adding third-party API providers to OpenClaw, an agent platform, through custom model endpoints that follow Anthropic- or OpenAI-compatible formats.

In plain words
What is it for?
Configuring API relay services, custom model endpoints, API keys, supported model IDs, protocol compatibility, context windows, output limits, and pricing metadata in OpenClaw.
Why use it?
It explains where the provider settings belong and how to describe the endpoint, authentication, models, context limits, token limits, and costs. This avoids relying on the platform's built-in providers alone.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: built for openclaw.

Part of the agi-super-team plugin — 192 skills, 1 agent shipped together

Good fit Configuring API relay services, custom model endpoints, API keys, supported model IDs…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aaaaqwq/agi-super-team/api-provider-setup
Install

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.

Any agent
npx skills add aAAaqwq/AGI-Super-Team --skill api-provider-setup
Clone the repo
git clone --depth 1 https://github.com/aAAaqwq/AGI-Super-Team

Made for: Claude Code.

Or install agi-super-team, the plugin that ships this one along with the rest of its 192 skills, 1 agent.

Wrote 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.

agentmods badge for api-provider-setup

README.md
[![agentmods](https://agentmods.dev/badge/skills/aaaaqwq/agi-super-team/api-provider-setup.svg)](https://agentmods.dev/skills/aaaaqwq/agi-super-team/api-provider-setup)
Your own site
<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>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,582 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 7d ago against content hash 8a7d704db606, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

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.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/sync-agent-auth.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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" \
skills/api-provider-setup/SKILL.md · 324 lines

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-messagesopenai-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" }

Read the full file on GitHub · 324 lines

Files

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.

Changes

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.

  1. 7d ago First seen · 324 lines · 63 tokens per session scan A 8a7d704db606

Subscribe to this mod's changes

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.

Related

Other skills, from other repositories