add_provider
Add a new AI provider for brainstorming: connect any OpenAI-compatible API or a local CLI that runs on your existing subscription instead of API credits.
Instructions
Add a new AI provider for brainstorming. Supports any OpenAI-compatible API, or a locally installed agent CLI (kind='cli') that runs on an existing subscription instead of API credits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | cli only ('custom' adapter): argv template. Placeholders: {{model}}, {{system}}, {{prompt}}, {{outfile}}. | |
| kind | No | 'api' (default) for an OpenAI-compatible HTTP endpoint, 'cli' for a local agent CLI. | |
| name | Yes | Provider name, e.g. 'groq', 'ollama', 'mistral', 'claude' | |
| adapter | No | cli only: built-in adapter — claude, codex, gemini, qwen, kimi, cursor-agent, opencode, droid — or 'custom'. Defaults to the provider name. | |
| backend | No | cli only: run the Claude CLI against another vendor's coding plan — moonshot, minimax, glm. Overrides 'adapter'. | |
| baseURL | No | api only: base URL, e.g. 'http://localhost:11434/v1' for Ollama | |
| command | No | cli only: executable to run. Required for adapter 'custom'. | |
| promptVia | No | cli only ('custom' adapter): how the prompt reaches the CLI. | |
| apiKeyEnvVar | No | api only: environment variable holding the API key. Use 'NONE' if no key required. | |
| defaultModel | Yes | Default model for this provider, e.g. 'llama3', 'sonnet'. Use 'default' to let a CLI pick its own. |