From 533c817b53f9d29642dfd025003d172846ccde78 Mon Sep 17 00:00:00 2001 From: Z User Date: Sun, 22 Feb 2026 12:57:09 +0000 Subject: [PATCH] Add OpenRouter Config skill - Add README.md with user-facing documentation - Add SKILL.md with skill metadata and instructions - Configure OpenRouter as AI provider for Claude Code - Support arcee-ai/trinity-mini:free model by default --- skills/openrouter-config/README.md | 53 +++++++++++++++++++++++ skills/openrouter-config/SKILL.md | 67 ++++++++++++++++++++++++++++++ 2 files changed, 120 insertions(+) create mode 100644 skills/openrouter-config/README.md create mode 100644 skills/openrouter-config/SKILL.md diff --git a/skills/openrouter-config/README.md b/skills/openrouter-config/README.md new file mode 100644 index 0000000..d1bee05 --- /dev/null +++ b/skills/openrouter-config/README.md @@ -0,0 +1,53 @@ +# OpenRouter Config Skill + +## Description +This skill helps users configure and enable OpenRouter as the AI provider in Claude Code. It sets up the OpenRouter API key, configures the model, and ensures Claude Code uses OpenRouter exclusively. + +## Usage +To use this skill, simply ask Claude Code to configure OpenRouter. The skill will: +1. Set up your OpenRouter API key +2. Configure the default model (arcee-ai/trinity-mini:free) +3. Ensure Claude Code uses OpenRouter exclusively +4. Update the configuration file + +## Prerequisites +- An OpenRouter API key +- Claude Code installed + +## Configuration Steps +1. The skill will prompt you for your OpenRouter API key +2. It will update the Claude Code configuration file +3. It will verify the configuration is working +4. It will provide instructions for testing + +## Supported Models +The skill configures the following model by default: +- arcee-ai/trinity-mini:free + +You can change this to any other OpenRouter model if needed. + +## Security +The skill handles your API key securely and stores it in the Claude Code configuration file with appropriate permissions. + +## Troubleshooting +If you encounter issues: +- Check that your API key is correct +- Verify the configuration file has been updated +- Ensure Claude Code has the necessary permissions +- Contact support if problems persist + +## Related Skills +- API Key Management +- Provider Configuration +- Model Selection + +## Example Commands +- "Configure OpenRouter with my API key" +- "Set up OpenRouter as my AI provider" +- "Enable OpenRouter in Claude Code" + +## Notes +- This skill only works with Claude Code +- It requires write access to the configuration file +- The skill ensures OpenRouter is used exclusively +- You can revert to other providers by modifying the configuration manually \ No newline at end of file diff --git a/skills/openrouter-config/SKILL.md b/skills/openrouter-config/SKILL.md new file mode 100644 index 0000000..7f092f8 --- /dev/null +++ b/skills/openrouter-config/SKILL.md @@ -0,0 +1,67 @@ +--- +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 \ No newline at end of file