Skip to main content

Managing secrets

Secrets can be configured directly in the dashboard, under the “Secrets” page:
Secrets configuration page in Sphinx dashboard
Once secrets are created, they will automatically be available across all platforms (VSCode Extension, CLI, Horus).

Using secrets

When you need to access a secret in your notebook, Sphinx will execute code that will retrieve them securely:
# Sphinx automatically retrieves the secret value
from sphinxai import get_user_secret_value
secret_password = await get_user_secret_value("secret_name")
Never hardcode sensitive credentials directly in your notebooks. Always use secrets to keep your credentials secure.