Skip to content

Coding & Software AI

Environment variable

A configuration value supplied outside code, often used for secrets or deployment-specific settings.

Example

An environment variable supplies an API key without placing it in source code.

Why it matters

It lets the same code work with different operating settings.

You'll hear it

“This environment is using the wrong service address.”

Can you control it?

Sometimes

Sometimes. Some products or workflows let you influence an environment variable, while others keep it fixed or manage it automatically. Check the settings and documentation for the tool you are using.

Common questions

Are environment variables automatically secret?
No. Their visibility depends on the system, logs and how the application uses them.
Can a missing value cause a confusing failure?
Yes. Software may fail later or fall back to an unintended default.
Does changing a value always affect a running app immediately?
Not necessarily. Some applications read settings only when they start.

AI chatbot

Still have questions?

Ask the AI chatbot about this term or another AI concept.

Up to 500 characters.

Ask LATHIC about AI. Relevant glossary entries may be included.

Your question, the glossary entries it matches, and a rotating pseudonymous identifier go to Microsoft Azure’s OpenAI service through Vercel AI Gateway to generate an answer. Zero retention and no training are required of the provider, and LATHIC does not save your question or answer. Privacy Notice