Runtime environment variables

Reference documentation on all environment variables automatically set by Airplane
When a run executes—both locally in Studio and remotely in Airplane—the following environment variables are automatically set:
Variable NameDescription
AIRPLANE_ENV_IDID of the environment this run was executed in. Set to studio for Studio runs.
AIRPLANE_ENV_IS_DEFAULTWhether the run was executed in the default environment. Set to "true" for Studio runs.
AIRPLANE_ENV_SLUGSlug of the environment this run was executed in. Set to studio for Studio runs.
AIRPLANE_ENV_NAMEName of the environment this run was executed in. Set to studio for Studio runs.
AIRPLANE_REQUESTER_EMAILEmail of the user who requested the run.
AIRPLANE_REQUESTER_IDID of the user who requested the run.
AIRPLANE_REQUESTER_NAMEName of the user who requested the run.
AIRPLANE_RUN_IDID of the run.
AIRPLANE_RUN_URLURL that links to this run's page in the Airplane app.
AIRPLANE_RUNNER_EMAILEmail of the user who executed the run. If this run was requested, it is the user who executed the run, not the requester.
AIRPLANE_RUNNER_IDID of the user who executed the run. If this run was requested, it is the user who executed the run, not the requester.
AIRPLANE_RUNNER_NAMEName of the user who executed the run. If this run was requested, it is the user who executed the run, not the requester.
AIRPLANE_RUNTIMERuntime this run was executed in.
AIRPLANE_PARENT_RUN_IDID of the run that executed this run, if any.
AIRPLANE_SESSION_IDID of the runbook session that the run was executed from, if any.
AIRPLANE_TASK_IDID of the task the run belongs to.
AIRPLANE_TASK_NAMEName of the task the run belongs to.
AIRPLANE_TASK_SLUGSlug of the task the run belongs to.
AIRPLANE_TASK_URLURL that links to the task page the run belongs to in the Airplane app.
AIRPLANE_TASK_REVISION_IDID that identifies the specific version of the task the run belongs to.
AIRPLANE_TEAM_IDID of the team this run belongs to.
AIRPLANE_TRIGGER_IDID of the trigger that started the run.