> For the complete documentation index, see [llms.txt](https://macdocs.supgpt.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://macdocs.supgpt.app/tools/set-active-directory.md).

# Set Active Directory

Sets the active directory, where the chat can create, read and edit files.

<figure><img src="/files/mWgY8QcFFObULAfigome" alt=""><figcaption></figcaption></figure>

When the model runs command, the active directory is used as the location for executing the command. For example, if the active directory is set and a request is made to the model to initialize a React project, it will be created in that directory.

The active directory can also be set or changed from the chat settings panel.

<figure><img src="/files/y5jBJUL3D9uFpNZ2vgne" alt=""><figcaption></figcaption></figure>
