> 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="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2Fwrq4eb2cXBcfDOB7Um5c%2FScreenshot%202024-09-10%20at%2018.38.29.png?alt=media&amp;token=94f8f9af-4f3e-47f4-bf55-9c3c6d6ceb3b" 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="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FJFLs87EcjEeuuKoK2vLT%2FScreenshot%202024-09-10%20at%2022.26.07.jpg?alt=media&amp;token=6ae32a53-2f4b-415a-a6b3-bbe55fb41018" alt=""><figcaption></figcaption></figure>
