Environment Variables

Complete reference of environment variables supported by the Parlot SDK.

The Parlot SDK can be configured via environment variables or explicitly through parlotize() arguments.

Core Telemetry & Ingestion

VariableRequiredDefaultDescription
PARLOT_ENDPOINTYes*NoneBase URL of the Parlot OTLP collector (e.g. https://ingest.parlot.ai). Spans are exported to {PARLOT_ENDPOINT}/v1/traces. *Required unless endpoint= is passed to parlotize().
PARLOT_API_KEYYesNoneBearer authentication token minted under Parlot Settings → API Keys.
PARLOT_AGENT_IDNot read by the SDK. Recommended convention for deploy manifests when you inject the id at the call site: parlotize(os.environ["PARLOT_AGENT_ID"]). agent_id is a required positional parlotize() argument.

Policies & Capture Controls

VariableDefaultValuesDescription
PARLOT_CAPTURE_GENAI_CONTENTtruetrue | false | 1 | 0Controls whether LLM message bodies and tool input/output payloads are exported with GenAI spans. If false, payloads are redacted while preserving span metrics, token counts, and turn transcripts.
PARLOT_DEBUG_LEVELINFODEBUG | INFO | WARNING | ERRORSets root logging level for internal SDK loggers (parlot.core, parlot.instrumentation.livekit, parlot.instrumentation.langgraph).

Framework-Specific Variables

LiveKit Agents

When using parlot-instrumentation-livekit with LiveKit:

VariableRequiredDescription
LIVEKIT_URLYesWebSocket URL for your LiveKit server (e.g. wss://my-project.livekit.cloud).
LIVEKIT_API_KEYYesLiveKit project API key (also used to initiate egress recordings).
LIVEKIT_API_SECRETYesLiveKit project API secret.

Configuration Precedence

When both environment variables and programmatic arguments are provided, the resolution precedence is:

  1. Job / Context Metadata: Dispatched parameters (e.g. LiveKit job metadata record: true, capture_genai_content: false).
  2. Programmatic Arguments: Arguments explicitly passed to parlotize(...).
  3. Environment Variables: PARLOT_* environment variables.
  4. Remote Telemetry Bootstrap: Dynamic policies configured in the Parlot Web UI (Settings → Recording, Settings → Logs, Settings → Generative AI).
  5. SDK Built-in Defaults: (e.g. GenAI content capture is on by default, session logging is on by default).

On this page