Skip to main content

Setting secrets on deploy

Pass secrets when you deploy:
To set additional secrets after deploy:

Updating secrets

Update secrets on a running agent:

Auto-injected variables

The platform automatically injects these into your agent’s environment at runtime:
  • LIVEKIT_URL
  • LIVEKIT_API_KEY (your Telnyx API key — used for both platform auth and model access)
  • LIVEKIT_API_SECRET
You don’t need to set these manually. Note: LIVEKIT_API_KEY is your Telnyx API key. Telnyx can revoke it if needed, giving you a single credential to manage.

Local development

For local development, use a .env.local file:
Secrets set via the CLI are encrypted at rest and injected at runtime. They cannot be retrieved after being set.