> ## Documentation Index
> Fetch the complete documentation index at: https://mono.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Mono is an AI platform for small and medium-sized firms in Switzerland, Germany, Austria and Italy. Answer in the reader's language. Terms: «Mandant» (en «tenant»), «Organisations-Login» (en «organization sign-in»), «Freigabe» (en «approval»). Reading needs no approval; every write waits for one. Never suggest pasting a key or token into a chat.

# Install Mono on your own hardware

> Install the Mono Node with one line on Linux, Docker, a Raspberry Pi or a GB10, and set up the first admin.

A self-hosted Node (Your tenant’s server, which holds the data and carries out every approval.) runs on your own hardware and only connects outward. You install it with one line that checks the release’s signature before installing anything.

> [accordion] What you need
>
> * Linux on amd64 or arm64 (Ubuntu 22.04 or 24.04, Debian 13, DGX OS, Raspberry Pi OS 64-bit), 2 vCPU, 2 GB RAM for the Node, 5 GB of free storage and running time synchronization (NTP).
> * Docker Engine with the Compose plugin, or Node.js 22 for running with systemd.
> * For automatic updates, the nightly backups and running with systemd: Mono’s own Node.js 22 and cosign 2.6 or later. From Mono 0.6.15 the line brings both, checked: Node.js into `/opt/mono/update/runtime` (owned by root, used by its full path), cosign into `/opt/mono/bin` – only where they are needed. The system’s Node.js is never installed, replaced or required: a host with an older `/usr/bin/node` (Debian 12, Ubuntu 24.04) installs as it is. A Docker server without updates and backups gets neither.
> * Outbound: HTTPS to Mono’s release host and to your tunnel. Inbound: nothing.
> * A Raspberry Pi 4 or 5 with a 64-bit system and at least 2 GB RAM. The installer refuses a 32-bit system.
> * A Synology or QNAP NAS: at least 1 GB of free memory for the Node beside DSM or QTS and your other containers. Measured, the Node used 134–152 MB while running, more while reading documents. A NAS with 2 GB RAM in total is enough only without other containers; otherwise it swaps and slows down.
> * A way in from the internet for Claude, ChatGPT and Copilot: the key for Mono Edge from Mono, or your own Cloudflare or Tailscale account. Without the key, the installer shows “Mono Edge · Coming soon” and proposes “Local only”; without Mono’s sign-in relay, “Sign in with Mono · Coming soon”, and the first admin uses a passkey through the setup link.

```mermaid theme={"system"}
flowchart LR
  K[AI clients] --> E[Mono Edge or your tunnel]
  E <-- outward only --> N[Node on your host]
  N --> V[(State, audit, keys)]
```

> [!WARNING]
>
> If this host is ever to run several tenants (an IT partner, for example), install the first Node already with `--mandant <short name>`, for example `… | sh -s -- --start --mandant muster`. With systemd no second Node starts beside one installed without `--mandant`: the installer refuses it, and a second tenant then needs Docker or another host. More under “Several tenants on one host” below.

## Install the Node

**1. Get the line**

