Environment Variables
Most YAML settings in atmos.yaml can also be defined by environment variables. This is helpful for local development, CI/CD pipelines, and environment-specific overrides.
Configuration Variables
These environment variables configure Atmos behavior and can override settings in atmos.yaml.
ATMOS_CLI_CONFIG_PATHWhere to find
atmos.yaml. Path to a folder whereatmos.yamlCLI config file is located (e.g./config).ATMOS_CONFIGPaths to specific configuration files (comma-separated). Equivalent to
--config.ATMOS_CONFIG_PATHPaths to search for Atmos configuration (comma-separated). Equivalent to
--config-path.ATMOS_PROFILEActivate configuration profiles (comma-separated). Equivalent to the
--profileflag.ATMOS_BASE_PATHBase path to
componentsandstacksfolders.- YAML Path:
base_path
- YAML Path:
ATMOS_CHDIRChange the working directory before executing any command. Equivalent to
--chdir.ATMOS_VENDOR_BASE_PATHPath to vendor configuration file or directory containing vendor files.
- YAML Path:
vendor.base_path
- YAML Path:
Version Management
ATMOS_USE_VERSIONSpecify which version of Atmos to use. If the running version doesn't match, Atmos automatically downloads and re-executes with the requested version. Equivalent to
--use-version.- Example:
ATMOS_USE_VERSION=1.160.0 atmos terraform plan
- Example:
ATMOS_VERSIONConvenience alias for
ATMOS_USE_VERSION.ATMOS_VERSION_ENFORCEMENTVersion constraint enforcement mode. Controls behavior when version constraints are defined in
atmos.yaml.
Terminal and Output Variables
ATMOS_NO_COLORDisable colored output. Equivalent to
--no-color.NO_COLORStandard convention to disable colored output. Recognized alongside
ATMOS_NO_COLOR.ATMOS_FORCE_COLORForce TrueColor output even when terminal detection says otherwise. Equivalent to
--force-color.ATMOS_FORCE_TTYForce TTY mode for terminal output. Equivalent to
--force-tty.ATMOS_REDIRECT_STDERRRedirect stderr to a file. Equivalent to
--redirect-stderr.
Component Variables
ATMOS_COMPONENTS_TERRAFORM_COMMANDThe executable to be called by
atmoswhen running Terraform commands.- YAML Path:
components.terraform.command
- YAML Path:
ATMOS_COMPONENTS_TERRAFORM_BASE_PATHBase path to Terraform components.
- YAML Path:
components.terraform.base_path
- YAML Path:
ATMOS_COMPONENTS_TERRAFORM_APPLY_AUTO_APPROVEIf set to
true, auto-approve Terraform apply.- YAML Path:
components.terraform.apply_auto_approve
- YAML Path:
ATMOS_COMPONENTS_TERRAFORM_DEPLOY_RUN_INITRun
terraform initwhen executingatmos terraform deploycommand.- YAML Path:
components.terraform.deploy_run_init
- YAML Path:
ATMOS_COMPONENTS_TERRAFORM_INIT_RUN_RECONFIGURERun
terraform init -reconfigurewhen executingatmos terraformcommands.- YAML Path:
components.terraform.init_run_reconfigure
- YAML Path:
ATMOS_COMPONENTS_TERRAFORM_INIT_PASS_VARSPass the generated varfile to
terraform initusing the--var-fileflag.- YAML Path:
components.terraform.init.pass_vars
- YAML Path:
ATMOS_COMPONENTS_TERRAFORM_PLAN_SKIP_PLANFILESkip writing the plan to a file by not passing the
-outflag.- YAML Path:
components.terraform.plan.skip_planfile
- YAML Path:
ATMOS_COMPONENTS_TERRAFORM_AUTO_GENERATE_BACKEND_FILEIf set to
true, auto-generate Terraform backend config files.- YAML Path:
components.terraform.auto_generate_backend_file
- YAML Path:
ATMOS_COMPONENTS_TERRAFORM_PLUGIN_CACHEIf set to
true, enable Terraform provider plugin caching.- YAML Path:
components.terraform.plugin_cache
- YAML Path:
ATMOS_COMPONENTS_TERRAFORM_PLUGIN_CACHE_DIRCustom directory for Terraform provider plugin cache. If not set, uses the XDG cache directory.
- YAML Path:
components.terraform.plugin_cache_dir
- YAML Path:
ATMOS_COMPONENTS_HELMFILE_COMMANDThe executable to be called by
atmoswhen running Helmfile commands.- YAML Path:
components.helmfile.command
- YAML Path:
ATMOS_COMPONENTS_HELMFILE_BASE_PATHPath to helmfile components.
- YAML Path:
components.helmfile.base_path
- YAML Path:
ATMOS_COMPONENTS_HELMFILE_USE_EKSIf set to
true, downloadkubeconfigfrom EKS before executingatmos helmfilecommands.- YAML Path:
components.helmfile.use_eks
- YAML Path:
ATMOS_COMPONENTS_HELMFILE_KUBECONFIG_PATHPath to write the
kubeconfigfile.- YAML Path:
components.helmfile.kubeconfig_path
- YAML Path:
ATMOS_COMPONENTS_HELMFILE_HELM_AWS_PROFILE_PATTERNPattern for AWS profile to use when executing
atmos helmfilecommands.- YAML Path:
components.helmfile.helm_aws_profile_pattern
- YAML Path:
ATMOS_COMPONENTS_HELMFILE_CLUSTER_NAME_PATTERNPattern for EKS cluster name to use when executing
atmos helmfilecommands.- YAML Path:
components.helmfile.cluster_name_pattern
- YAML Path:
Stack Variables
ATMOS_STACKS_BASE_PATHBase path to Atmos stack manifests.
- YAML Path:
stacks.base_path
- YAML Path:
ATMOS_STACKS_INCLUDED_PATHSList of paths to use as top-level stack manifests.
- YAML Path:
stacks.included_paths
- YAML Path:
ATMOS_STACKS_EXCLUDED_PATHSList of paths to not consider as top-level stacks.
- YAML Path:
stacks.excluded_paths
- YAML Path:
ATMOS_STACKS_NAME_PATTERNStack name pattern to use as Atmos stack names.
- YAML Path:
stacks.name_pattern
- YAML Path:
ATMOS_STACKS_NAME_TEMPLATEStack name Golang template to use as Atmos stack names.
- YAML Path:
stacks.name_template
- YAML Path:
Workflow and Schema Variables
ATMOS_WORKFLOWS_BASE_PATHBase path to Atmos workflows.
- YAML Path:
workflows.base_path
- YAML Path:
ATMOS_SCHEMAS_JSONSCHEMA_BASE_PATHBase path to JSON schemas for component validation.
- YAML Path:
schemas.jsonschema.base_path
- YAML Path:
ATMOS_SCHEMAS_OPA_BASE_PATHBase path to OPA policies for component validation.
- YAML Path:
schemas.opa.base_path
- YAML Path:
ATMOS_SCHEMAS_ATMOS_MANIFESTPath to JSON Schema to validate Atmos stack manifests.
- YAML Path:
schemas.atmos.manifest
- YAML Path:
Logging and Profiling Variables
ATMOS_LOGS_FILEThe file to write Atmos logs to (
/dev/stdout,/dev/stderr,/dev/null, or a file path).- YAML Path:
logs.file
- YAML Path:
ATMOS_LOGS_LEVELLogs level:
Trace,Debug,Info,Warning,Off.- YAML Path:
logs.level
- YAML Path:
ATMOS_PROFILER_ENABLEDEnable or disable the pprof HTTP profiling server.
- YAML Path:
profiler.enabled
- YAML Path:
ATMOS_PROFILER_HOSTHost address for the profiling server.
- YAML Path:
profiler.host
- YAML Path:
ATMOS_PROFILER_PORTPort for the profiling server.
- YAML Path:
profiler.port
- YAML Path:
ATMOS_PROFILE_FILEWrite profiling data to the specified file.
- YAML Path:
profiler.file
- YAML Path:
ATMOS_PROFILE_TYPEType of profile to collect:
cpu,heap,allocs,goroutine,block,mutex,threadcreate,trace.- YAML Path:
profiler.profile_type
- YAML Path:
Settings Variables
ATMOS_SETTINGS_LIST_MERGE_STRATEGYSpecifies how lists are merged:
replace,append,merge.- YAML Path:
settings.list_merge_strategy
- YAML Path:
ATMOS_VERSION_CHECK_ENABLEDEnable/disable Atmos version checks for updates.
- YAML Path:
version.check.enabled
- YAML Path:
Authentication and Token Injection
GITHUB_TOKEN/ATMOS_GITHUB_TOKENGitHub token for private module downloads and API access.
ATMOS_GITHUB_TOKENtakes precedence overGITHUB_TOKEN. Automatically injected into Terraform environments whenATMOS_INJECT_GITHUB_TOKEN=true(default).ATMOS_INJECT_GITHUB_TOKENInject the GitHub token into component environments. Default:
true. Set tofalseto prevent token injection.GITHUB_USERNAME/GITHUB_ACTOR/ATMOS_GITHUB_USERNAMEGitHub username for OCI registry authentication to ghcr.io.
GITHUB_ACTORis automatically set in GitHub Actions.- YAML Path:
settings.github_username
- YAML Path:
GITLAB_TOKEN/ATMOS_GITLAB_TOKENGitLab token for private module downloads.
ATMOS_INJECT_GITLAB_TOKENInject the GitLab token into component environments.
BITBUCKET_TOKEN/ATMOS_BITBUCKET_TOKENApp password for Bitbucket API requests and private module downloads.
ATMOS_INJECT_BITBUCKET_TOKENInject the Bitbucket token into component environments.
ATMOS_BITBUCKET_USERNAMEUsername for Bitbucket authentication.
AI Integration
ATMOS_AIEnable AI-powered analysis of command output. When
true, command output is sent to the configured AI provider for analysis. Equivalent to the--aiflag. Requires AI configuration inatmos.yaml.- Example:
ATMOS_AI=true atmos terraform plan vpc -s prod
- Example:
ATMOS_SKILLSpecify one or more AI skills for domain-specific analysis context (comma-separated). Equivalent to the
--skillflag. RequiresATMOS_AI=trueor--aiflag. Each skill's system prompt is prepended to the AI analysis for deeper, domain-aware insights.- Example:
ATMOS_AI=true ATMOS_SKILL=atmos-terraform,atmos-stacks atmos terraform plan vpc -s prod
- Example:
ANTHROPIC_API_KEY/ATMOS_ANTHROPIC_API_KEYAPI key for the Anthropic Claude AI provider.
OPENAI_API_KEY/ATMOS_OPENAI_API_KEYAPI key for the OpenAI GPT AI provider.
GEMINI_API_KEY/ATMOS_GEMINI_API_KEYAPI key for the Google Gemini AI provider.
XAI_API_KEY/ATMOS_XAI_API_KEYAPI key for the xAI Grok AI provider.
ATMOS_AI_SEND_CONTEXTControl whether stack configurations are sent to the AI provider for context-aware answers. Default:
false.
Processing Flags
ATMOS_PROCESS_TEMPLATESEnable/disable Go template processing in Atmos manifests.
ATMOS_PROCESS_FUNCTIONSEnable/disable YAML function processing in Atmos manifests.
ATMOS_SKIPSkip processing specific Atmos YAML functions (comma-separated).
Terraform Integration
ATMOS_SKIP_INITSkip
terraform initbefore running commands.ATMOS_INIT_PASS_VARSPass the generated varfile to
terraform init.ATMOS_APPEND_USER_AGENTCustomize the User-Agent string sent with Terraform requests.
ATMOS_AUTO_GENERATE_BACKEND_FILEOverride the
auto_generate_backend_filesetting fromatmos.yaml.ATMOS_INIT_RUN_RECONFIGUREOverride the
init_run_reconfiguresetting fromatmos.yaml.
Atmos Pro
ATMOS_PRO_BASE_URLAtmos Pro API base URL.
ATMOS_PRO_ENDPOINTAtmos Pro API endpoint.
ATMOS_PRO_WORKSPACE_IDAtmos Pro workspace identifier. Not a secret.
ATMOS_PRO_TOKENBearer token obtained via OIDC token exchange (advanced). See Pro authentication.
ATMOS_UPLOAD_STATUSUpload plan status to Atmos Pro after Terraform commands.
Telemetry
ATMOS_TELEMETRY_ENABLEDEnable anonymous telemetry reporting. Default:
true.ATMOS_TELEMETRY_TOKENTelemetry authentication token.
ATMOS_TELEMETRY_ENDPOINTCustom telemetry endpoint URL.
Experimental Features
ATMOS_EXPERIMENTALControl experimental command behavior. Options:
silence,disable,warn(default),error.
Toolchain
ATMOS_TOOL_VERSIONSPath to a tool-versions file for version pinning.
ATMOS_TOOLCHAIN_PATHDirectory where Atmos installs managed tools.
XDG Base Directories
ATMOS_XDG_CACHE_HOME/XDG_CACHE_HOMEOverride the cache directory. Default:
~/.cache.ATMOS_XDG_DATA_HOME/XDG_DATA_HOMEOverride the data directory. Default:
~/.local/share.ATMOS_XDG_CONFIG_HOME/XDG_CONFIG_HOMEOverride the config directory. Default:
~/.config.
Git Operations
ATMOS_REPO_PATHPath to the cloned target repository for
describe affected.ATMOS_REFGit reference for comparison in
describe affected.ATMOS_SHAGit commit SHA for comparison in
describe affected.ATMOS_SSH_KEYPath to SSH private key for Git operations.
ATMOS_SSH_KEY_PASSWORDSSH key encryption password.
ATMOS_CLONE_TARGET_REFClone target Git reference for comparison operations.
ATMOS_INCLUDE_DEPENDENTSInclude dependent components in
describe affectedoutput.
Context Variables
Some commands spawn interactive shells with environment variables set to provide context. These are set by Atmos, not by users:
ATMOS_COMPONENT- The name of the active component.
ATMOS_SHELL_WORKING_DIR- The directory from which native commands should be run.
ATMOS_SHLVL- The depth of Atmos shell nesting. When present, indicates shell was spawned by Atmos.
ATMOS_STACK- The name of the active stack.
ATMOS_TERRAFORM_WORKSPACE- The name of the Terraform workspace in which Terraform commands should be run.
PS1- When a custom shell prompt has been configured, the prompt is set via
PS1. TF_CLI_ARGS_*- Terraform CLI arguments to be passed to Terraform commands.
See Also
- CLI Configuration — Overview of CLI configuration
- Global Flags — Flag reference with environment variable equivalents
- Environment Variable Injection — Configure the
env:section inatmos.yamlto inject variables into tools - Stack Environment Variables — Component-level environment variables
- AI Configuration — AI provider setup and configuration
- Profiles — Environment-specific configuration overrides
- Logs — Configure logging
- Profiler — Configure performance profiling