> ## Documentation Index
> Fetch the complete documentation index at: https://www.getmaxim.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Environment

> Learn how to set up environments in Maxim.

Environments in Maxim provide a centralized way to manage configuration variables across different deployment settings. Use environments to store base URLs, dynamic runtime variables, and environment-specific configurations that vary between development, staging, and production environments.

* Go to `Settings` → `Environment`.
* Click on `Add environment`, give it a name, and enter the variables.
* Click on `Add environment`

<img src="https://mintcdn.com/maximai/qE79bFj5iPGETMeE/images/docs/settings/add_environment.png?fit=max&auto=format&n=qE79bFj5iPGETMeE&q=85&s=92affb69b95486f846bf7f4eb0788e29" alt="Environment Setup" width="1622" height="1134" data-path="images/docs/settings/add_environment.png" />

* Create multiple environments to manage different configurations.
  <img src="https://mintcdn.com/maximai/qE79bFj5iPGETMeE/images/docs/settings/environments.png?fit=max&auto=format&n=qE79bFj5iPGETMeE&q=85&s=c38d0cbb6ebf51f7059078bd28f7e3b0" alt="Environments" width="1588" height="524" data-path="images/docs/settings/environments.png" />

You can then use the key using the `{{env.key_name}}` syntax on the playground or if you want to access this using code, you can use <code>maxim.getEnvironmentVariable</code> in the scripts of your agents. Learn more about how to use environments in the [environments](/offline-evals/via-ui/agents-via-http-endpoint/environments) section.
