llm_setup
Configure API keys, install auto-routing hooks, and manage provider connections for intelligent LLM routing. Set up credentials, test endpoints, and enable automated model selection across 20+ AI providers.
Instructions
Set up and manage API providers, hooks, and routing enforcement.
Actions:
- "status": Show which providers are configured and which are missing
- "guide": Step-by-step guide to add recommended free/cheap providers
- "discover": Scan for existing API keys in environment (safe, read-only)
- "add": Add an API key for a provider (writes to .env file securely)
- "test": Validate API keys with a minimal call (tests configured or specific provider)
- "provider": Show details about a specific provider
- "install_hooks": Install auto-routing hooks globally (every Claude Code session)
- "uninstall_hooks": Remove auto-routing hooks
Args:
action: What to do — "status", "guide", "discover", "add", "test", "provider", "install_hooks", or "uninstall_hooks".
provider: Provider name (for "add", "test", and "provider" actions).
api_key: API key value (for "add" action only). Key is validated before saving.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | status | |
| provider | No | ||
| api_key | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |