New
Boost Developer Productivity & Streamline Onboarding with CDE's

Download the Whitepaper

Coder injects a standard set of environment variables that allow you to access contextual information about your workspace.

To obtain a list of environment variables and their values, launch the Terminal via the Coder Dashboard and run:

env | grep CODER_

Available environment variables

Environment variableDescription
CODER_USER_EMAILYour email address
CODER_WORKSPACE_NAMEThe name of your workspace
CODER_USERNAMEYour user name
CODER_CPU_LIMITThe CPU core limit given to your workspace
CODER_MEMORY_LIMITThe memory limit given to your workspace in GB
CODER_IMAGE_TAGThe image tag used to create your workspace
CODER_IMAGE_DIGESTThe content-addressable identifier for your image
CODER_IMAGE_URIThe URI for the image used to build the workspace
CODER_WP_NAMEThe name of the workspace provider hosting the environment
CODER_RUNTIMEThe container runtime used to start the workspace (either `kubernetes/default` or `kubernetes/sysbox` if the workspace is a CVM
See an opportunity to improve our docs? Make an edit.