- 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
2.0 KiB
2.0 KiB
name, description, version
| name | description | version |
|---|---|---|
| openrouter-config | 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. | 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
- API Key Setup: Securely configures the OpenRouter API key
- Model Configuration: Sets the default OpenRouter model (arcee-ai/trinity-mini:free)
- Provider Configuration: Ensures Claude Code uses OpenRouter exclusively
- Configuration Verification: Validates that the configuration is working correctly
Quick Commands
# 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
- User requests: "Configure OpenRouter for Claude Code"
- Skill prompts for API key
- Skill updates configuration file
- Skill verifies configuration
- User can now use Claude Code with OpenRouter