Environment Variables Injected by Coiled#

Coiled injects the following environment variables into your cluster:

  • COILED_AUTH_TOKEN: Temporary Coiled authentication token, valid while the cluster is running.

  • COILED_CLUSTER_HOSTNAME: Hostname (e.g., cluster-xyz.dask.host) for the cluster scheduler.

  • COILED_CLUSTER_NAME: The name of the cluster, as shown in the dashboard.

  • COILED_INSTANCE_ID: The VM ID, as understood by the cloud provider.

  • COILED_WORKSPACE_SLUG: The slug of the workspace the cluster belongs to.

Clusters started with coiled batch run inject additional environment variables. You can find them in the Batch documentation.