API Keys
Configure OpenRouter API keys for AI features. Connect your OpenRouter account to power the AI Chat Assistant with access to multiple LLM providers including GPT-4, Claude, and others.
What It Does
API key management is the absolute minimum you need to enable AI features:
Manage OpenRouter API keys for LLM integration
Switch between multiple AI models and providers
Add, update, or remove keys without code changes
that's it!
Getting an OpenRouter API Key
The absolute minimum steps to get your API key:
Visit OpenRouter
Go to openrouter.ai and create an account
Sign up or log in
Create a free account or sign into your existing OpenRouter account. Free tier includes generous usage limits.
Generate an API key
Navigate to your OpenRouter dashboard and generate a new API key for your application.
Copy your API key
Copy the generated API key to your clipboard. You'll need this for the next step.
that's it!
Adding Your API Key to KubeMate
The absolute minimum steps to configure your API key in KubeMate:
Navigate to Admin Dashboard
Access to Admin Dashboard from the main menu (requires admin role).
Go to API Keys Management
Find the API Keys section in the Admin Dashboard.
Click "Add API Key"
Start the process to add a new API key to your KubeMate instance.
Provide a name and paste your key
Give your API key a descriptive name like "Production" or "Development" and paste your key from OpenRouter.
Click "Save"
Your API key is securely stored and ready to use. No code changes needed.
that's it!
Technical Details
Multiple LLM Providers
OpenRouter provides access to multiple AI models through a single API. Switch between GPT-4, Claude, and others based on your needs and budget.
Secure Storage
API keys are encrypted at rest using the same Fernet encryption as kubeconfigs. Keys are never exposed in logs or responses.
No Code Changes Required
Add, update, or remove API keys entirely through the Admin Dashboard UI. No configuration file editing or code deployment needed.
Admin Role Required
Only users with admin role can manage API keys. Regular users can use AI features but cannot change configuration.
Testing Your Setup
Test with AI Chat
After adding your API key, try asking a question in the AI Chat Assistant to verify everything is working correctly.
Verify Model Selection
Confirm you can select different LLM models and they're working as expected. OpenRouter supports GPT-4, Claude, and more.
Check Usage Metrics
Monitor your OpenRouter usage in their dashboard to stay within free tier limits or track costs.
Configuration Details
To make things even easier, API key management is integrated into the Admin Dashboard. You can add, update, and remove keys without touching any configuration files or code. All keys are securely stored and managed entirely through the UI.
So you don't need to do anything more to start enabling AI features right now, however take your time reading the information below to get a deeper understanding about how these concepts work.