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

Vault
  1. Get a quick overview of all secrets created.
  2. Navigate to the Vault in tmam.
  3. Explore the available secrets listed.

Create or Edit a secret

Vault add
  1. Build new secret with ease.
  2. Click on + New to create a new secret
  3. 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.

  1. Navigate to the API Keys page.
  2. Click on Create API Key.
  3. Enter a name for your API key.
  4. 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:

ParameterDescriptionRequired/Optional
urlSets the tmam URL. Defaults to the tmam_URL environment variable.Required
apiKeySets the tmam API Key. Can also be provided via the tmam_API_KEY environment variable.Required
keySets the key to fetch a specific secret.Optional
tagsSets the tags for fetching only the secrets that have the mentioned tags assigned.Optional
shouldSetEnvBoolean value that sets all the secrets as environment variables for the application.Optional