Concepts
Environment configuration
Manage environment variables and secrets for each stage of your application.
Environments
Every project in qtrl has four environments: development, test, staging, and production. Each environment has its own set of variables and secrets. When you create a task or start a test run, you pick which environment to run against, and the AI agent uses that environment's configuration.
You can set a default environment in your project settings. This pre-selects the environment when creating tasks, though you can always override it per task.
Standard settings
Open your project's Settings tab and pick an environment. At the top you'll find three standard fields that most projects need. Each one shows whether it's set, so you can see at a glance what's missing.
- App URL (
BASE_URL): the page the agent opens first. It must be a full URL such ashttps://staging.example.com. Without it, the agent doesn't know where to start unless your task description includes a URL. - Username (
USERNAME): the account the agent logs in with. Stored as a variable, so you can see and edit it. - Password (
PASSWORD): stored as a secret (see below).
Leave a field empty if you don't need it. Empty values are never saved.
Environment variables
Variables are key-value pairs that the AI agent can read during test execution. Besides the standard fields, you can add your own under Additional variables and secrets. Each environment has its own independent set.
Variable keys must be uppercase. If you type a lowercase key, it gets converted automatically. Saving a variable with a key that already exists replaces its value.
Secrets
Secrets work like variables but are designed for sensitive data: test account passwords, API tokens, and anything you don't want visible in the UI after creation.
The key difference: once you create a secret, its value is encrypted and can never be viewed again. The settings page shows the secret's key with a masked value (********). If you need to update a secret, delete the old one and create a new one.
During test execution, the AI agent can access both variables and secrets. From the agent's perspective, they work the same way. The distinction is purely about visibility in the UI and storage security.
Common setup
A typical project fills in the standard fields for each environment, for exampleBASE_URL set to http://localhost:3000 in development, https://staging.example.com in staging, and https://example.com in production, plus a dedicated test account in USERNAME and PASSWORD.
Testing with more than one user? Add a username variable and a password secret per user, such as ADMIN_USERNAME and ADMIN_PASSWORD, then mention that user in your task ("log in as the admin user").
Other examples: an API_VERSION variable if your app has versioned endpoints, or an API_TOKEN secret if your app requires authentication tokens.
Who can manage environments
Environment configuration is available to organization owners, admins, and project admins. Regular project members and viewers can't see or change environment settings. For more on roles, see Organizations and teams.