OpenRouter Setup Guide
How to set up OpenRouter for Natural Commands
OpenRouter Setup Guide
This guide will walk you through setting up OpenRouter for use with Natural Commands.
What is OpenRouter?
OpenRouter is a unified API that provides access to various AI models from different providers. It allows you to use models from Anthropic, OpenAI, and other providers through a single API.
Getting Started
1. Create an Account
- Visit OpenRouter
- Click "Sign Up" or "Get Started"
- Create an account using your email or GitHub
2. Get Your API Key
- After signing in, navigate to the API Keys section
- Click "Create Key"
- Give your key a descriptive name (e.g., "Natural Commands")
- Copy the generated API key
3. Configure Natural Commands
- Open your server's
plugins/NaturalCommands/config.yml
file - Paste your API key into the
open_router_token
field:
Available Models
OpenRouter provides access to various AI models. Here are some recommended models for Natural Commands. View them here. To select a model, click on the clipboard icon to copy the model's id.
Model Selection
To change the model used by Natural Commands:
- Open your
config.yml
file - Update the
open_router_model
field with your preferred model:
You can monitor your usage and credits in the OpenRouter Activity Page.
Additional Resources
Troubleshooting
If you encounter any issues:
- Verify your API key is correct in the config file
- Check your credit balance in the OpenRouter dashboard
- Ensure you're using a supported model
- Check the OpenRouter Status Page for any service issues