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

# Where are artifacts downloaded, and how can I control that?

By default, W\&B downloads artifacts to the `artifacts/` folder. To change the location:

* Pass the path to [`wandb.Artifact().download`](/models/ref/python/public-api/api):

  ```python theme={null}
  wandb.Artifact().download(root="<path_to_download>")
  ```

* Set the `WANDB_ARTIFACT_DIR` [environment variable](/models/track/environment-variables):

  ```python theme={null}
  import os
  os.environ["WANDB_ARTIFACT_DIR"] = "<path_to_download>"
  ```

***

<Badge stroke shape="pill" color="orange" size="md">[Artifacts](/support/models/tags/artifacts)</Badge><Badge stroke shape="pill" color="orange" size="md">[Environment Variables](/support/models/tags/environment-variables)</Badge>
