Skip to main content

Pod environment variables

You can store the following environment variables in your Pods.

VariableDescription
RUNPOD_POD_IDThe unique identifier for your pod.
RUNPOD_API_KEYUsed to make RunPod API calls to the specific pod. It's limited in scope to only the pod.
RUNPOD_POD_HOSTNAMEName of the host server the pod is running on.
RUNPOD_GPU_COUNTNumber of GPUs available to the pod.
RUNPOD_CPU_COUNTNumber of CPUs available to the pod.
RUNPOD_PUBLIC_IPIf available, the publicly accessible IP for the pod.
RUNPOD_TCP_PORT_22The public port SSH port 22.
RUNPOD_DC_IDThe data center where the pod is located.
RUNPOD_VOLUME_IDThe ID of the volume connected to the pod.
CUDA_VERSIONThe installed CUDA version.
PWDCurrent working directory.
PYTORCH_VERSIONInstalled PyTorch Version.
PUBLIC_KEYThe SSH public keys to access the pod over SSH.