provider-integration

provider-integration is a skill for Claude Code, Codex from hex/claude-council. It costs 74 tokens per session (461 once invoked), scanned A, original, MIT.

A skill for adding AI providers to the claude-council plugin and checking their connections. It explains how provider scripts accept a question, return an AI response, and use API keys or a local Ollama model.

In plain words
What is it for?
Use it to add a provider, configure its API key, create or adjust its shell script, test connectivity, and troubleshoot authentication, rate-limit, model, or response-format problems.
Why use it?
It removes the guesswork from connecting another AI service or diagnosing why an existing provider is unavailable.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Part of the claude-council plugin — 4 skills, 4 commands, 1 agent, 1 hook shipped together

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.

agentmods
npx agentmods add skills/hex/claude-council/provider-integration
Any agent
npx skills add hex/claude-council --skill provider-integration
Clone the repo
git clone --depth 1 https://github.com/hex/claude-council

Made for: Claude Code, Codex.

Or install claude-council, the plugin that ships this one along with the rest of its 4 skills, 4 commands, 1 agent, 1 hook.

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 provider-integration

README.md
[![agentmods](https://agentmods.dev/badge/skills/hex/claude-council/provider-integration.svg)](https://agentmods.dev/skills/hex/claude-council/provider-integration)
Your own site
<a href="https://agentmods.dev/skills/hex/claude-council/provider-integration"><img src="https://agentmods.dev/badge/skills/hex/claude-council/provider-integration.svg" alt="Measured on agentmods" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 461 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00074 $0.00461
Opus 5 $0.00037 $0.00230
Sonnet 5 $0.00015 $0.00092
Haiku 4.5 $0.00007 $0.00046

Measured yesterday against content hash e80541030f87, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

provider-integration scanned grade A with 0 findings 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 yesterday.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/provider-integration/SKILL.md · 43 lines

What it actually says

Adding AI Providers to Claude Council

Provider Script Interface

Each provider is a shell script in scripts/providers/ that:

  1. Accepts a prompt as the first argument
  2. Outputs the AI response to stdout
  3. Exits 0 on success, non-zero on failure

Quick Start

  1. Create scripts/providers/{name}.sh (see api-patterns.md for templates)
  2. chmod +x scripts/providers/{name}.sh
  3. Set {NAME}_API_KEY environment variable
  4. Test: ./scripts/providers/{name}.sh "Hello"

Current Providers

Provider API Key Variable Default Model
Gemini GEMINI_API_KEY gemini-flash-latest
OpenAI OPENAI_API_KEY gpt-5.6-sol
Grok XAI_API_KEY (or GROK_API_KEY) grok-latest
Perplexity PERPLEXITY_API_KEY sonar-reasoning-pro
Kimi KIMI_API_KEY kimi-k3
Ollama none (local) first model ollama list shows
OpenRouter OPENROUTER_API_KEY anthropic/claude-sonnet-5 (or one seat per OPENROUTER_MODELS entry)

Troubleshooting

  • Not discovered: Check API key is set and script is executable
  • API errors: Verify key, check rate limits, confirm model name
  • Parse fails: Add echo "$RESPONSE" to debug, check response format

Reference

For API patterns and code templates, see api-patterns.md in this directory.

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. yesterday Changed · +1 lines e80541030f87
  2. 6d ago First seen · 42 lines · 74 tokens per session scan A 798bbb3e78d2

Subscribe to this mod's changes

provider-integration is a skill published in the GitHub repository hex/claude-council (697 stars, last pushed today), licensed MIT. It adds 74 tokens to every session and 461 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.