Environments
Environments let you manage separate configurations for different stages of your workflow. Stellar supports three environments:
- Development: For building and debugging your agent with test credentials and development APIs.
- Staging: For pre-production validation with near-production settings.
- Production: For live customer conversations with real credentials.
What is environment-awareโ
The following features support per-environment configuration:
| Feature | What changes per environment |
|---|---|
| API connections | Base URL, auth connector, and headers |
| Auth connectors | Credentials and token endpoints |
| Secrets | API keys and sensitive values |
| Variables | Non-sensitive config values, defined once and reused across agents and actions |
| Connectors | Each connector is assigned to a specific environment |
When a conversation starts, the environment determines which set of values is used for all of these.
How the environment is determinedโ
The environment for a conversation depends on how it was initiated:
| Context | How environment is set |
|---|---|
| Playground | Selected in the environment selector before starting the conversation |
| Phone call | Determined by the connector's environment setting |
| Public link / SDK | Defaults to Production, or set explicitly via the API |
Typical workflowโ
A typical development workflow using environments:
- Configure Development values: Point actions at development APIs, use test API keys, set variables to development values.
- Build and test in Playground: Select the Development environment in the Playground to test with your development configuration.
- Configure Staging values: Set up pre-production credentials and endpoints.
- Validate in Staging: Create a staging connector or use the Playground with the Staging environment to verify everything works with near-production settings.
- Configure Production values: Set live API keys, real endpoints, and production credentials.
- Deploy to Production: Create a production connector to route live customer calls.
Setting up environment valuesโ
API connectionsโ
Navigate to Manage > API connections. When creating or editing an API connection, configure the base URL, auth connector, and headers for each environment.
See API connections for details.
Secretsโ
Navigate to Manage > Secrets. When creating or editing a secret, enter a value for each environment.
See API secrets management for details.
Variablesโ
Navigate to Manage > Variables. When creating or editing a variable, enter a value for each environment.
See Variables for details.
Auth connectorsโ
Navigate to Manage > Auth connectors. Each auth connector has per-environment configuration for its credentials (tokens, client IDs, etc.).
See Authentication connectors for details.
Best practicesโ
- Always configure all three environments for secrets and auth connectors to avoid missing values in production.
- Use test credentials in Development so you can test freely without affecting real systems.
- Test each environment in the Playground before routing live traffic through a connector.
- Keep Production credentials separate from Development and Staging for security isolation.