Skip to content
FunCoding

provider-integration

Adds new AI providers to claude-council, configures provider API settings, troubleshoots provider connections, and documents the provider script interface. Covers creating provider shell scripts, setting API keys, and validating connectivity. Triggers on "add provider", "new AI agent", "provider not working", "API configuration", or "extend council".

Star
972
Category
Other
License
MIT
Last commit
Nov 30, 2026

skills/provider-integration/SKILL.md

View on GitHub

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

ProviderAPI Key VariableDefault Model
GeminiGEMINI_API_KEYgemini-flash-latest
OpenAIOPENAI_API_KEYgpt-6.2-astra
GrokXAI_API_KEY (or GROK_API_KEY)grok-latest
PerplexityPERPLEXITY_API_KEYlow (Agent API preset)
KimiKIMI_API_KEYkimi-k3
Ollamanone (local)first model ollama list shows
OpenRouterOPENROUTER_API_KEYanthropic/claude-fable-5.2 (or one seat per OPENROUTER_MODELS entry)

CLI providers (codex, antigravity, grok-cli, kimi-cli, cursor-cli) need no key: they are discovered when their binary is on PATH and use that CLI's own login. claude-cli, copilot-cli and opencode are the exceptions: claude is on every user's PATH, each copilot question spends a premium request, and each opencode question bills whichever provider it is logged in to, so none has a discovery arm and each joins only when named in --providers or COUNCIL_PROVIDERS. See scripts/providers/kimi-cli.sh and cursor-cli.sh for the headless-run pattern: a read-only mode, a JSON output format the answer is parsed from, --model only on an explicit *_CLI_MODEL override, and run_with_deadline in place of the API providers' retry. A CLI that times out or fails reports through cli_failure_message in scripts/lib/cli-stderr.sh: the timeout, or the last 500 bytes of the CLI's stderr with colour codes stripped.

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.

Similar Skills

claude-handoff

MAmattpocock/skills337k4,217 new stars in the last 7 days

software-factory

MAmattpocock/skills337k4,217 new stars in the last 7 days

agent-payment-x402

AFaffaan-m/ECC315k3,503 new stars in the last 7 days

agent-self-evaluation

AFaffaan-m/ECC315k3,503 new stars in the last 7 days

bengali-nlp

AFaffaan-m/ECC315k3,503 new stars in the last 7 days

ponytail-gain

DIDietrichGebert/ponytail203k4,226 new stars in the last 7 days