# General configuration

:::tip
Menu → System settings → General configuration

:::

**General configuration** is the central panel for the OmniMES system settings and the integration with external services. Here the administrator configures the connection to the MQTT broker, the Redash instance, the whole AI configuration (connections to model providers, models for the AI features and AI assistants connected over MCP), the mail server for sending reports and the partner logo.

The panel is divided into **five tabs** - **Broker**, **Redash**, **AI**, **Email**, **Branding**. After making changes, you save them with the **Save** button, which shows a **confirmation window with the list of changed settings** (see *Saving changes*).

## Broker settings (MQTT)

Configuration of the connection to the MQTT broker through which the system receives data from machines in real time (the **Sparkplug B** protocol):

* **Broker name** - a descriptive label,
* **Broker address** - an IP or domain/host name,
* **Login** and **Password** - authentication data (the live view account in the browser; the stream uses it when it has no account of its own - the **Stream MQTT account** field),
* **Stream MQTT account** and **Stream account password** - the stream's own broker account (role *Stream*: reads all Sparkplug B topics and sends the rebirth request), created by the installer or by `manage.py konta_mqtt uslugi`; empty = the stream uses the login and password above. Gateway accounts are created on the [**MQTT accounts**](https://docs.omnimes.com/doc/mqtt-accounts-7PUs8mbSHY) screen,
* **Port** - the broker port (e.g. 8083 for WebSocket),
* **Topic** - the topic pattern (e.g. `spBv1.0/#`),
* **QOS (0-2)** - the message delivery quality level of the live view (0 = default); the stream always subscribes with QoS 1 or higher,
* **Reconnect time (ms)**, **Keepalive time (ms)**, **Connection timeout (ms)**,
* **Client name** - the MQTT client ID prefix; the browser appends a random number, the stream a fixed installation ID (`<prefix>stream_<id>`).


:::info
**Stream: persistent session and outages.** With **Clean session** turned off (recommended, the default) the stream keeps a persistent session on the broker under a fixed client ID: the broker stores messages while the stream is unavailable (restart, update) and delivers them once it reconnects. When the database temporarily cannot accept writes, the stream keeps the measurements in a buffer on disk (up to 256 MB by default) and writes them once the database is back; it also starts when the database is down, using the last saved signal filter and settings. Every 15 s the stream records its state (broker connection, database, disk buffer) - the Docker health check of the `stream` container uses it.

:::


:::info
**Sparkplug B.** The stream handles the full Sparkplug B cycle: birth messages (NBIRTH/DBIRTH) with metric aliases, message sequence numbers (seq) and death messages (NDEATH/DDEATH). When a message is missing or an unknown alias arrives, the stream asks the gateway to resend its state (rebirth). Boolean values are stored in the history as 1 and 0, and statuses configured as `true`/`false` work in the history the same way as in the live view. Devices without birth messages (e.g. the simulator, the plain MQTT bridge) work as before.

