Skip to content

API Credentials

Credentials are the API keys, tokens, connection strings, and other private values an Agent needs to use external services.

How credentials work

When an Agent executes, SandBase injects its credentials as environment variables. The variables are available to selected APIs and tools but are never written into prompts, logs, or Session history.

Managing credentials

In the Console

Navigate to Agents → [Your Agent] → Credentials to add, edit, or remove private values.

Common Variables

VariableExamplePurpose
GITHUB_TOKENghp_xxxxAuthenticate with GitHub API
DATABASE_URLpostgres://...Connect to a database
SLACK_WEBHOOKhttps://hooks.slack.com/...Post notifications
OPENAI_API_KEYsk-...Call OpenAI directly from a tool

Security

  • Variables are encrypted at rest
  • Only accessible during Agent execution
  • Not visible in run logs or event streams
  • Scoped to a specific Agent (not shared across agents)

Next steps