Abacus Secrets
Abacus Secrets are secure key-value pairs stored at the organization level that allow you to safely store sensitive information like API keys, passwords, database credentials, and other confidential data. These secrets can be accessed in your Python functions, notebooks, and other code running on the Abacus.AI platform without exposing the actual values in your code.
Creating a Secret​
You can create a secret either by navigating to the Abacus.AI platform's secrets management section:
- Navigate to abacus.ai
- Click on "Manage Profile" on the top right menu
- Click on "Secrets


Or by using the Python SDK directly:
from abacusai import ApiClient
client = ApiClient()
# Create a basic organization secret
secret = client.create_organization_secret(
secret_key="my_api_key",
value="sk-1234567890abcdef",
)
Using the Secret Key​
After you create your secret key, you can use it directly in your python code:
secret = client.get_organization_secret(secret_key="my_secret_key")
Secrets can be used inside any of the Abacus.AI SDK functions to authenticate your requests:
- AI Workflows
- Tools
- Modules
- Custom Python Models