> ## 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.

# How can I change the directory my sweep logs to locally?

Set the logging directory for run data by configuring the `WANDB_DIR` environment variable. For example:

```python theme={null}
os.environ["WANDB_DIR"] = os.path.abspath("your/directory")
```

***

<Badge stroke shape="pill" color="orange" size="md">[Sweeps](/support/models/tags/sweeps)</Badge>
