> ## Documentation Index
> Fetch the complete documentation index at: https://docs.openlit.io/llms.txt
> Use this file to discover all available pages before exploring further.

# LLM API Key Management (Vault)

> Vault securely manages LLM API keys and secrets, then retrieves them at runtime from any application via SDK or API.

Vault is OpenLIT's built-in secrets manager for LLM API keys and other sensitive values. Instead of pasting an API key into every codebase, `.env` file, or teammate's laptop, you store it once in Vault and let any application fetch it at runtime - decoupling key rotation from redeploys.

## What you get

> [card] [Manage Secrets](https://docs.openlit.io/latest/openlit/developer-resources/vault/manage-secrets.md)
>
> Create, edit, tag, and delete secrets from the Vault list page

> [card] [Security](https://docs.openlit.io/latest/openlit/developer-resources/vault/security.md)
>
> Encryption at rest, per-user access, and CORS for browser calls

> [card] [Retrieve Secrets](https://docs.openlit.io/latest/openlit/developer-resources/vault/retrieve-secrets.md)
>
> Fetch secrets into your application with the Python or TypeScript SDK, or the REST API

## Why Vault

Vault has no direct built-in equivalent in most LLM observability tools - typically you're expected to manage API keys yourself, through your own environment variables or a general-purpose secrets manager. OpenLIT centralizes secrets so that any application (not just OpenLIT itself) can fetch them at runtime through the SDK or API. That means rotating a key in Vault takes effect the next time an application fetches it - no restarts or redeploys required.

Vault secrets are also usable directly inside OpenLIT: the Evaluation configuration screen, the Chat settings screen, and OpenGround's provider configuration all let you pick - or create on the spot - a Vault secret as their API key, instead of requiring you to visit the Vault page first.

***

> [card] [Create a dashboard](https://docs.openlit.io/latest/openlit/dashboards/overview.md)
>
> Create custom visualizations with flexible widgets, queries, and real-time AI monitoring

> [card] [Manage prompts](https://docs.openlit.io/latest/openlit/prompts-experiments/prompt-hub/overview.md)
>
> Version, deploy, and collaborate on prompts with centralized management and tracking

> [card] [LLM playground](https://docs.openlit.io/latest/openlit/prompts-experiments/openground/overview.md)
>
> Compare cost, duration, and response tokens across different LLMs to find the most efficient model

## Frequently asked questions

> [accordion] What is Vault used for?
>
> Vault centrally stores secrets like LLM API keys, encrypted at rest with AES-256-GCM, so applications can retrieve them remotely via SDK or API instead of embedding keys in code or environment files.

> [accordion] Can secrets be rotated without redeploying?
>
> Yes. Since applications fetch secrets from Vault at runtime, rotating a key in Vault takes effect on the next fetch - no restarts or redeploys needed.

> [accordion] Is Vault safe to call from a browser?
>
> Vault enforces API-key authentication and CORS. Browser-based cross-origin calls require adding your app's origin to `OPENLIT_ALLOWED_CORS_ORIGINS`; server-to-server calls are unaffected.

> [accordion] Can I change a secret's Key after creating it, or view its Value later?
>
> No to both, by design. A secret's Key becomes read-only once it's created - you'd need to create a new secret under a different Key instead. The Value is write-only: it's never sent back to the browser, so the Value field is always blank when you open a secret to edit it. Leave it blank to keep the existing value, or type a new one to overwrite it.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.