Vault
Vault provides a secure way to store and access sensitive information, such as LLM API keys, without embedding them directly in your code or environment variables. This centralized approach allows all developers to safely share and use the same API key without distributing individual copies.
Key Features
- Secrets Management: Easily create, update, and monitor secrets associated with your applications.
- Secure Access: Retrieve secrets using keys or tags, and integrate them safely into Node.js or Python environments.
Get Started
List of Secrets

- Get a quick overview of all secrets created.
- Navigate to the Vault in tmam.
- 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 tmam.
- 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:
import tmam
response = tmam.get_secrets(
url="http://api.tmam.ai/api/sdk/v1,
api_key="TMAM_API_KEY",
should_set_env=True
)
print(response)
Here’s how you can fetch and set environment secret(s) in Javascript:
import tmam; // Import the tmam SDK
const response = await tmam.getSecrets({
shouldSetEnv: true, // Set the secrets as the environment variables for the application
});
console.log(response); // Print or process the fetched and compiled prompt
Expected outcome
{
err: null,
res: { ANTHROPIC_API_KEY: 'ANTHROPIC_API_VALUE', OPENAI_API_KEY: 'OPENAI_API_VALUE' }
}
SDK Parameters
Below are the parameters for use with the SDK, indicating whether each is required or optional:
Parameter | Description | Required/Optional |
---|---|---|
url | Sets the tmam URL. Defaults to the tmam_URL environment variable. | Required |
apiKey | Sets the tmam API Key. Can also be provided via the tmam_API_KEY environment variable. | Required |
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 |