# Self-host Guardian

Guardian runs on your own server. You keep all the data. Do these steps in this order.

| Step | Where | Time |
|---|---|---|
| 1. [Deploy the server](https://guardian.opendle.com/docs/server.md) | A Linux host with Docker | 15 min |
| 2. [Add the parents](https://guardian.opendle.com/docs/parents.md) | Your phone | 5 min |
| 3. [Set up a kid Mac](https://guardian.opendle.com/docs/kid-mac.md) | Each kid Mac | 10 min |
| 4. [Run and maintain](https://guardian.opendle.com/docs/operations.md) | The server | When necessary |

An AI coding agent can do most of these steps for you. See [Install with an AI agent](https://guardian.opendle.com/docs/agents.md).

## What you need

- A Linux host with Docker Engine and Docker Compose (`linux/amd64` or `linux/arm64`). A NAS or a small VPS is sufficient.
- A DNS name for the server, for example `guardian.example.org`, and an HTTPS reverse proxy for it.
- One Mac with Chrome for each kid, with macOS 14 or later.
- Optional: an OpenAI-compatible LLM endpoint and key, for the **AI decides** rule.

## How the parts connect

```
Parent phone ──HTTPS──▶ Your server (Docker) ◀──HTTPS── Kid Mac
  web app                rules, history,                Guardian app
  push                   Mac app updates                 └─ Chrome extension
                           └──▶ LLM endpoint (optional)
```

- The server makes all decisions and keeps all history. The kid Mac has no rules.
- The Mac app is signed and notarized by the Guardian project. Kid Macs install it from your server and update by themselves.
- The Chrome extension comes from the Chrome Web Store. It talks only to the Mac app on the same Mac.
- No data goes to the developers of Guardian. See the [privacy policy](https://guardian.opendle.com/privacy.md).