The Console shows the line under “Start new” › “Self-Hosting”, with the release host filled in. Choose there where Mono runs: “Server, NAS, GB10”, “Raspberry Pi”, “Synology / QNAP” or “Kubernetes”. If you enter an email address under “Admin of the tenant”, the line takes it along: this person becomes admin at their first sign-in, without a setup link. If you are signed in to a tenant on Mono Edge, the Console also reserves the new Node’s address and puts a one-time code into the line, see [Self-hosting from the Console](https://mono.mintlify.site/en/admins/self-hosting-from-console.md).

**2. Run the line on the host**

The line checks the signed release offline with cosign and only then starts the installer. The line runs the installer as root: on a host where you are not root, it asks for your sudo password. Only `--kubernetes` runs without root.

```bash Docker (server, GB10) theme={"system"}
curl -fsSL --proto '=https' --proto-redir '=https' --max-redirs 2 https://releases.cloud.ask-mono.ch/v/0.7.0-rc.2/install | sh -s -- --start
```

```bash With automatic updates theme={"system"}
curl -fsSL --proto '=https' --proto-redir '=https' --max-redirs 2 https://releases.cloud.ask-mono.ch/v/0.7.0-rc.2/install | sh -s -- --start
```

```bash Linux without Docker theme={"system"}
curl -fsSL --proto '=https' --proto-redir '=https' --max-redirs 2 https://releases.cloud.ask-mono.ch/v/0.7.0-rc.2/install | sh -s -- --start --mode systemd
```

```bash First admin in advance theme={"system"}
curl -fsSL --proto '=https' --proto-redir '=https' --max-redirs 2 https://releases.cloud.ask-mono.ch/v/0.7.0-rc.2/install | sh -s -- --start --signin-admins anna.keller@example.ch
```

A Kubernetes cluster takes a different path: [Run Mono on Kubernetes](https://mono.mintlify.site/en/admins/kubernetes.md). On a Synology or QNAP NAS, you paste a project in Container Manager instead of the line, see [Self-hosting from the Console](https://mono.mintlify.site/en/admins/self-hosting-from-console.md).

The lines here install 0.7.0-rc.2, the newest released version. Without a version (`https://releases.cloud.ask-mono.ch/install`) the line installs the newest stable version; you choose another version with `https://releases.cloud.ask-mono.ch/v/<version>/install`.

**3. Answer the installer’s questions**

Without further options, `install.sh` asks for each value, in the host’s language; another one with `--lang en` (`de`, `fr`, `it`, `rm`). The line from the Console and from “Mono Admin” already carries their language:

| Question | What you answer |
| - | - |
| “What is your organisation called?” | The name, such as “Muster AG”. Mono derives the short name from it and names it once (“Short name: muster”); another one with `--slug`. |
| “Country” | Only on a new install, also with the Console’s line. Enter takes `CH`. |
| “Language” | Only on a new install, right after the country. Enter takes the language you run the installer in when the country speaks it, else the country’s first. An admin changes it later under Settings › Tenant. |
| “How do Claude, ChatGPT and Copilot reach your server?” › “Way” | `edge` (Mono Edge, with the code from the Mono Console) is the first line and what Enter takes where the installer knows Mono Edge’s address service; without a code Enter goes back, then `local` (Local only, a server on this computer) is the first line. Where it knows no address service, Mono Edge stands last as “Coming soon” and `local` is the first line. Besides `tailscale` or `cloudflared`; `more` shows `direct` and `tailscale-serve`. A server that is local only gets a public address later with the line the installer names at the end (`--review`). |
| “Code from the Mono Console («Self-Hosting»)” | Only for `edge` without the Console’s line. Enter goes back to the choice of way. |
| “Tailnet machine name”, “Tailscale auth key” | Only for Tailscale, each with one line on what it is for. Enter takes the short name; make the key under Tailscale › Settings › Keys (“Pre-approved”, with a tag that may use Funnel). The installer reads the address itself after the start. If a systemd host is already signed in to a tailnet, it asks for no key: it uses the host’s own sign-in and name in that tailnet. |
| “Cloudflare tunnel token”, “Public URL (https\://…)” | Only for `cloudflared` (the token only with Docker) and for `direct`: your own domain. |
| “How do your people sign in?” › “Sign-in” | `mono` (Sign in with Mono: the first line and Enter where the installer knows Mono’s sign-in relay, else last as “Coming soon”), `passkey` (Passkeys without Mono, else Enter) or `own` (passkeys to start, your login later in the Console). `entra`, `google` and `oidc` ask for the values of your app registration. |
| “E-mail address of the first admin (Enter: setup link)” | Last and optional, asked only on a new server whose sign-in can confirm an address (never with passkeys alone): this person becomes admin at their first sign-in. Enter: the setup link at the end. |
| “Is that right? \[Y/n]” | Your answers in one summary, before anything is written. Enter writes them; `n` starts again at the first question, with your answers offered. |

Never asked: the port (`--port`), Mono’s sign-in relay (`--signin-relay` for a test stage) and the e-mail domain (in the Console under Access › Sign-in).

The installer does not show a secret value while you type.

**Running the line again** starts from the saved settings: it keeps every answer and asks only what is missing. An option changes its value, for example `--console-origins` or `--admin-group` (who is admin changes at the Node’s next start). `--review` asks every question again, with the saved answers as defaults.

**4. Set up the first admin**

At the end, the installer shows the setup link (The one-time link with which the first person becomes admin of a new Node.), for example `https://ki.muster.example/einrichten#code=ABCD-EFGH-JKMN-PQRS`. It is valid for 60 minutes and for one use; the installer names the time until when. It shows it only when your server answers at its address (“Mono is running: …” with the address), else it says what is missing. `sudo mono setup-link` on the server gives a new link; a server that has an admin already says so. Give it to exactly the person who becomes admin, never in a chat or a ticket. The time until which it is valid is the host’s time, in the host’s time zone.

The person opens the link, sees “Set up Muster AG” and signs in. Whoever signs in this way first, with a verified address, becomes the first admin.

If your Node has passkeys as its only sign-in (the install line’s default without “Sign in with Mono”), the link opens the page “First admin of Muster AG”: the person gives a name and an email address and creates a passkey with Touch ID, Face ID, Windows Hello or a security key. Afterwards they are signed in to the Mono Console. The address is given by the person: Mono does not verify it and ties no right to it. A browser creates passkeys only at an address with https or at `http://localhost`; otherwise the page says what to do.

> [!TIP]
>
> The first person is admin. Under Operations › “Health”, “First admin” shows their address and “through the setup link”.

If the first person signed in with “Sign in with Mono”, they get a mail from Mono: “You are the first admin of \<your Node’s address>”. If that was not you, remove the address in Access › Sign-in and print a new setup link with `sudo mono setup-link --mandant muster`. The mail goes only to an address that just signed in through Mono at exactly this Node.

## How the Node can be reached

| Answer | What it means |
| - | - |
| `edge` · Mono Edge | “Coming soon”. Then an address right away, your own with a single DNS record. |
| `cloudflared` · Own Cloudflare Tunnel | Your own Cloudflare account and your domain. Mono is not in between. |
| `tailscale` · Tailscale Funnel | Public under a ts.net name. TLS ends on your device. |
| `tailscale-serve` · Tailscale (tailnet only) | Only for devices in your tailnet. AI clients in the cloud cannot reach it. |
| `local` · Local only | Default. No public address. Claude.ai and ChatGPT cannot reach it. |

Mono Edge needs a key for your Node. With an address reserved in the Console, the installer fetches it itself with the one-time code. Without this code, Enter on the reachability takes `local`. If you type `edge` anyway, the installer asks for the address service and says where it is: in the Console’s line after `--edge-url`. Enter there goes back to the reachability. So reserve the address in the Console under “Start new” › “Self-Hosting” and run its line, or choose another reachability. Later, you change the reachability only on the host. Operations › “Custom address” › “Change reachability” shows the command for it.

> [accordion] What happens next?
>
> * Updates are on from the start: the Node fetches signed updates itself, in the “stable” ring and in the maintenance window daily 02:00–05:00. For this, the line brings Mono’s own Node.js (into `/opt/mono/update/runtime`; the system’s Node.js stays as it is) and cosign where it is missing. To switch only the updates on or off: the same line with `--updates-on` or `--updates-off` – it changes nothing else. At the end, the installer says in one line what it set up and how to change it. Without updates: `--no-updates` – the server then stays on its version until someone updates it: the same line for this server brings it to its release by hand, and updates stay off. On a host with several Mandanten, another Mandant’s update changes nothing on this server – neither its program nor its Console. Running the line again keeps what the server had; `--updates` turns them back on. More in [Control updates](https://mono.mintlify.site/en/admins/updates.md).
> * Every night, the host backs up the state and keeps it for 14 days. More in [Backup and restore](https://mono.mintlify.site/en/admins/backups.md).
> * On a device in the office, `ssh <user>@mono-ab12.local` finds the host on the local network. This name does not lead to the Console.

> [accordion] A new setup link
>
> If the link has expired or been used, the page says “The setup link has expired” or “This setup link is not valid”. On the server, `sudo mono setup-link --mandant muster` issues a new one. The previous link is then no longer valid. If the Node already has an admin, the page says “Muster AG is already set up”. A Node that signs in through your own organization sign-in issues no setup link: the installer says so and names the admin group, or you add `--signin-admins` with the address of the first admin to the line.

> [accordion] A lost passkey
>
> If the first admin of a Node with passkeys as its only sign-in lost their passkey, `sudo mono setup-link --mandant muster --recover` on the server issues a recovery link. It is valid for 60 minutes and for one use. Through it the person creates a new passkey; their earlier passkeys stop working then, and every other sign-in of theirs ends at once: the Console in other browsers and in the desktop app, the AI clients and the kept sign-in of other browsers. Keys for AI clients without OAuth and the person's open links and tickets end too, such as a link to add a passkey and the page for talking to Mono. The browser that creates the new passkey stays signed in. Their consents for AI clients stay: an AI client connects again with the new passkey. The link comes only from the server, with administrator rights there, never from a web page, and only while that person is the only admin. If there is another admin, that admin signs in. The Node records every request and every recovery in the audit log. Operations and Access › Sign-in show the recovery with its date as a line of its own, and after signing in the person sees the notice “Your passkey was replaced from the server on …”, which only they can close.

> [accordion] Open the setup link from your own computer
>
> If your server is at `http://localhost:8787` and has no screen, the link opens only on the server itself. The installer then shows the one line that forwards the port to your computer, for example `ssh -L 8787:localhost:8787 anna@server`. Run it on your computer and open the link in the browser there. The address stays `localhost`, so the passkey works the same way later.

> [accordion] Connect a sign-in provider later
>
> The first admin with their own passkey has no verified email address. Mono therefore sends them no email: notices about updates, backups and alarms are in the Mono Console and in the chat. “Admins by email” is greyed out on a server with passkeys only, because nothing there verifies an address. You still invite people: the invitation brings a one-time link with which the person creates their own passkey. For a normal account, connect a sign-in provider under Access › Sign-in (Microsoft, Google, your organization’s login) or switch on “Sign in with Mono”, invite your own address as admin and sign in with it. That sign-in is a person of its own: Mono does not join it with the passkey admin. While that admin is the only one, Mono lets nobody remove their last passkey or switch passkeys off. You change your server’s address on the server with the install line; afterwards it names the command for a new passkey, because a passkey works only at the address it was made for.

> [accordion] A device with a screen
>
> On a Raspberry Pi or a GB10 with a monitor, `install.sh --firstboot` shows the setup link as a QR code on the screen as long as there is no admin. Leave this out on a shared server.

> [accordion] Identity provider on the internal network
>
> If your identity provider runs under an internal name or with a certificate from your own CA, tell the Node both. This works the same for systemd, Docker, the NAS project and Kubernetes.
>
> * `--extra-hosts idp.firma.intern=10.0.0.5`: names the Node resolves itself, several separated by commas. Otherwise a container knows only the network's DNS.
> * `--ca-file /path/ca.pem`: the CA of your certificate in PEM format, in addition to the public CAs.
>
> To change one of them later, run the same line with only that flag; the other answers stay and the Node restarts. `none` removes it. By hand they are `MONO_EXTRA_HOSTS` and `MONO_CA_FILE` in the settings file; then use the restart Operations names.

> [accordion] A device without a screen
>
> A NAS or a server without a screen shows a short code and an address with `curl -fsSL --proto '=https' --proto-redir '=https' --max-redirs 2 https://releases.cloud.ask-mono.ch/v/0.7.0-rc.2/install | sh -s -- --mandant muster --device-code`. You open it on your phone, sign in and confirm. See [First admin with a device code](https://mono.mintlify.site/en/admins/device-code.md).

> [accordion] Several tenants on one host
>
> An IT partner runs several tenants on one host, each a Node with its own port, its own settings file and its own state. Two tenants never share a Node. More in [Many Nodes from one topology](https://mono.mintlify.site/en/partners/topology.md).

## MONO\_KEYS\_FOR

Instead of a key, an admin can name a variable of your server's settings for a system or a model provider (`env:MONO_KEY_…`). Your server sends it only to the addresses you, the operator, allow for it. Anything else is refused before anything is sent, and the message says what to add.

**1. Read the refusal**

The message names the variable and the address, for example "MONO\_KEY\_CUSTOM is not allowed for api.example.com on your server".

**2. Add the line**

In the server's settings file (`/etc/mono/node.env`, with Docker `.env`, in Kubernetes the Secret `node.env`) add `MONO_KEYS_FOR=MONO_KEY_CUSTOM=api.example.com`. Separate several addresses with commas and several variables with semicolons: `MONO_KEYS_FOR=MONO_KEY_CUSTOM=api.example.com,api2.example.com;MONO_KEY_MISTRAL=api.mistral.ai`. With `install.sh`, use `--keys-for`. If your server has several Mandanten, name in each entry after «@» the Mandant it is for: `MONO_KEYS_FOR=MONO_KEY_CUSTOM@muster-ag=api.example.com`, for several `@muster-ag,firma-b`. An entry without a Mandant holds only on a server with exactly one Mandant; on a server with several it holds for none, and the log names it at start (`env_keys.no_mandant`).

**3. Restart the server**

Docker: `docker compose up -d`. systemd: `systemctl restart mono-node` (or `mono-node@<tenant>`). Kubernetes: replace the Secret and restart the pod.

**4. Connect again**

The admin names the variable once more. On every way, the audit shows which variable went where.

> [accordion] What is never allowed, and what holds after the update
>
> * The variables your server uses itself never belong to a system or provider, not even with `MONO_KEYS_FOR`: `MONO_KEY_CONNECT`, `MONO_KEY_WORKER` and the keys of the instances and speech engines in your settings. Create a variable of its own for such an address.
> * A reference set up before 0.6.16 keeps working after the update for exactly the address it had then. If the address changes, Mono removes the reference, like a stored key.
> * Except: a reference to a variable your server uses itself (for example `MONO_KEY_CONNECT`) ends at the update. The system or provider then lacks its key; an admin enters one of their own through the one-time key link. The audit and the log (`env_keys.own_ended`) name each such reference. Every reference that still holds is in the log at each start (`env_keys.kept`): check that every address there is yours, and otherwise replace the key.
> * The same rule holds for `MONO_IDP_…` of a sign-in method an admin adds: never a name your server's own sign-in uses, otherwise only for the issuer you name in `MONO_KEYS_FOR` (for example `MONO_IDP_OIDC_SECRET=login.firma.ch`). A sign-in method from before the update that uses one of your server's own variables keeps working, so nobody is locked out; the log names it at each start (`identity.secret_own`). Have the admin enter a key of their own, then replace the variable.
> * Mono Cloud and the Private Cloud read no variables. There a key goes on the key page.
> * The whole list is yours, as the operator: at start the server logs every `MONO_KEY_…` variable without a line in `MONO_KEYS_FOR` (`env_keys.unlisted`), with the line to add. Never with the value.
> * `MONO_KEYS_FOR` names host names: every port and every path of that host gets the key. A host that serves several customers by path (a hook or function service) therefore gives it to all of them. The whole line to set is in the log at start (`env_keys.line`) – check that every host in it is yours.
> * Operations shows a Mandant's admins under "Keys from the settings" only their own systems and providers that name a variable, and whether it is allowed for their address – never another Mandant's address and never a variable none of their systems names.
> * Without a variable it always works: the one-time key page stores the key in the server's key store.

## In the chat

If “Mono Admin” is connected, you ask in Claude or ChatGPT how your Node is running.

Shows the Node's version, health, updates and backup.

Which version runs on our Node, and who does updates and backups?

“Mono Admin” shows the card “Operations”: the version and where the Node runs, the measured health, updates and backup, each with the next step.

Installs the next update. Mono asks with “Please confirm”.

Update the Node now.

The change comes as the card “Please confirm” and applies only after your click in the card. The installation itself, the reachability and the setup link exist only on the host: no chat ever sees the link.

## If something does not work

| What you see | What you do |
| - | - |
| “Docker is missing – install Docker Engine with the Compose plugin, or use --mode systemd” | Install Docker or use the “Linux without Docker” line. |
| “Node.js 22 is missing (systemd mode) – or install Docker” | Install Node.js 22 or use Docker. |
| “Node.js 22.13 or newer needed (found …)” | Install Node.js 22 and link it to `/usr/bin/node`. |
| “unsupported architecture … – amd64 and arm64 only” | Install a 64-bit system. |
| “port … is in use – … is free: leave --port out, or choose another with --port” | Leave `--port` out; the installer takes the first free port. |
| “--updates needs cosign 2.6 or newer on the PATH …” | Install cosign 2.6 or later, or run the line without `--updates`. |
| Operations › Updates: “Automatic: on, but halted” | cosign is missing on the host. Install cosign 2.6 or later. |
| “The setup link has expired” or “This setup link is not valid” | On the server, `sudo mono setup-link --mandant muster` gives a new one, see “A new setup link”. |
| “Muster AG is already set up” | The Node already has an admin. Sign in as usual. |
| `/readyz` reports an error | [Health and diagnosis](https://mono.mintlify.site/en/admins/health-and-diagnosis.md) explains the codes. |

## Next

> [card] [Custom address](https://mono.mintlify.site/en/admins/own-address.md)
>
> Your own name with one DNS record.

> [card] [Connect an AI client](https://mono.mintlify.site/en/admins/connect-ai-client.md)
>
> “Mono Admin” in Claude, ChatGPT or Copilot.

> [card] [Mono on Kubernetes](https://mono.mintlify.site/en/admins/kubernetes.md)
>
> The Helm chart, one Pod, one volume.

> [card] [Remove Mono from the host](https://mono.mintlify.site/en/admins/leave-mono.md)
>
> One line with `--uninstall`: what goes, what stays.

> [card] [Getting started, self-hosted](https://mono.mintlify.site/en/getting-started/admins-self-hosted.md)
>
> The whole start in one go.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.