# Where agents run

Each agent runs in one of two places, which you choose when you make it: directly on your computer, or inside its own Docker container. The choice decides how strong the wall around the agent is.

**Catervas recommends a container.** When you make an agent, **In a container** comes first and has the mark **Recommended**. Catervas shows it this way wherever Docker runs and the agent program can run in a container. You can still choose **On this computer**, and Catervas remembers if you chose it last time.

Warning: Choose **On this computer** only for agents that you trust. Agents on this computer are not separated from each other or from your own files. Each agent can read what the others keep, and your own files too.

## On this computer

The agent runs as an ordinary program under your user account. It starts at once and can use the programs and tools that you already have. Its settings, sign-ins and folders are separate from every other agent's.

Configuration makes that separation, not a sandbox. A local agent runs as you. As a result, it is not separated from your own files or from the other agents on this computer. An agent that misbehaves can search for and read your files, Catervas's files or another agent's files. Use this mode only for agents that you trust.

Local agents also share your computer's network. Two agents that each start a server on port 3000 will collide.

## In a container

The agent runs inside its own Docker container, a closed space with its own files and its own network. It cannot reach your personal files, Catervas's own files or your other agents. Catervas keeps its files outside the container, so the files stay safe when Catervas rebuilds the container.

An agent in a container has a **Container** section in its Settings. In that section, you can limit how much memory and processor time the agent can use. You can also see what it uses now.

Containers still share your computer's operating system kernel. As a result, a container is a much stronger wall than local mode, but not a perfect one. Use this mode for agents that run code that you did not review.

## Side by side

| Risk | On this computer | In a container |
| --- | --- | --- |
| One agent's connectors, skills or GitHub sign-in appearing in another | Prevented | Prevented |
| One agent's settings or memory leaking into another by accident | Prevented | Prevented |
| An agent reading Catervas's saved keys, or another agent's secrets, on purpose | Not prevented | Prevented |
| An agent reading your personal files | Not prevented | Prevented, except folders you share with it |
| An agent using all the memory or processor | Not prevented | Limited |
| One agent reaching another over the network | Not prevented | Prevented |

## The dashboard itself

The dashboard only listens to your own computer, so other devices cannot open it. It also checks where each request comes from, so a web page open in your browser cannot control your agents.

Warning: Keep the dashboard link private. Anyone who has the link can use the dashboard.

Catervas keeps your saved keys and sign-ins encrypted. It decrypts them only at the moment that one agent needs them.
