Environment variables

Environment variables

AI

Environment variables are named settings, such as API keys or web addresses, stored outside an app's code so they can change by environment without editing it.

What is Environment variables?

Software usually runs in more than one place: a developer's computer, a test environment and the live (production) one. Each needs slightly different settings, such as which database to use, which phone number to call from or which API key to send. Environment variables hold those settings outside the code. Typical environment variables: - API keys and other secrets. - Web addresses of connected services. - Feature switches, such as turning call recording on in test only. - The phone number or account an agent should use in each environment. Why they matter: - Security: secrets stay out of the code, so they are not shared by accident. - Safety: the test agent cannot call real customers if its settings point somewhere harmless. - Simplicity: one version of the code runs everywhere with different settings. In voice agent platforms, you may see environment variables or similar settings used to keep a test agent and a live agent apart, or to store the keys an agent uses for outside systems. Common mistakes: pasting secrets into instructions or code, using live keys during testing and forgetting to update a key in every environment after rotating it.

Example

A team's test voice agent and live voice agent share the same setup. An environment variable points the test one at a sandbox calendar, so test bookings never appear on real staff calendars.

Why Environment variables Matters

They keep secrets safe and keep tests away from real customers. They come up whenever developers build or connect AI agents.

Explore More Terms

Browse our complete glossary of e-commerce and subscription terms.

Space, at your fingertips

What would you do with 22% more revenue?