If your organization uses teams, secrets are scoped to individual teams.
Models, Chains, and training projects deployed to a team can only access that team’s secrets.
Create a secret
- Baseten CLI
- UI
Create a secret with For a team-scoped secret, pass List and delete secrets with
baseten org secret set:--team:baseten org secret list and baseten org secret delete:- Non-alphanumeric characters are normalized (for example,
hf_access_tokenandhf-access-tokenare treated as the same name). - Editing a secret’s value overwrites the previous value.
- Changes take effect immediately for all deployments using the secret.
Use secrets in your model
To use secrets in your Truss model, see Secrets.Security recommendations
- Create secrets through the Baseten CLI or dashboard, not in code.
- Use descriptive names that indicate the secret’s purpose.
- Rotate secrets periodically by updating the value.
- Delete unused secrets to reduce exposure risk.