llm_setup
Manage API providers and routing hooks for your AI tasks. Check status, add keys, test endpoints, or install auto-routing.
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 |