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

# Connect the office NAS and scanner to Mono

> Muster AG's Zurich office brings its Synology NAS and network scanner to Mono through a Mono Connector and asks Claude about a scanned letter.

30 minutesIntermediateIT adminsAll industries

Muster AG's Zurich office has a Synology NAS with the file share and a network scanner that scans into a folder on the NAS. Anna Keller pairs a Mono Connector (Connects devices on site to the Node, outward only.) on the NAS, chooses the folders and the scan inbox and decides who may do what. Then Lea Meier asks Claude about a letter that was scanned in the morning.

> [!NOTE]
>
> The companies, people and addresses in this tutorial are examples. Use the names and addresses of your own tenant.

## The goal

```mermaid theme={"system"}
flowchart LR
  S[Scanner] -->|scans into folder| N[NAS Büro Zürich]
  N --- C[Mono Connector]
  C -->|outbound only, HTTPS| K[Node Muster AG]
  K --> W[Knowledge: scan inbox]
  K --> M[Tenant server]
  M --> CL[Claude]
```

> [accordion] What you need
>
> * **In Mono:** Admin rights at Muster AG.
> * **On the NAS:** Container Manager (Docker) is switched on. For the line in a terminal you need SSH and an account with full sudo; without both, take the tab “Synology / QNAP” in “Pair device”: a ready project for Container Manager, no terminal. The folders already exist, for example `/volume1/Ablage`, `/volume1/GL` and `/volume1/Scans/Eingang`.
> * **On the scanner:** “Scan to Folder” into the folder `Scans/Eingang` on the NAS, as a searchable PDF.
> * **For Lea:** Claude is connected to the tenant server (The MCP server for all employees, with the tenant's name.) “Muster AG”.

> [accordion] Why a Mono Connector and not an open port?
>
> The Node does not reach any device in the internal network on its own. The Mono Connector on the NAS connects to the Node outward only, over HTTPS, and picks up its jobs there. The office needs no open port and no VPN.

## Step by step

**1. Get the line for pairing**

> [tab] In the Console
>
> 1. Open “Connectors” and choose “Pair device”. The same way leads through “Operations” › “Add” › “Pair a device at a site”.
> 2. Choose the tab “Docker”. It applies to servers and NAS devices with Docker, including Synology.
> 3. Copy the command. The code in it is valid once and for 15 minutes.

> [tab] In the chat
>
> Ask “Mono Admin”:
>
> Pair a Mono Connector
>
> Pair a new Mono Connector for a Synology NAS with Docker.
>
> “Mono Admin” gives you the line with a new pairing code. You then compare the verification code in the Console, never in the chat.

**2. Run the line on the NAS, with the folders**

Sign in to the NAS over SSH. Append the folders Mono should use to the copied line. The name before the “=” is the name Mono and Claude see.

```bash Docker (Synology, QNAP) theme={"system"}
curl -fsSL --proto '=https' --proto-redir '=https' --max-redirs 2 https://ki.muster.example/connector/install.sh | sudo bash -s -- --mode docker --code 7Q4K-2D9M \
  --no-models \
  --share "Ablage=/volume1/Ablage:rw" \
  --share "Geschäftsleitung=/volume1/GL" \
  --scan-inbox "Scan-Eingang=/volume1/Scans/Eingang"
```

```bash Linux (server with SMB shares) theme={"system"}
curl -fsSL --proto '=https' --proto-redir '=https' --max-redirs 2 https://ki.muster.example/connector/install.sh | sudo bash -s -- --code 7Q4K-2D9M \
  --no-models \
  --share "Ablage=//nas-zuerich/Ablage:rw" \
  --share "Geschäftsleitung=//nas-zuerich/GL" \
  --share-user svc-mono \
  --scan-inbox "Scan-Eingang=//nas-zuerich/Scans/Eingang"
```

The line downloads the Mono Connector from your Node, checks its checksum and installs the container with the update helper. At the end, the terminal shows the verification code.

> [accordion] What do “:rw”, “--no-models” and “--scan-inbox” mean?
>
> * **`--share`** is a network drive. Without “:rw”, Mono only reads there. With “:rw”, Mono may save new text files if the Console allows it as well.
> * **`--scan-inbox`** is the folder the scanner writes into. New scans go into the knowledge, and the file then moves to the subfolder `verarbeitet/<date>/`.
> * **`--no-models`**: No model server runs on the NAS.
> * Folders under `/home` are blocked for the service.

**3. Compare the verification code and pair**

1. The Console shows “Device “…” is reporting” and the question “Does the device show this code?”.
2. Compare the code with the terminal.
3. Enter `Büro Zürich` under “Name”.
4. Choose “Code matches, pair”.

> [!WARNING]
>
> If the code does not match, choose “Decline”. Then the device gets no jobs, and the code is used up.

> [!TIP]
>
> You now see “Paired as “Büro Zürich”, online”.

**4. Decide who uses which folder and where Mono may save**

Under “The device offers”, every folder is listed with “Decide later” (the default: it waits, Mono reads nothing of it) and “Choose now”. With “Choose now”, “Data class” and “For” appear, both empty until you choose them; next to them “Allow saving”.

| Folder | Data class | For | Allow saving |
| - | - | - | - |
| Ablage | internal | Everyone (default) | on |
| Geschäftsleitung | confidential | MA-Geschäftsleitung | off |
| Scan-Eingang | internal | Everyone (default) | – |

Later, you change each row under “Connectors” for the device “Büro Zürich”, in the row's menu. A changed row shows “customized”, and “Reset to default” restores it.

![Area “The device offers” with three rows: Ablage (internal, Everyone, “Allow saving” on), Geschäftsleitung (confidential, MA-Geschäftsleitung), Scan-Eingang (internal); tenant Muster AG (shown in German)](https://mintcdn.com/mono/5RnQocbG46juhcKu/images/shares-scan-legacy/das-geraet-bietet-an.png?fit=max\&auto=format\&n=5RnQocbG46juhcKu\&q=85\&s=ef9e139b7cdec8739e08167ac92210eb)

> [accordion] What applies to saving?
>
> Mono only saves new text files (.txt, .md, .csv), never overwriting, and each file only after the person's approval. For that, the folder needs “:rw” on the device and “Allow saving” in the Console. If one of them is missing, Mono saves nothing there.

> [accordion] Does Mono sort scans into folders automatically?
>
> Yes, from Mono 0.4.3 with a filing rule: it saves every new scan that matches as a copy into a folder of the share, by type and customer, each filing after an approval in the Inbox. Every scan also goes into the tenant's knowledge, and the file moves to `verarbeitet/<date>/` in the scan inbox. How it works: [File new scans with filing rules](https://mono.mintlify.site/en/admins/filing-rules.md).

> [accordion] Who sees Geschäftsleitung?
>
> Only people in the group “MA-Geschäftsleitung”, admins too only through their groups. In addition, Mono withholds “confidential” from every AI client that IT has not approved for it, and says so in the chat.

**5. Scan a letter**

Put a letter into the scanner and scan it into the folder `Scans/Eingang`. The Mono Connector checks for new files every 5 seconds.

> [!TIP]
>
> You now see “last scan” with the time for the scan inbox. On the NAS, the file is in `Scans/Eingang/verarbeitet/`.

**6. Lea asks Claude about the letter**

Today's scans

Which scans arrived in the scan inbox today?

A question about a scan

What does the tax administration ask for in the letter that was scanned this morning, and by when?

Claude first lists the scans with time, type and pages. The answer to the second question comes from the scan's text, with the source.

> [!TIP]
>
> You now see the answer about the letter and, below it, the source from the scan inbox.

## If something doesn't work

> [accordion] “This pairing code is not valid (anymore). Create a new one in the Console.”
>
> A pairing code is valid once and for 15 minutes. Choose “New code” in the sheet and run the new line. The Console says “The code has expired. Create a new one.”.

> [accordion] “Please run with sudo: …” or “docker is missing”
>
> The line needs root rights: keep `sudo bash`. If your account may only run `sudo docker`, take the tab “Synology / QNAP” in “Pair device” – the project runs in Container Manager without a terminal and without sudo. If Docker is missing, install Container Manager on the Synology NAS and run the line again.

> [accordion] “no such host” or “Could not resolve host” while pulling the image
>
> The NAS cannot find your server’s address. In DSM, check the DNS server under Control Panel › Network › General (for example your router’s): the NAS must reach your server under the same name as the Console. Then create the project again.

> [accordion] Memory of the Mono Connector
>
> The project limits it to 1 GB (“mem\_limit”). That is a ceiling, not a reservation: the Mono Connector takes only what it needs, and a small NAS stays free. Do not set the limit below 768 MB – under it, it reads scans without PDFium and says so under Operations › Coverage.

> [accordion] “The release does not match the checksum. Nothing was installed.”
>
> What the NAS downloaded is not your Node's release. Check the address in the line and any proxy in the office, and get the line again from the Console.

> [accordion] “--scan-inbox “…”: the folder … does not exist”
>
> The folder must exist before the installation. Create it on the NAS and run the line again with a new pairing code.

> [accordion] The tab “Docker” is grayed out: “This Node does not provide a container image yet”
>
> Your Node does not offer the Mono Connector's image yet. Use the line in the tab “Linux” on a Linux server that mounts the NAS shares over SMB.

> [accordion] A scan has no text
>
> The Mono Connector reads images and scanned PDFs with text recognition (Tesseract) in German, French, Italian and English. The image and the installers bring it along. If it is missing on a device, “Operations” says so with the device's name. Then install the Mono Connector again. Mono reads a scan most reliably when the scanner writes a “searchable PDF”.

> [accordion] “Paired as “Büro Zürich”. The device hasn’t reported yet. …”
>
> Open “Diagnosis”. It shows the device's connection, version and network. On the NAS, `docker logs mono-connector` shows what the Mono Connector reports.

> [accordion] “The Mono Connector “Büro Zürich” is not responding right now. Please try again later.”
>
> The NAS is off or has no internet. A device counts as offline when it has not reported for more than 90 seconds. Check the diagnosis under “Operations” › “Sites”.

> [accordion] Lea gets “You have no access to any scan inbox.”
>
> Under “For”, the scan inbox lists a group Lea is not in. Choose “For” › “Everyone” or Lea's group in the row's menu.

> [accordion] “Saving is switched off in “Ablage”. An admin can switch it on in the Console.”
>
> Choose “Allow saving” in the menu of the row “Ablage”. If it says “Set up on the device for reading only (without “:rw”)”, the line on the NAS lacks “:rw”. Then install again with “:rw” and a new pairing code.

> [accordion] Keys and OAuth2 on a project (Synology / QNAP): “The device does not know this sign-in yet”
>
> When the Mono Connector runs as its own project in Container Manager or Container Station, neither a key nor the OAuth2 sign-in (client credentials) of a system in your own network reaches the container. The steps Mono shows for it are for the install with the line; the project has its own compose file, and an update does not change it. From Mono 0.6.13, Mono shows the steps for the project too.
>
> From 0.6.13, Mono asks how the device runs, shows the steps for the project and, after an update, says on the device: “The device does not know this setting yet: …”. A project you create in “Pair device” from 0.6.13 on already has the lines. An older project you complete once like this; you need SSH and an account with sudo.
>
> 1. Create the key file with the first step Mono shows.
> 2. In the compose file in the project folder (Synology `/volume1/docker/mono-connector`, QNAP `/share/Container/mono-connector`), add to the service `connector` under `environment:` the three lines `MONO_CONNECTOR_SYSTEMS_KEYS: ${MONO_CONNECTOR_SYSTEMS_KEYS:-}`, `MONO_CONNECTOR_SYSTEMS_OAUTH: ${MONO_CONNECTOR_SYSTEMS_OAUTH:-}` and `MONO_CONNECTOR_SYSTEMS_CA: ${MONO_CONNECTOR_SYSTEMS_CA:-}`, and under `volumes:` the line `- /etc/mono/systems:/run/mono-systems:ro`.
> 3. Put the line `MONO_CONNECTOR_SYSTEMS_KEYS=…` or `MONO_CONNECTOR_SYSTEMS_OAUTH=…` that Mono shows into the file `.env` in the project folder.
> 4. Restart the project, in Container Manager or Container Station (stop the project and build it again) or in a terminal:
>
> ```bash theme={"system"}
> cd /volume1/docker/mono-connector
> sudo docker compose up -d
> ```
>
> If `sudo docker` is not found, call Docker by its path, on Synology for example `sudo /usr/local/bin/docker compose up -d` or `sudo /var/packages/ContainerManager/target/usr/bin/docker compose up -d`.
>
> Not yet checked on QNAP: whether the compose file is named `docker-compose.yml` there and whether the folder `/etc/mono/systems` survives a restart of the NAS.

## Result

The Mono Connector “Büro Zürich” runs on the NAS and connects outward only. Ablage, Geschäftsleitung and Scan-Eingang are in Mono, each with its own data class and its own groups. Every scan lands in Muster AG's knowledge, and Lea asks Claude about it. Mono only saves new files in Ablage, and each only after an approval.

## Next

> [card] [Invoices from the scan inbox](https://mono.mintlify.site/en/tutorials/treuhand-scan-invoices.md)
>
> Treuhand Berg AG has Claude list the incoming invoices.

> [card] [Pair a Mono Connector](https://mono.mintlify.site/en/admins/pair-connector.md)
>
> Every platform, every line, updates and diagnosis.

> [card] [File share, scan inbox and legacy system](https://mono.mintlify.site/en/admins/shares-scan-legacy.md)
>
> All folder types, rights and limits in detail.

> [card] [Ask your documents](https://mono.mintlify.site/en/users/ask-your-documents.md)
>
> How employees ask about documents and scans in the chat.


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