Documentation Index
Fetch the complete documentation index at: https://docs.castari.com/llms.txt
Use this file to discover all available pages before exploring further.
cast secrets
Manage secrets for your agents. Secrets are injected as environment variables when the agent runs.cast secrets list
List all secrets for an agent.Usage
Example
Output
Secret values are never displayed. Only the keys and creation dates are shown.
cast secrets set
Set a secret for an agent.Usage
Arguments
| Argument | Description |
|---|---|
slug | Agent slug |
key | Secret name (uppercase recommended) |
value | Secret value |
Examples
Output
Interactive Mode
To avoid exposing secrets in shell history:cast secrets delete
Delete a secret from an agent.Usage
Example
Output
Using Secrets in Agents
Secrets are available as environment variables in your agent code:Built-in Secrets
Castari automatically provides these environment variables:| Variable | Description |
|---|---|
ANTHROPIC_API_KEY | Your Anthropic API key (for Claude) |
Best Practices
- Use uppercase names —
DATABASE_URLnotdatabase_url - Don’t commit secrets — Never put secrets in your agent code or git
- Use descriptive names —
STRIPE_SECRET_KEYnotKEY1 - Rotate regularly — Update secrets periodically for security
See Also
- Secrets Concept — How secrets work
- cast deploy — Deploy with secrets