Virtual Keys
Obiguard’s virtual key system lets you securely store your LLM API keys in our vault and manage them easily using a unique virtual identifier.
This feature offers several advantages:
- Simplified key rotation
- Ability to create multiple virtual keys linked to a single API key
- Flexible restrictions based on cost, request volume, or user access
You can manage these options in your account under the Virtual Keys tab.
Creațing a Virtual Key
To set up a virtual key, follow these instructions:
- Go to the Virtual Keys tab in your Obiguard sidebar.
- Select Create.
- Enter a unique name to your key, select the guardrail policy to apply on this key, choose your AI provider, and specify any usage details if necessary. If your AI provider is not listed, you can select Local/Privately hosted provider and enter the API endpoint URL.
How are the provider API keys stored?
Your API keys are encrypted and stored in secure vaults, accessible only during a request. Decryption happens solely within isolated workers and only when required, providing maximum data security.
How are provider keys associated with virtual keys?
Virtual keys are generated randomly and mapped to the securely stored provider keys. This ensures that your original API keys cannot be derived or reconstructed from the virtual keys.
Using Virtual Keys
Using the Obiguard SDK
Add the virtual key to the Obiguard Python SDK initialization configuration.
Using the OpenAI SDK
Add the virtual key directly to the initialization configuration for the OpenAI client.
Using cURL
Add the virtual key directly to the request headers of your API call.