:::

 ![](https://docs.omnimes.com/api/files.get?sig=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJrZXkiOiJ1cGxvYWRzLzRlMDdmZmNhLThmZjAtNDYxYy1iYjEyLTA2OTEyZGRiOGQzNi8zMmE5OWZkYi0xMGZlLTRhMTItOGY4Ni01NzExMjA4OTdiMTIvMDFfYnJva2VyLnBuZyIsInR5cGUiOiJhdHRhY2htZW50IiwiaWF0IjoxNzk1NDMwNzAwLCJleHAiOjE3OTU1MTcxMDB9.1V8LpXwSYGCMQPv-N9Z7aDvC9mFvg8vJpIPmf-YcBtE " =1680x950")

### Broker ports and encryption

The MQTT broker (**EMQX**) exposes four ports. Two are encrypted, two are not - the port you choose decides whether machine data travels across the network in clear text:

| Port | Protocol | Who connects | Encrypted |
|------|----------|--------------|-----------|
| **1883** | MQTT over TCP | devices, stream | **no**    |
| **8883** | MQTT over TLS (`mqtts`) | devices, stream | **yes**   |
| **8083** | MQTT over WebSocket (`ws`) | browser (live view) | **no**    |
| **8084** | MQTT over WebSocket with TLS (`wss`) | browser (live view) | **yes**   |

Selecting `mqtts` as the protocol means an encrypted connection - use port **8883** rather than 1883. The same applies to the browser live view: **8084** instead of 8083.

### Cloud installation (OmniPlatform)

When a cloud instance is provisioned, the live view is set automatically to port **8084** (WebSocket with encryption) on the instance's dedicated domain. The stream and device connections are configured separately, and that is where you should deliberately choose **8883** over 1883.


:::info
**Broker certificate.** The broker starts with the certificate bundled in the EMQX image. It is a self-signed certificate, identical across all EMQX installations and **not tied to the instance domain** - unlike the interface HTTPS certificate, which is issued automatically for the client's domain. Two consequences follow:

* an MQTT client connecting over 8883 or 8084 must either have **certificate verification disabled** or import the broker certificate as trusted,
* encryption protects the transmission from eavesdropping but **does not prove the server's identity**.

For a production deployment we recommend installing **your own certificate** - the same one that covers the instance domain - in the broker's `etc/certs/` directory (files `cert.pem` and `key.pem`) and restarting the broker service.

:::


:::tip
If every device on the shop floor supports TLS, **restrict access to the unencrypted ports** (1883 and 8083) at the firewall - to the local network or to specific addresses. They are open by default because some older controllers cannot use encryption.

:::

 ![](https://docs.omnimes.com/api/files.get?sig=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJrZXkiOiJ1cGxvYWRzLzRlMDdmZmNhLThmZjAtNDYxYy1iYjEyLTA2OTEyZGRiOGQzNi9lMjlkOTNiMS1kZTU1LTRhZGQtOTg1YS1jODJlNWNjZjAzMjgva29nX2Jyb2tlci5wbmciLCJ0eXBlIjoiYXR0YWNobWVudCIsImlhdCI6MTc5NTQzMDcwMCwiZXhwIjoxNzk1NTE3MTAwfQ.UBMBxI65cDmE0Up5XqrXMbB33ZeVlvWIAyG3f9BATDI)

## Redash settings

Connecting the **Redash** instance used for data visualization (BI dashboards):

* **Redash address** - the instance URL (e.g. `https://dash.omnimes.com/`); the **Open Redash** button next to the field opens Redash in a new browser tab (an address entered without `http://` or `https://` is opened as `https://`),
* **Redash token** - the Redash administrator API key. The system does not show the saved key: the field is empty and its hint tells whether a key is saved (**Key saved (hidden)**). Enter a new key to change it; an empty field keeps the saved one. Only the OmniMES server knows the key - the screens (Desktops, the home dashboard, BI dashboard reports) reach Redash through the OmniMES API, so the key never reaches the browser,

 ![](https://docs.omnimes.com/api/files.get?sig=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJrZXkiOiJ1cGxvYWRzLzRlMDdmZmNhLThmZjAtNDYxYy1iYjEyLTA2OTEyZGRiOGQzNi80MTE1ZDViZC1lNGQwLTRhMzItYjA0Yi05NDA0MTVlYmIxYzEvZ2VuZXJhbF9jb25maWd1cmF0aW9uX3JlZGFzaF9rZXlfaGlkZGVuLnBuZyIsInR5cGUiOiJhdHRhY2htZW50IiwiaWF0IjoxNzk1NDMwNzAwLCJleHAiOjE3OTU1MTcxMDB9.S93x7PIhnWwpn-OsxqPwT-d5F9d_CDwfvu7nkvA_5s8)

* **OmniMES API address as seen from Redash** - the address at which the Redash server connects to the OmniMES API when it runs data queries (default `http://api:8091/` - the name of the API service in the Docker network). A browser address such as `http://localhost:8091` does not work from inside Redash. An empty field means the API address from the application configuration.

After configuring this data, it is possible to embed Redash dashboards in the system and use the [**Desktops**](https://docs.omnimes.com/doc/desktops-AoJWhHoO2X) module.


:::info
The server takes BI dashboard reports (snapshots) only from the Redash at the **Redash address** - the same host and port. A dashboard at another address is rejected with the message "The dashboard address … is not the Redash address from system settings". After changing the address (e.g. a new domain), open the recurring BI dashboard reports, select the dashboard again and save.

:::


:::info
From version 4.8.0 this section no longer shows the **Access to BI data** panel. The server administrator checks Redash's access to OmniMES data with the command `docker compose exec api python manage.pyc redash_bi --raport` (in the `omnimes` directory).

:::

## AI tab

The **AI** tab is the single AI configuration of OmniMES. Here the administrator decides whether the AI features are on, which model providers the OmniMES server connects to and which model handles which task, and connects external AI assistants over MCP.

At the top of the tab there are three **status cards**, which also switch between the parts of the tab:

* **AI models** - whether AI is on and how many model tiers are ready (e.g. **Tiers ready: 2 of 3**); this part holds the **AI in OmniMES**, **Models by task** and **Provider connections** sections,
* **AI assistants (MCP)** - the number of users' personal connections, the assistant change mode and the OAuth sign-in status,
* **Usage (30 days)** - the number of AI calls and errors.

The tag on a card shows **Ready**, **To do** or **Off**. When something needs attention, a **To do** list appears under the cards - each item says what does not work and has a button that takes you straight to the place to fix it, e.g. *Advanced tier: the “Claude” connection has no API key.* → **Edit connection**, or *No MCP server address — users cannot connect their AI assistants.* → **Set the address**. The selected part stays in the page address (`/settings?tab=ai&cz=modele`, `cz=asystenci`, `cz=zuzycie`), so a refresh or a shared link opens the same place.

Longer explanations are in tooltips - hover the **ⓘ** icon next to a field.

 ![](https://docs.omnimes.com/api/files.get?sig=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJrZXkiOiJ1cGxvYWRzLzRlMDdmZmNhLThmZjAtNDYxYy1iYjEyLTA2OTEyZGRiOGQzNi9hNzdlZjcxNy0wZDc2LTQxZTktOGRmMC1kMjFhZGEyNzNkNGEva29nX2FpLnBuZyIsInR5cGUiOiJhdHRhY2htZW50IiwiaWF0IjoxNzk1NDMwNzAwLCJleHAiOjE3OTU1MTcxMDB9.uIioAW9Qdo4XbDCIyoPfkitLAdM5pJydszszaM2j8YU)

### Quick setup

When there is no working connection to an AI model (enabled, with a key and without a failed test), a **Quick setup** box appears at the top of the **AI models** part:


1. Paste a **Claude API key** (create it in the Claude Console - link under the field).
2. Click **Connect and set models** (or **Test** first). OmniMES checks the key without using tokens, saves the **Claude** connection (an existing Claude connection gets the key, otherwise a new one is created) and sets the recommended models on all three tiers right away: **Fast** - Claude Haiku 5.5, **Standard** - Claude Sonnet 5.5, **Advanced** - Claude Opus 5.5.

Quick setup saves immediately, without the screen's **Save** button. For another provider (OpenAI-compatible API, Ollama) the **Other provider (OpenAI-compatible API, Ollama)…** link opens the regular connection window.

### AI in OmniMES

This section covers the features in which **the OmniMES server itself calls an AI model**:

* [**Desktops**](https://docs.omnimes.com/doc/desktops-AoJWhHoO2X) - **Build query**, **Suggest SQL** and **Suggest chart**,
* **energy audits** (OmniEnergy) - **Write findings (AI)**, **Write recommendations (AI)** and **Write summary (AI)**.

You talk to AI about your data in the AI assistant connected via MCP (user menu → [**AI assistant connection**](https://docs.omnimes.com/doc/ai-assistant-connection-Xbr2840qoC), described in the **AI assistants (MCP)** part below). The former **AI assistant analysis**, **Ask AI question** and the App Studio Builder chat were removed in version 5.0.1; their earlier calls are still listed under **Usage** (described as a removed feature).

Fields in this section:

* **AI on** - when off, the AI buttons disappear from the screens and the server rejects AI feature calls with a readable message. AI assistants connected over MCP work regardless of this switch,
* **Company context for AI** - text added to every AI request in OmniMES. Write briefly: company name, industry and products, units (e.g. pieces, kg, kWh), shifts and working hours, which language and how concisely to answer.


:::info
**Company context for AI** replaces the former **Assistant characteristics** and **Main query** fields (separate for each AI type). Your own texts from those fields were moved into the company context during the update. The query length and number of documents limits are no longer set on this screen.

:::

### Provider connections

A connection is an AI model provider with an API key. The table shows the **Connection** (name and provider, marked **off** for a disabled connection), **Address and key** (the address and the last characters of the key), the **Tiers** that use the connection and the **Status** - the result of the last test. **Add connection** opens the window for a new connection, and each row has **Test**, **Edit** and delete buttons.

| Provider | When to choose it |
|----------|-------------------|
| **Claude (Anthropic)** | recommended - Claude models through the Anthropic API |
| **OpenAI-compatible API** | OpenAI or any OpenAI-compatible API: Azure OpenAI, DigitalOcean, vLLM, LM Studio |
| **Ollama (local)** | a model running on this server or in the plant network - data does not leave the plant; usually no key needed |

Fields of the connection window:

* **Name** - e.g. `Claude — company`,
* **Provider** - one of the three above,
* **API key** - a write-only field: after saving you see only the last characters of the key (e.g. `…a1b2`). Leaving the field empty when editing keeps the saved key; the **Remove the saved key** switch removes it. Ollama usually needs no key,
* **API address** - shown right away for an OpenAI-compatible API and Ollama; for Claude it is under **Advanced settings** (needed only when the company reaches the Anthropic API through its own gateway - a proxy). An empty field means the default address: `api.anthropic.com` (Claude), `https://api.openai.com/v1` (OpenAI-compatible API), `http://localhost:11434` (Ollama). For an OpenAI-compatible API enter the base address **without** `/chat/completions`, e.g. `http://192.168.1.20:8000/v1`,
* **Connection enabled** - a disabled connection cannot be chosen for a tier,
* **Timeout** (under **Advanced settings**) - how many seconds the server waits for the model response.

**Test** checks the address and the key **without using tokens** - it fetches the model list from the provider - and shows the result in the window. **Save connection** saves the connection immediately, independently of the screen's **Save** button.


:::info
Create the **Claude API key** in the Claude Console (link below the key field). Only an API key works - OmniMES rejects a Claude subscription sign-in token (starting with `sk-ant-oat`). Claude Max, Ultra and Team plans include monthly API credits: claim them on claude.ai (**Settings → Billing**), create an API key in the linked Claude Console organization and paste it here. Create a separate workspace with a spend limit for OmniMES.

:::

A connection used by a tier cannot be deleted - switch that tier to another connection first.


:::info
**Connection security.** The OmniMES server does not connect to cloud metadata addresses (e.g. `169.254.169.254`) or other special addresses. Addresses in the plant network and `localhost` are allowed. HTTP redirects are checked in the same way as the address entered in the connection.

:::

### Models by task

Every AI feature uses one of three tiers - from fast and cheap to the most accurate. A tier card first shows a short description and the **Used for** list (which features use it), then the **Connection** and **Model**. **Connection** is a drop-down when there is more than one connection or the tier has none yet; with a single connection its name is simply shown. For Claude models the **Model** field shows **Recommended model** or **Recommended: claude-…** with the **Use recommended** button. The button next to the **Model** field fetches the model list from the provider; you can also type the model name. The badge next to the tier shows its status: **Ready** or **Not configured** - the reason and a fix button are in the **To do** list at the top of the tab.

| Tier | Used for | Default Claude model |
|------|----------|----------------------|
| **Fast** | Desktops: **Build query**, **Suggest SQL** and **Suggest chart** | Claude Haiku 5.5     |
| **Standard** | energy audits: findings, recommendations and summary | Claude Sonnet 5.5    |
| **Advanced** | recommended model for the AI assistant connected via MCP (3D Hall, Studio apps in Claude) - a recommendation only, OmniMES does not use it | Claude Opus 5.5      |

The assignment of features to tiers is fixed. Tiers can use different connections - e.g. **Fast** and **Standard** a local Ollama, and **Advanced** Claude.


:::tip
The **Advanced** tier model is also the **recommended model for work in your own AI app** - when building the 3D Hall over MCP and apps in Claude Desktop. OmniMES shows it as a recommendation in the 3D Hall and in App Studio, but cannot enforce it - you choose the model yourself in your app.

:::

### AI assistants (MCP)

**MCP** (Model Context Protocol) is the standard that lets an **external AI assistant** - such as Claude, ChatGPT or Cursor - work with OmniMES data. Instead of clicking through the interface, you ask about production in plain language ("show the energy consumption of line 3 for the last week") and the assistant fetches the data and prepares the answer itself.

 ![](https://docs.omnimes.com/api/files.get?sig=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJrZXkiOiJ1cGxvYWRzLzRlMDdmZmNhLThmZjAtNDYxYy1iYjEyLTA2OTEyZGRiOGQzNi9kNmQ2YWE0MS02YjEwLTQ5YjctOWI0YS1hNjllNzgxZGYxMjkva29nX2FpX2FzeXN0ZW5jaS5wbmciLCJ0eXBlIjoiYXR0YWNobWVudCIsImlhdCI6MTc5NTQzMDcwMCwiZXhwIjoxNzk1NTE3MTAwfQ.oG5DGBGKYRKdfYPvp7B_5ok4vQsAx75uFHwXU7uQwKI)

The **AI assistants (MCP)** part (Configuration → AI) sets how users' AI assistants — Claude Desktop, Claude Code, claude.ai, ChatGPT, Cursor — connect to OmniMES. Each user gets their own connection in the user menu → [**AI assistant connection**](https://docs.omnimes.com/doc/ai-assistant-connection-Xbr2840qoC): the assistant works with that user's permissions and changes go to the **Event log** with their login.

* **MCP server address** — the MCP server address of your installation (cloud: `https://…/mcp`, plant network: e.g. `http://192.168.1.50:8090/mcp`). Saved with the **Save** button at the bottom of the page. Without an address users cannot download the extension (the **To do** list then shows **Set the address**).
* **Assistant change mode** — saved as soon as you choose:
  * **Apply right away (logged in the Event log)** — the assistant changes the configuration like a user on the screen (default, as in previous versions),
  * **As proposals for approval** — a change waits for approval in OmniMES (**Pending approval**) by a person with permissions; the assistant's Redash dashboards and Studio app drafts are saved right away,
  * **Read only** — the assistant only reads data; every change attempt is refused and logged in the Event log.

  Under the options there is a reminder of what the assistant does not change in any mode (the full list is in the **ⓘ** tooltip and below).
* **Advanced** - two collapsed panels with their status in the header, so you do not have to expand them to see what is on:
  * **Service account (shared MCP token)** - *off — personal connections only*, *on — a shared token without a user name* or *on, but without a token*,
  * **OAuth sign-in (claude.ai, phone, ChatGPT)** - *off*, *on* with the number of active connections, or *on, but not working* (the **To do** list then gives the reason, e.g. no public address); described below.
* **Assistant service account (shared MCP token)** (the **Advanced** panel) — one shared account for automation and integrations. It has no user name (the Event log shows the `mcp` account) and only the tools allowed for that account. The **Service account on** switch is saved right away. When it is on, the **Service account token** is shown (with **Generate a new token**, saved with **Save**) and — for a superuser — **Download the service account package (for automation)** (the “OmniMES – service account” extension).
* **Users' personal connections** — active personal tokens of all users (user, name, prefix, created, last used) with a **Revoke** button. **Show in the Event log** opens the log filtered by the source **AI assistant (MCP)**.


:::info
**After updating to the version with this section** the service account is **on** in installations that had an MCP token saved — existing connections (e.g. a 3D Hall built with the shared token) keep working. In a new installation it is **off**. Once users move to personal connections, turn the service account off — the shared token stops working and an assistant using it is told to connect with a personal connection.

:::

In every mode the assistant **does not change**: telemetry, system settings (including AI and MCP), accounts, groups and permissions, tokens and keys, the license, backups, import and export, or the Microsoft Teams and Slack alarm channels (webhook addresses). In Redash the assistant uses a separate **AI assistant** user without administrator rights (created by the system update) — the Redash administrator key is now used only to create accounts.

#### What the assistant can do

Once connected, the AI assistant uses the OmniMES tools for:

* **reading data** - machines, lines, events, measurements, energy consumption, OEE, current states,
* **production** - orders, the schedule (Gantt timeline, plan proposals with a KPI comparison), OEE, loss Pareto, downtime with reasons, the reason dictionary and reason assignment rules, lots and genealogy,
* **ERP integrations** - ERP orders, the log of messages with errors, the outbound queue to ERP and codes without a mapping (read-only - retries are done in **ERP integrations**),
* **analyses and dashboards** - creating queries, charts and dashboards in [**Redash**](https://docs.omnimes.com/doc/desktops-AoJWhHoO2X),
* **configuration** (on an explicit request) - machines, statuses, profiles, schedules and similar,
* **downtime reason correction** (on an explicit request, after the episode and the reason are confirmed) - the same as changing the reason on the OEE screen; the change goes to the production event log and OEE is recalculated automatically.

The KPIs (OEE, loss Pareto, MTBF/MTTR, order forecasts, order energy) are computed by OmniMES - the assistant gives the same numbers as the screens and reports and does not calculate them itself.

#### Ready-made scenarios (prompts)

The MCP server provides ready-made conversation scenarios. In Claude Desktop you pick them from the **+** menu (the OmniMES entry), in other assistants - from the list of commands or prompts. Each scenario guides the assistant through the right tools and has a **lang** argument (`pl` or `en`) - the answer language:

* **Analiza zmiany** (shift analysis) - day, shift name and optionally a line or machine; the shift's OEE against the other shifts, the biggest losses, downtime without a reason, failures and recommendations,
* **Plan na jutro** (plan for tomorrow) - horizon in days and optionally a line; the plan on resources, risks (due dates, collisions, material) and a plan proposal for the planner to approve,
* **Reklamacja partii** (lot complaint) - lot number; origin (materials, suppliers), production run, lots affected by the same problem and their customers,
* **Energia w miesiącu** (energy in a month) - month (YYYY-MM); meter balance, bill from the tariff, power and violations, energy of orders and products.

Every connection sees the scenarios - personal connections and the service account.

**Indicators are the same as in OmniMES.** The assistant takes OEE and its components, MTBF/MTTR, the loss Pareto and downtimes with reasons ready-made from OmniMES - both in its answers and in the charts it builds in Redash (a query to OmniMES instead of its own calculations on raw signals). This way the numbers on a dashboard match the **Work time and OEE** screen and the reports.

**Deleting through the assistant means archiving.** When you ask it to delete a machine, status, report schedule, meter or tariff, the assistant archives the record - it disappears from the lists, the history stays, and the assistant can restore it on request. Items that cannot be archived (e.g. measurement sources, goals, EnPI definitions, manual meters) are not deleted by the assistant - it points you to the OmniMES screen where you can do it yourself. Single manual meter readings are the exception: the assistant deletes a reading when you give a reason (it goes to the reading change history).


:::info
**Measurement data is read-only.** The assistant never modifies the raw signals coming from machines - they are the source of truth from the devices. It may only change the configuration, downtime reasons and the artifacts in Redash, and only when explicitly asked to.

:::

#### OAuth sign-in (claude.ai, phone, ChatGPT)

Claude in the browser (claude.ai), Claude in the mobile app and ChatGPT connect to OmniMES without pasting a token: the user signs in with their OmniMES account and approves access. The assistant then works **with that person's permissions** - it sees what they see and changes only what they can change, and every change is recorded in the **Event log**.

**Requirements:** a public HTTPS address of the installation - OmniMES cloud, demo, or a server with a domain and certificate. On a plant network without a public address, use Claude Desktop with a personal token.

**Enabling it (administrator)** - **AI** tab, **AI assistants (MCP)** part, the **Advanced → OAuth sign-in** panel (expand it):


1. Check the **Public API address (HTTPS)**, e.g. `https://api.yourcompany.omnimes.com`. An empty field means the address is derived from the **MCP server address** if it starts with `https`.
2. Check the **Public OmniMES address** - the address where you open OmniMES in the browser. This is where the user signs in and approves the connection; the field suggests the current page address.
3. Turn on **Enable OAuth sign-in** and click **Save OAuth sign-in**.
4. Copy the **Server address to paste into claude.ai and ChatGPT** and give it to the users.

Options:

* **Known applications only** (on by default) - only claude.ai, claude.com, ChatGPT and programs on the user's computer can connect. Turn it off to connect another assistant with its own HTTPS address.
* **Access token lifetime** (60 minutes by default) and **Unused connection lifetime** (30 days by default) - the assistant renews the token by itself; a connection unused for longer expires and the user signs in again.

Below the settings you will find the **Active OAuth connections** of all users (who, which application, when connected, when last used) with a **Revoke** button, and the **Registered applications** with a **Remove** button (it also revokes their connections). Turning OAuth sign-in off blocks all OAuth connections immediately; when you turn it back on, they work again.

**How to add OmniMES in claude.ai (browser and phone):**


1. In claude.ai open **Settings → Connectors → Add custom connector**.
2. Paste the server address (e.g. `https://api.yourcompany.omnimes.com/mcp`), click **Add**, then **Connect**.
3. OmniMES opens - sign in (if needed) and on the **Connecting an AI assistant to OmniMES** page click **Allow**.
4. A connector added in the browser also works in the Claude mobile app (same Claude account).

**How to add OmniMES in ChatGPT:**


1. In ChatGPT open **Settings → Apps & Connectors → Advanced** and turn on developer mode.
2. **Create** a connector: paste the server address and choose **OAuth** authentication.
3. Sign in to OmniMES and click **Allow**.


:::info
The consent page shows the application name, the address you will return to, and the OmniMES account the assistant will act as. If you are not adding a connection right now, click **Deny**. You can revoke a connection by removing the connector in the assistant or in OmniMES (user menu → **AI assistant connection**; administrators - in the **Active OAuth connections** list).

:::

### Usage (30 days)

This part shows the model calls made by the OmniMES server over the last 30 days - the token counts determine the cost:

* four figures at the top: **Calls**, **Errors**, **Input tokens**, **Output tokens**,
* **By feature** - **Feature**, **Tier**, **Calls**, **Errors**, **Input tokens**, **Output tokens** and **Average time**,
* **By model** - **Model**, **Provider**, **Calls**, **Input tokens** and **Output tokens**.

The number of calls and errors is also shown on the **Usage (30 days)** card at the top of the tab.

The summary does not include AI assistants connected over MCP - their model runs in your own AI app, not on the OmniMES server.

### When AI is off or not configured

When the **AI on** switch is off or a tier has no working connection, the AI features show a readable message instead of an error:

| Where | Message |
|-------|---------|
| Desktops | the **AI in Dashboards is not configured** box with the **Open General configuration → AI** button |
| Energy audits | a server message: **AI in OmniMES is turned off (General configuration → AI)** or **Set up an AI connection in General configuration → AI (“…” tier).** |

The AI features do not need the browser to reach the internet - the OmniMES server connects to the model. With a local Ollama the AI features also work in a closed plant network.

### Saving and permissions

* **AI on**, **Company context for AI** and **Models by task** are saved with the screen's **Save** button - the changes appear in the confirmation window together with the other settings. Connections are saved in their own window (**Save connection**), and **Quick setup** saves the connection and the three tiers right away (unsaved changes of the AI switch and the company context stay in the form until you click **Save**). The MCP server address and the service account token are saved with the screen's **Save** button; the assistant change mode, the service account switch and OAuth sign-in are saved right away (OAuth with its own **Save OAuth sign-in** button).
* The AI configuration can be changed by a superuser or a user whose group has the **General configuration** screen in [**Access permissions**](https://docs.omnimes.com/doc/administration-IPR8voQzB6) - in every permission control mode. Others see the message **The AI configuration is managed by an administrator (access to the “General configuration” screen).**
* API keys are never returned by the OmniMES API and are not stored in the general settings, so they never reach the browser.
* Changes of connections and of the AI configuration are recorded in the [**Event log**](https://docs.omnimes.com/doc/event-log-ueBZ9EBDuZ) with the key masked.

### Update from an earlier version

During the OmniMES update the existing AI settings were moved automatically - nothing stops working:

| Before | Now |
|--------|-----|
| **External AI** (OpenAI) | the **OpenAI** connection (with a custom address: **OpenAI-compatible API**) on the **Fast** and **Standard** tiers |
| **Internal AI** (Ollama) | the **Ollama** connection on the **Fast** and **Standard** tiers |
| the Claude API key from App Studio | the **Claude** connection on the **Advanced** tier, with the model chosen earlier in the Studio |
| only a Claude API key | all three tiers on the **Claude** connection: Haiku 5.5, Sonnet 5.5 and Opus 5.5 |
| nothing configured | a **Claude** connection without a key; the AI features show the message **Set up an AI connection in General configuration → AI** |
| **Hide AI Assistant mode** | the **AI on** switch |
| your own **Assistant characteristics** and **Main query** texts | **Company context for AI** |

The former **MCP (AI)** and **AI settings** sections were replaced by the **AI** tab. The **G + P + T** keyboard shortcut was removed - AI is turned on and off with the **AI on** switch.

## E-mail notification address settings

Configuration of the mail server (SMTP) used to **send reports** (including [**recurring reports**](https://docs.omnimes.com/doc/recurring-reports-bK4elx42W3)):

* **E-mail** - the sender address (e.g. `reports@company.com`),
* **Password** - the mail account password,
* **Mail server address** - the SMTP host of your mail provider (e.g. `smtp.yourcompany.com`; your mail administrator or provider gives you these details),
* **Port** - the SMTP port (e.g. 587).

The same configuration is used by **all OmniMES emails**: recurring reports, catalog reports ("Send by email"), OmniEnergy automations, energy audit reports and notifications (alarms from the [**Alarms**](https://docs.omnimes.com/doc/alarms-exwag5kxqj) screen, batch process alarms).

### Email status

The top of the section shows whether email is ready:

* a green **Email configured** badge with the server, encryption and sender address,
* a yellow **Email is not configured** warning - the SMTP server or the sender address is missing (e.g. a fresh installation). Reports and automations are still **created** but not sent: the sending status is **Skipped** with the reason, and the system does not try to connect to a mail server.

The badge uses the values in the form, so you see the result before saving.

### Connection encryption

* **STARTTLS** - usually port **587** (Microsoft 365, Gmail and most mail providers),
* **SSL/TLS** - port **465**,
* **No encryption** - usually port **25**, a mail relay in the plant network.

Changing the mode suggests the typical port. An empty **Password** means sending without logging in - this is how a relay that accepts mail from the OmniMES server address works.

### Test sending

Enter the **Test message recipient** (your profile address by default) and click **Send test message**. The test uses the values shown in the form **without saving them** - you can check the details from your mail administrator before saving. If you do not change the password, the test uses the saved one. The answer comes within 15 seconds:

* success - the recipient, server, encryption and sending time; check the mailbox, including the spam folder,
* **The server rejected the login** - check the user name and password (Microsoft 365 and Gmail may require an app password),
* **Encryption (TLS) error** or **The server closed the connection** - the encryption mode does not match the port (465 = SSL/TLS, 587 = STARTTLS),
* **The server did not respond**, **refused the connection** or **SMTP server not found** - check the server address and port and whether the firewall allows outgoing connections,
* **The server rejected the sender address** - the sender must be the mailbox or an alias of the account you log in with.

The test and the list of emails are available to the administrator and to groups allowed to save settings. Every test is recorded in the [**Event log**](https://docs.omnimes.com/doc/event-log-ueBZ9EBDuZ) as **Test email**.

### Recent emails

The table below the test shows the recent emails: time, type (e.g. recurring report, OmniEnergy automation, test message), recipients, subject, result and error. Message content and passwords are not stored. Results:

* **Sent**,
* **Retrying** - a temporary error (no connection, timeout, the server asked to try again); the system retries after 1, 5 and 15 minutes and the table shows the time of the next attempt,
* **Failed** - an error that a retry will not fix (login, encryption, rejected sender or recipients) or the end of retries,
* **Skipped** - email is not configured or there are no valid recipient addresses.

Email configuration errors (not configured, login, encryption, rejected sender, unknown server) are also recorded in the Event log as **Email configuration error** - at most once an hour. The list keeps entries from the last 90 days.

## Branding tab

The **Branding** tab adds a **partner logo** (the customer's logo) shown in the system header next to the OmniMES logo:

* **Primary logo** - shown in the system header,
* **Dark background variant (optional)** - without it, in dark mode the primary logo is shown on a white plate.

Add the file with **Upload logo** (PNG or SVG, max 1 MB) and remove it with **Remove**. The preview shows the logo in the light and dark themes. The OmniMES logo and the producer notice in the footer remain unchanged.

## Saving changes

After clicking **Save**, the system shows a **confirmation window** with the **list of changed settings** in the form *old value → new value* (passwords and tokens are masked). The list also includes changes from the **AI** tab: AI on/off, the company context and the tier models. The changes are saved only after you confirm with **Save changes** - this way an accidental change of a critical setting (e.g. the broker address) does not go unnoticed. If nothing was changed, a message about no changes is shown.

One **Save** button saves all tabs, so saving checks the fields on every tab. When a field has an invalid value (e.g. an email address without `@` or an empty required field on the **Broker** tab), the system switches to the tab with that field, puts the cursor in it and shows the message **Fix a field before saving** with the field and tab name; invalid fields get a red border. After correcting it click **Save** again. Switching tabs does not discard unsaved changes.

**Who can save.** The **Save** button is shown to a superuser and to users whose group has the **General configuration** screen in [**Access permissions**](https://docs.omnimes.com/doc/administration-IPR8voQzB6) - for everyone else the screen is view-only. In `enforce` permission control mode (from version 4.8.0) the passwords and tokens stored on this screen are given only to groups whose screens use them. Saving the settings by a user who cannot see them does not remove the stored passwords and tokens.


:::info
The configuration from the **AI** tab is shared by all AI features in OmniMES. Most broker and stream behaviour settings are read by the stream service **dynamically** (within about a minute) - no restart needed.

:::

---

**Documents**

- [OmniPlatform](https://docs.omnimes.com/s/cb8b19e0-ec6d-4e1a-8690-b0ddd67ad1cd/doc/omniplatform-7z9SIECi68)
- [Omnienergy](https://docs.omnimes.com/s/cb8b19e0-ec6d-4e1a-8690-b0ddd67ad1cd/doc/omnienergy-56aRDgnYFZ)
- [Omnimes](https://docs.omnimes.com/s/cb8b19e0-ec6d-4e1a-8690-b0ddd67ad1cd/doc/omnimes-eGDa0U5cyr)
- [FAQ](https://docs.omnimes.com/s/cb8b19e0-ec6d-4e1a-8690-b0ddd67ad1cd/doc/faq-IFQjCNYt1Q)
- [Cybersecurity & Compliance (CRA)](https://docs.omnimes.com/s/cb8b19e0-ec6d-4e1a-8690-b0ddd67ad1cd/doc/cybersecurity-compliance-cra-pPJBcC6sBf)