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.
List of Secrets
Get a quick overview of all secrets created.
Create or Edit a secret
Build new secret with ease.
Retrieve the secret(s)
Create an API Key
To authenticate your requests, you need an API key. Here’s how you can create one:
Get secret(s) using the SDK
Here’s how you can fetch and set environment secret(s) in Python:
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 |
Here’s how you can fetch and set environment secret(s) in Python:
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 |
Here’s how you can fetch and compile a prompt in Typescript/Javascript:
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 or http://127.0.0.1:3000 if not set. |
apiKey | 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 |
tags | Sets the tags for fetching only the secrets that have the mentioned tags assigned. Optional |
shouldSetEnv | Boolean value that sets all the secrets as environment variables for the application. Optional |
To retrieve the secret via an API request, Refer to the GET Secret(s) API Reference Documentation.
Integrate your AI Stack with OpenLIT
Connect to your existing Observablity Stack