Reference

Environment variables

Every variable Rollout reads, grouped by surface. In all three surfaces, an explicit value — a constructor argument or a command-line flag — overrides the environment.

Shared (both SDKs)

VariableDescription
ROLLOUT_API_KEYWorkspace API key.
ROLLOUT_BASE_URLOverride the ingest endpoint (local or self-hosted).
ROLLOUT_ENVIRONMENTDeployment environment, e.g. production.
ROLLOUT_RELEASEApp version or git SHA.
ROLLOUT_SERVICE_NAMEService identifier.
ROLLOUT_AGENT_NAMEAgent name.
ROLLOUT_AGENT_IDAgent ID.
ROLLOUT_AGENT_VERSIONAgent version.
ROLLOUT_DEPLOYMENTDeployment slot or region.
ROLLOUT_SAMPLE_RATETrace sample rate, 0.0–1.0.
ROLLOUT_DEBUGVerbose logging (true/false).
ROLLOUT_DISABLEDDisable the SDK entirely (true/false).

Python SDK

The Python SDK reads all of the shared variables above. See Configuration for the matching constructor parameters and advanced options.

TypeScript SDK

The TypeScript SDK reads the same shared variables. See TypeScript configuration for constructor options and the scrubber / beforeSend pipeline.

CLI

VariableDescription
ROLLOUT_CONFIG_DIRDirectory holding config.json.
ROLLOUT_APP_URLBrowser app URL.
ROLLOUT_API_URLAPI URL used by whoami, check, and imports.
ROLLOUT_BASE_URLSingle-origin shorthand for app + API.
ROLLOUT_API_KEYWorkspace API key.

See CLI configuration for file location and permissions.

Optimization runner

VariableDescription
ROLLOUT_GEPA_REFLECTION_MODELModel GEPA uses to propose prompts (--reflection-model).
ROLLOUT_GEPA_STUDENT_MODELOptional DSPy task / student model (--task-model).
ROLLOUT_GEPA_CONCURRENCYParallel LLM calls in eval and search (--concurrency, default 4).
OPENAI_API_KEY / OPENROUTER_API_KEYProvider keys your target uses. Never sent to Rollout.

See Running & watching runs for the matching flags and the litellm prefix rule for OpenRouter models.