Configure provider API keys for Agentkube
Agentkube lets you configure custom API keys for various LLM providers to use your own accounts when making AI requests, giving you flexibility and control over your usage and billing.
You can connect your own provider accounts to extend Agentkube’s capabilities beyond the included quota limits.
Custom API keys allow you to send as many AI messages as you want at your own cost, using your preferred LLM providers.
Currently, adding API keys will store them but won’t override the default keys since this feature is under development. Full functionality will be rolled out soon.
~/.agentkube/settings.json
in base64 formatYou can get your own API key from the OpenAI platform.
OpenAI’s reasoning models (o1, o1-mini, o3-mini) require special configuration and are not currently supported with custom API keys.
Similar to OpenAI, you can also set your own Anthropic API key so that you will be using Claude-based models at your own cost.
For Google API keys, you can set your own API key so that you will be using Google models such as gemini-1.5-flash-500k
at your own cost.
You can also set your own Azure API key so that you will be using Azure OpenAI models at your own cost.
You can now connect to AWS Bedrock using access keys and secret keys, and enterprises can authenticate using IAM roles.
To use your own API key:
Settings
> Models
You can also manually edit the keys by modifying the ~/.agentkube/settings.json
file directly.
If you’re having issues with your API keys:
Your API key will not be stored in plain text, but encoded in base64 format in your settings file. It will be sent up to our server with every request. All requests are routed through our backend where we do the final prompt building.
Agentkube only supports API providers that are compatible with the OpenAI API format (like OpenRouter). We do not provide support for custom local LLM setups or other API formats. If you’re having issues with a custom API setup that isn’t from our supported providers, we unfortunately cannot provide technical support.
Currently, Agentkube will prioritize using one API key per provider. You cannot specify different keys for different features within the same provider.
Remember that when using custom API keys, you are responsible for any charges incurred through your provider accounts.