--- name: openrouter-config description: Use this skill when the user asks to "configure OpenRouter", "set up OpenRouter API key", "enable OpenRouter as AI provider", "configure OpenRouter in Claude Code", "set OpenRouter model", or mentions configuring OpenRouter for Claude Code. version: 1.0.0 --- # OpenRouter Config Skill Helps users configure and enable OpenRouter as the AI provider in Claude Code by setting up the OpenRouter API key, configuring the model, and ensuring Claude Code uses OpenRouter exclusively. ## What It Does 1. **API Key Setup**: Securely configures the OpenRouter API key 2. **Model Configuration**: Sets the default OpenRouter model (arcee-ai/trinity-mini:free) 3. **Provider Configuration**: Ensures Claude Code uses OpenRouter exclusively 4. **Configuration Verification**: Validates that the configuration is working correctly ## Quick Commands ```bash # The skill will handle all configuration automatically # No manual commands needed ``` ## Usage ``` "Configure OpenRouter with my API key" "Set up OpenRouter as my AI provider" "Enable OpenRouter in Claude Code" "Configure OpenRouter for Claude Code" ``` ## Configuration File Location The skill updates the Claude Code configuration file with: - OpenRouter API key - Default model (arcee-ai/trinity-mini:free) - Provider settings ## Supported Models Default: `arcee-ai/trinity-mini:free` You can configure any other OpenRouter model by modifying the configuration. ## Security Notes - The skill handles API keys securely - Stores credentials with appropriate file permissions - Follows best practices for credential management ## Troubleshooting If you encounter issues: - Verify your API key is correct - Check configuration file permissions - Ensure Claude Code has write access to configuration directory - Test with a simple query to verify the connection ## Example Workflow 1. User requests: "Configure OpenRouter for Claude Code" 2. Skill prompts for API key 3. Skill updates configuration file 4. Skill verifies configuration 5. User can now use Claude Code with OpenRouter