> ## 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.

# Run many Nodes from one topology

> You describe all your customers’ Nodes in one file, have Mono check it, generate the files for every host and check the running setup read-only.

A topology is a file that describes your whole setup: which Consoles, Nodes, model servers and Mono Connectors there are, which hosts they run on and how they are connected. `pnpm mono` checks the file, explains it, writes the files for every host and then compares the running setup with it. This page is for IT partners and operators who host several Nodes themselves.

```mermaid theme={"system"}
flowchart LR
  T["topologie.json"] --> P["plan: check and explain"]
  P --> R["render: files per host"]
  R --> H["Host: run STEPS.md"]
  H --> D["doctor: check read-only"]
  D -.-> T
```

> [accordion] What you need
>
> * A checkout of the Mono source code with Node.js 22.18 or newer and pnpm. See [Run Mono from source](https://mono.mintlify.site/en/developers/run-from-source.md).
> * Your topology as a JSON file. The examples in the `deploy/topologies/examples` folder serve as templates.
> * Access to the hosts the Nodes run on.

## Apply the topology

**1. Choose an example as a template**

Copy the example closest to your setup and enter your tenants, hosts and addresses.

| Example | What it shows |
| - | - |
| `4-partner-shared-hardware.json` | An IT partner with one Node per tenant on the partner server, a partner Console and a shared GPU box that never gets “confidential” |
| `7-partner-mono-edge.json` | Two Nodes on one server, reachable through Mono Edge, one customer with its own name by CNAME |
| `9-kubernetes-talos-pi-cluster.json` | A Node as a Helm release on three Raspberry Pis with Talos Linux, plus a Mono Connector to the GB10 in the office |

**2. Check the topology**

`plan` shows what goes where and which data classes run where, and names errors and hints. On an error, Mono stops.

```bash 4-partner-shared-hardware theme={"system"}
pnpm mono plan deploy/topologies/examples/4-partner-shared-hardware.json
```

```bash 7-partner-mono-edge theme={"system"}
pnpm mono plan deploy/topologies/examples/7-partner-mono-edge.json
```

```bash 9-kubernetes-talos-pi-cluster theme={"system"}
pnpm mono plan deploy/topologies/examples/9-kubernetes-talos-pi-cluster.json
```

**3. Generate the files**

`render` writes a folder for every host with the settings of every Node, the Console’s `config.json` and the steps in `STEPS.md`. Mono never writes secrets into them.

```bash 4-partner-shared-hardware theme={"system"}
pnpm mono render deploy/topologies/examples/4-partner-shared-hardware.json --out ./out
```

```bash 7-partner-mono-edge theme={"system"}
pnpm mono render deploy/topologies/examples/7-partner-mono-edge.json --out ./out
```

```bash 9-kubernetes-talos-pi-cluster theme={"system"}
pnpm mono render deploy/topologies/examples/9-kubernetes-talos-pi-cluster.json --out ./out
```

**4. Run the steps on every host**

Copy the host’s folder there and run the steps from `STEPS.md`. You enter keys only on the host itself.

**5. Check the setup**

`doctor` only reads and changes nothing. It checks every Node, every model server and every Console against the topology and ends with code 1 if something is wrong.

```bash 4-partner-shared-hardware theme={"system"}
pnpm mono doctor deploy/topologies/examples/4-partner-shared-hardware.json
```

```bash 7-partner-mono-edge theme={"system"}
pnpm mono doctor deploy/topologies/examples/7-partner-mono-edge.json
```

```bash 9-kubernetes-talos-pi-cluster theme={"system"}
pnpm mono doctor deploy/topologies/examples/9-kubernetes-talos-pi-cluster.json
```

> [!TIP]
>
> `pnpm mono doctor` shows ✓ for every Node and ends without errors.

## What the topology governs for IT partners

* **The customer list.** For a partner Console, the public `config.json` names only your own firm’s Node. `render` writes the customers into that Node’s settings (`MONO_CUSTOMERS`). The Console reads them there only after sign-in. Under “Settings › Connection”, they show “From the settings of Muster IT”. They can be changed only in the topology or in the Node’s settings.
* **The first admins.** `signIn.admins` names the admins per tenant, `signIn.setupPartner` the IT partner who sets up the Node. Then no Node needs a setup link, and “Sign in everywhere” signs you in everywhere.
* **Ring and maintenance window.** `updates` sets them per host, per Node or for all. The Console shows them read-only.
* **Data boundaries.** Mono refuses whatever mixes two tenants: the same state directory, the same sign-in app, the same address or the same port on a host. A GPU box for several tenants needs `sharing` and never gets “confidential”.

> [accordion] Which commands are there?
>
> | Command | What it does |
> | - | - |
> | `pnpm mono plan <file>` | Checks and explains: what goes where, data classes, errors, hints, open items |
> | `pnpm mono render <file> --out ./out` | Writes one folder per host |
> | `pnpm mono render <file> --root / --host <host>` | Writes directly on the host, in a checkout there |
> | `pnpm mono render <file> --templates <folder>` | Writes flat files that you keep in Git |
> | `pnpm mono doctor <file>` | Checks the running setup read-only. With `--host <host> --local` on the host itself |
> | `pnpm mono doctor --diagnosis report.txt` | Reads a report that was copied with “Copy report” from a “Diagnosis”. Without topology and without network |
>
> With `--lang fr`, `--lang it` or `--lang en`, `pnpm mono` answers in your language.

> [accordion] What does a second “render” change?
>
> A second `render` and `install.sh --settings` take over the new values. Every line you added on the host yourself stays with its comment, and a key on the host stays even if its line in the file is empty. Never edit the generated files by hand.

> [accordion] What does “doctor” check for a partner Console?
>
> `doctor` checks whether the Console’s `config.json` names only its own Node. If it names customers publicly, that is an error. Under “Versions”, it compares each Node’s version with its ring. A release on its way through the rings is a hint.

> [accordion] How does this relate to “Set up server …”?
>
> If a customer on your customer list does not answer, “All tenants” shows “Set up server …” for it. The window leads through the same four steps: enter the tenant in the topology, `render`, the steps on the host, `doctor`. See [A tenant does not answer](https://mono.mintlify.site/en/partners/all-tenants.md#a-tenant-does-not-answer).

> [accordion] What the topology cannot do today
>
> * A Node has exactly one writer. Mono refuses `active-active`; a cold standby on a second host is available.
> * The commands install nothing. You run the steps on every host yourself.

## In the chat

“Mono Admin” is connected to exactly one Node and reads no topology: `plan`, `render` and `doctor` run in the terminal. Ask a tenant’s “Mono Admin” about its Node’s state or its tenant notes:

This Node’s state: version, backup, updates.

How is operations doing?

Where the Node runs, from the tenant notes.

Show the tenant notes on Nodes and hosts.

## If something does not work

| What you see | What you do |
| - | - |
| `console-origin`: the Console’s address is missing in `MONO_CONSOLE_ORIGINS` | Generate the files again and run `install.sh --settings` on the host. Mono derives the value from the Consoles that name the Node. |
| `shared-instance-not-allowed` | Several tenants on one model server only with `sharing`. |
| `port-clash`, `public-url-shared`, `state-dir-shared` | Two tenants share a port, an address or a directory on a host. Give every tenant its own. |
| `secret-field`, `secret-value` | A secret is in the topology. Name keys only as `env:MONO_KEY_…`. |
| `/readyz` reports `idp: placeholder_left` | A sign-in setting still contains a placeholder `<…>`. Enter the real value. |

## Next

> [card] [Run Mono in Kubernetes](https://mono.mintlify.site/en/admins/kubernetes.md)
>
> One Helm release of mono-node per tenant.

> [card] [Set up the next customer in one hour](https://mono.mintlify.site/en/partners/next-customer.md)
>
> A single customer without a topology.

> [card] [See updates across all customers](https://mono.mintlify.site/en/partners/updates-across-tenants.md)
>
> Ring and window in the Console.

> [card] [Keep a standby Node ready](https://mono.mintlify.site/en/admins/standby.md)
>
> The cold standby on a second host.


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