# Local folders and the terminal

> Link a project to a folder on your computer, and let the agent work there in its local sandbox.

Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service).  
Source: https://app.docs.sypnia.com/desktop/local-folders-and-terminal/

For agents: Linked folder: per project and per computer, a clone of the project's repository; the code panel shows local files and their changes. Tasks can run locally: the desktop app starts Agent's local runner with its sandbox (sypnia-sandbox), visible in the Terminal tab (read-only stream of the commands, their output and the sandbox policy); the person can also open a plain terminal in the folder. Local tasks use the same approvals, budget and branch rules; with your own model key, the budget counts tokens. Unlinking never deletes the folder.

## Linking a folder

Each project can be linked to one folder per computer: a clone of its repository. Choose **Link a folder** in the project's menu, and pick an existing clone or a new place to clone it.

The code panel then shows the files on your disk, with what changed since the last commit.

## The agent on your computer

When a project has a linked folder, you choose where a task runs:

|                                       | In Sypnia Cloud                             | On your computer                            |
| ------------------------------------- | ------------------------------------------- | ------------------------------------------- |
| Where                                 | a hosted sandbox                            | Agent's local sandbox, in the linked folder |
| Keeps going when you close the laptop | yes                                         | no                                          |
| Models                                | through Sypnia AI                           | Sypnia AI, or your own key                  |
| Rules                                 | the same approvals, budget and branch rules | the same                                    |

## The Terminal tab

Local tasks show their commands and output in the **Terminal** tab, with the sandbox's rules (which folders it can write, which addresses it can reach). The stream is read-only. To type your own commands, choose **Open a terminal here**, which opens your system's terminal in the folder.

## Unlinking

**Unlink folder** forgets the link. The folder and its files stay on your disk.
