> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sphinx.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Secrets

> Securely manage and access sensitive credentials and API keys in your Sphinx notebooks.

## Managing secrets

Secrets can be configured directly in the dashboard, under the "Secrets" page:

<Frame>
  <img src="https://mintcdn.com/sphinx-977f1673/wC59GfGd8cKk-tMQ/configuration/secrets-dashboard.png?fit=max&auto=format&n=wC59GfGd8cKk-tMQ&q=85&s=6251128dd9fd6fcf77b323e75a735772" alt="Secrets configuration page in Sphinx dashboard" width="1367" height="464" data-path="configuration/secrets-dashboard.png" />
</Frame>

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:

```python theme={null}
# Sphinx automatically retrieves the secret value
from sphinxai import get_user_secret_value
secret_password = await get_user_secret_value("secret_name")
```

<Warning>
  Never hardcode sensitive credentials directly in your notebooks. Always use secrets to keep your credentials secure.
</Warning>
