GenAIKeys
Secure API key management for Generative AI applications, backed by Azure Key Vault, AWS Secrets Manager, and Google Secret Manager.
Why GenAIKeys?
- One API across clouds — swap providers without touching application code.
- Keyless authentication by default — Managed Identity, IAM roles, ADC.
- Built-in TTL cache — fewer vault calls, lower bills.
- Convenience helpers for OpenAI, Anthropic, and Gemini keys.
- Pluggable — bring your own backend in a few lines.
Install
pip install genaikeys # Azure (default)
pip install "genaikeys[aws]"
pip install "genaikeys[gcp]"
pip install "genaikeys[all]"
Quick start
from genaikeys import GenAIKeys
sk = GenAIKeys.azure()
api_key = sk.get_openai_key()
Documentation
- Configuration & authentication — per-provider setup for Azure, AWS, GCP.
- CLI — populate
.envfiles from a vault. - Custom backends — implement your own secret store.
- Logging — enable, disable, route to a custom handler.