Index Ai Academy
Glossary · Phase 0 · Tools

Environment variable

Also written: environment variables

A setting stored outside your code, often used to keep secrets such as API keys out of files.

Try it now

Programs started from this terminal can now read GRADIENT_API_KEY. Close the window and it's gone.

Learn it properly

API keys and secrets · Authenticate safely and keep keys out of your code. About 25 minutes.

Start this free lesson

Other terms from the same lesson

Never trained an AI?

Teach a small one to write, right in your browser. It takes about 20 seconds and needs no account.

Teach it to write