Vault
Store and access sensitive information like LLM API keys securely
Vault is designed to securely store and access sensitive information, such as API keys (e.g., OPENAI_API_TOKEN
), eliminating the need to directly embed them in your code or environment variables. This centralized approach ensures that all developers can securely share and use the same API key without the necessity of distributing individual keys.
Key Features
- Secrets Management: Seamlessly create, edit, and monitor the secrets associated with your applications.
- Secure Access: Retrieve secrets based on keys or tags, and safely integrate them into your Node.js or Python environments.
Get Started
List of Secrets
Get a quick overview of all secrets created.
- Navigate to the Vault in OpenLIT.
- Explore the available secrets listed.
Create or Edit a secret
Build new secret with ease.
- Click on + New to create a new secret
- In the secret form, add the secret key, secret value and add tags to easily manage and access the secrets via sdk.
Retrieve the secret(s)
Create an API Key
To authenticate your requests, you need an API key. Here’s how you can create one:
- Go to the OpenLIT.
- Navigate to the API Keys page.
- Click on Create API Key.
- Enter a name for your API key.
- Save the API key displayed. Ensure you store it securely as it will be used for authentication in the SDK.
Get secret(s) using the SDK
Here’s how you can fetch and set environment secret(s) in Python:
SDK Parameters
Below are the parameters for use with the SDK, formatted to indicate whether each is required or optional:
Parameter | Description |
---|---|
url | Sets the Openlit URL. Defaults to the OPENLIT_URL environment variable. |
api_key | Sets the OpenLIT API Key. Can also be provided via the OPENLIT_API_KEY environment variable. |
key | Sets the key to fetch a specific secret. Optional |
should_set_env | Boolean value that sets all the secrets as environment variables for the application. Optional |
tags | Sets the tags for fetching only the secrets that have the mentioned tags assigned. Optional |
Was this page helpful?