# Environment Variables (Secrets)
source: https://docs.chalk.ai/docs/env-vars

## Access environment variables in your resolvers.

Chalk lets you inject environment variables into the runtime for your resolvers.
You can manage your environment variables through the dashboard by
navigating to Integrations > Secrets.

Here, you can provide any environment variable you need.
The value will be available in all the environments you
check on the right side of the pane.

Environment variables can include secrets or configuration.
All environment variables are securely stored using a
Key Management Service.

Then, in your resolver
or in a setup hook,
you can access these environment variables as you would
normally:

```
import os

value = os.getenv("my_variable")
```

### Chalk environment variables

Chalk also provides a few environment variables that you
can use in your resolvers.

| Name                       | Description                                                                                           |
| -------------------------- | ----------------------------------------------------------------------------------------------------- |
| `TARGET_ROOT`              | The root directory of the application. This variable is set for both branch and standard deployments. |
| `CHALK_DEPLOYMENT_ID`      | The ID of the deployment                                                                              |
| `CHALK_TEAM_ID`            | The ID of the team                                                                                    |
| `CHALK_PROJECT_ID`         | The ID of the project                                                                                 |
| `CHALK_ACTIVE_ENVIRONMENT` | The id of the active environment (e.g. `"9d0oj902"`)                                                  |
| `CHALK_ENVIRONMENT_NAME`   | The name of the active environment (e.g. `"prod"`)                                                    |





