Skip to content
Development
Skill

/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

From plugin
claude-council
9264 skills1 agent4 commands1 hook

Claude Code

$ npx -y skills add hex/claude-council --skill provider-integration --agent claude-code

SKILL.md

provider-integration.SKILL.md
name: provider-integration
description: 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".

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-6-astra | | Grok | `XAI_API_KEY` (or `GROK_API_KEY`) | grok-latest | | Perplexity | `PERPLEXITY_API_KEY` | low (Agent API preset) | | Kimi | `KIMI_API_KEY` | kimi-k3 | | Ollama | none (local) | first model `ollama list` shows | | OpenRouter | `OPENROUTER_API_KEY` | anthropic/claude-fable-5.1 (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.

Read more
@hex
Ships withclaude-council

Claude Code plugin that asks several AI coding agents the same question and shows their answers side by side. Gemini, OpenAI, Grok, Perplexity, Kimi and any model OpenRouter routes to over API; codex, antigravity, grok, kimi and cursor CLIs on subscription auth; ollama locally. Codex specialists take coding tasks on their own branch (experimental).

9264 skills1 agent
Get the whole plugin

Stars on GitHub

Momentum

stars in total
926
Star history of hex/claude-council on GitHub, a chart by star-history.com

Other skills on claude-council.

council-execution

council-execution

Executes council queries by running the query pipeline across selected AI providers (Gemini, OpenAI, Grok, Perplexity),…

@hex@hexInstall Skill
deep-execution

deep-execution

Executes agent-enhanced council queries as one Workflow of parallel Claude analyst agents that each query a provider, evaluate…

@hex@hexInstall Skill
local-council-execution

local-council-executio…

Runs a local council when no external AI providers are configured. Spawns N independent Claude subagents (one per role, blind to…

@hex@hexInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills10d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc12d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react1d252k
@facebook@facebookInstall Skill

Questions about provider-integration.

Which coding agents can use provider-integration?
provider-integration installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.