Coder has open-sourced a new remote development platform 🥳 Check it out at coder/coder on GitHub.

Environment variables

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

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_ENVIRONMENT_NAMEThe name of your environment
CODER_USERNAMEYour user name
CODER_CPU_LIMITThe CPU core limit given to your environment
CODER_MEMORY_LIMITThe memory limit given to your environment in GB
CODER_IMAGE_TAGThe image tag used to create your environment
CODER_IMAGE_DIGESTThe content-addressable identifier for your image
CODER_IMAGE_URIThe URI for the image used to build the environment

See an opportunity to improve our docs? Make an edit.