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

# System ($SYS) Topics

> Monitor the broker, read configuration, and control Coreflux over MQTT system topics

## See the Broker From MQTT

You do not need a separate monitoring stack to know what the broker is doing. Subscribe to `$SYS` topics and you get version, license, connected clients, LoT source, connector health, and project state as MQTT messages — the same way you already consume sensor data.

> [!TIP]
>
> **Think of `$SYS` as the broker's dashboard in topic form.** Subscribe like any other MQTT topic and watch live status, without opening a separate UI.

### When to use this

| Goal | Start here |
| - | - |
| Confirm the broker is up and which build is running | `$SYS/Coreflux/Version` |
| See the license tier and usage | `$SYS/Coreflux/License` (same status as ops [`GET /license`](https://docs.coreflux.org/v2.22/mqtt-broker/operational-endpoints#license-status)) |
| Send management commands | `$SYS/Coreflux/Command` and `Command/Output` |
| Inspect or back up LoT source | `$SYS/Coreflux/Actions/#`, `Models/#`, `Routes/#`, `Rules/#`, `Visus/#` |
| Watch connector health | `$SYS/Coreflux/Routes/+/status` |
| See which project is loaded | `$SYS/Coreflux/Projects/active` |
| Confirm the MCP Server is listening | `$SYS/Coreflux/MCP/Info` |

> [!WARNING]
>
> Topics that start with `$` are not included when you subscribe to `#` at the root. Subscribe to `$SYS/#` (or a more specific `$SYS/…` filter) explicitly.

***

The tables below are the map; later sections explain payloads and who may publish or subscribe.

## Topic Hierarchy

```
$SYS/
├── Coreflux/
│   ├── Command                    # Publish commands
│   ├── Command/Output             # JSON command replies
│   ├── Config                     # Live configuration (includes Python status)
│   ├── Config/New                 # Publish a config update
│   ├── Config/New/Result          # Result of a config update
│   ├── Config/Users               # User list (passwords masked)
│   ├── Version                    # Broker version
│   ├── License                    # License and usage
│   ├── Resources/                 # Memory totals
│   ├── Comms/
│   │   ├── Sessions               # MQTT sessions
│   │   ├── Clients                # Connected clients
│   │   ├── Logins                 # Login events
│   │   └── PacketTrace/…          # Optional packet traces
│   ├── Actions/<name>             # Action LoT
│   ├── Models/<name>              # Model LoT
│   ├── Connectors/<name>              # Connector LoT
│   ├── Rules/<name>               # Rule LoT
│   ├── Visus/<name>               # Panel LoT
│   ├── Things/<name>              # Thing source, tree, status
│   ├── Projects/                  # Project list, active, manifest, download
│   ├── Entities/ownership         # Project vs ad-hoc origin
│   ├── MCP/Info                   # MCP Server status
│   ├── MCP/Tools                  # Advertised MCP tool names
│   ├── Cluster/                   # Role, leader, members (when clustering)
│   ├── Python/Scripts             # Registered Python scripts
│   ├── AI/Providers               # Discovered LLM providers
│   └── Certificates/Summary       # Certificate expiry counts (retained)
└── <OS>/                          # e.g. Linux-x64, Windows-x64
    ├── Python/Info
    └── Comms/TCP|UDP/…
```

### Read-only (broker → client)

| Topic | Content |
| - | - |
| `$SYS/Coreflux/Version` | Version JSON (**retained**) |
| `$SYS/Coreflux/License` | License, tier, limits, current usage (**retained**) |
| `$SYS/Coreflux/Config` | Live configuration JSON, including Python backend status |
| `$SYS/Coreflux/Config/Users` | Users with passwords masked; includes `Groups` |
| `$SYS/Coreflux/Config/New/Result` | Outcome of the last publish to `Config/New` |
| `$SYS/Coreflux/Comms/Sessions` | Active sessions |
| `$SYS/Coreflux/Comms/Clients` | Connected clients |
| `$SYS/Coreflux/Comms/Logins` | Login event lines |
| `$SYS/Coreflux/Actions/{name}` | Action LoT (**retained**) |
| `$SYS/Coreflux/Models/{name}` | Model LoT (**retained**) |
| `$SYS/Coreflux/Routes/{name}` | Connector LoT (**retained**) |
| `$SYS/Coreflux/Routes/{name}/status` | Connector health JSON |
| `$SYS/Coreflux/Rules/{name}` | Rule LoT |
| `$SYS/Coreflux/Visus/{name}` | Panel source (**retained**) |
| `$SYS/Coreflux/Projects/list` | Stored projects (**retained**) |
| `$SYS/Coreflux/Projects/active` | Loaded project (**retained**) |
| `$SYS/Coreflux/Entities/ownership` | Running entities → project origin (**retained**) |
| `$SYS/Coreflux/MCP/Info` | MCP Server status and endpoint (**retained**) |
| `$SYS/Coreflux/MCP/Tools` | Currently advertised MCP tool names (**retained**) |

### Writable (client → broker)

| Topic | Purpose |
| - | - |
| `$SYS/Coreflux/Command` | Run [broker commands](https://docs.coreflux.org/v2.22/mqtt-broker/commands.md) |
| `$SYS/Coreflux/Config/New` | Apply a configuration JSON (restart still required for most fields) |
| `$SYS/Coreflux/Actions/{name}/Run` | Run a callable Action (panels use this) |
| `$SYS/Coreflux/Actions/{name}/Invoke` | Same as `/Run` (legacy alias) |
| `$SYS/Coreflux/Routes/{name}/Events/{event}/Trigger` | Fire a named connector event from a panel |

***

## Command Topics

Send a command and read the reply over MQTT. Subscribe to the output topic **before** you publish, or you can miss a fast reply.

**1. Subscribe to output**

Using any MQTT client (such as MQTT Explorer), subscribe to `$SYS/Coreflux/Command/Output`.

**2. Publish the command**

Publish the command string to `$SYS/Coreflux/Command`. Add `-requestId <id>` when several commands may be in flight.

**3. Read the JSON envelope**

Every reply is one JSON object on `Command/Output`. Match `requestId` when you sent one.

### `$SYS/Coreflux/Command`

**Direction:** Client → Broker

| Field | Value |
| - | - |
| **Topic** | `$SYS/Coreflux/Command` |
| **Payload** | `-addAction DEFINE ACTION Heartbeat ON EVERY 10 SECONDS DO PUBLISH TOPIC "system/heartbeat" WITH TIMESTAMP "UTC"` |
| **Auth** | Session allowed for `CommandCall` (`root` or the matching RBAC permission flags) |

### `$SYS/Coreflux/Command/Output`

**Direction:** Broker → Client

Replies always use this JSON envelope. Structured list/query results are in `data`. `data` is always present (`{}` when there is nothing to return, or `[]` for an empty list).

```json wrap theme={"theme":{"light":"css-variables","dark":"css-variables"},"languages":{"custom":["/languages/lot.json"]}}
{
  "success": true,
  "command": "AddAction",
  "message": "Action 'Heartbeat' added successfully.",
  "entityType": "Action",
  "entityName": "Heartbeat",
  "data": {}
}
```

| Field | Description |
| - | - |
| `success` | Whether the command succeeded |
| `command` | Internal command name (for example `AddAction`) |
| `message` | Human-readable summary |
| `requestId` | Echo of `-requestId` when you sent one |
| `data` | Structured payload for list/query commands |
| `errors` | Present when `success` is `false` |

The broker does **not** publish to `$SYS/Coreflux/CommandResponse`. The full command list is on [Broker Commands](https://docs.coreflux.org/v2.22/mqtt-broker/commands.md).

***

## LoT Entity Topics

Each running Action, Model, Connector, Rule, and panel publishes its LoT (or panel source) on a topic named after that entity. Subscribe to retrieve what is actually deployed — useful for backup, debugging, and Coreflux HUB.

When you remove an entity, the broker publishes an **empty retained** payload on that topic (MQTT tombstone) so subscribers do not keep a stale definition.

### `$SYS/Coreflux/Actions/{ActionName}`

**Payload:** the complete Action definition (**retained**).

Subscribe with MQTT Explorer or any MQTT client:

| Field | Value |
| - | - |
| **Topic** | `$SYS/Coreflux/Actions/Heartbeat` |

**Payload received:**

```lot wrap theme={"theme":{"light":"css-variables","dark":"css-variables"},"languages":{"custom":["/languages/lot.json"]}}
DEFINE ACTION Heartbeat
ON EVERY 10 SECONDS DO
    PUBLISH TOPIC "system/heartbeat" WITH TIMESTAMP "UTC"
```

Related Action topics:

| Topic | Content |
| - | - |
| `$SYS/Coreflux/Actions/{name}/Description` | Optional description (**retained**) |
| `$SYS/Coreflux/Actions/{name}/Error` | Last Action error (**retained** when set) |
| `$SYS/Coreflux/Actions/{name}/Trace` | Execution traces when tracing is enabled (not retained; expire after a few minutes) |
| `$SYS/Coreflux/Actions/{name}/Run` | **Publish** here to run a callable Action |
| `$SYS/Coreflux/Actions/{name}/Invoke` | Same as `/Run` |

### `$SYS/Coreflux/Models/{ModelName}`

Model LoT (**retained**).

### `$SYS/Coreflux/Routes/{connector_name}`

Connector LoT (**retained**). Extra subtopics appear depending on the connector type:

| Topic | Content |
| - | - |
| `$SYS/Coreflux/Routes/{name}/status` | Health and counters. See [Connector Status Monitoring](https://docs.coreflux.org/v2.22/lot-language/routes/overview.md#connector-status-monitoring) |
| `$SYS/Coreflux/Routes/{name}/Certificates` | Certificate-store summary for cert-managed connectors (**retained**) |
| `$SYS/Coreflux/Routes/{name}/Tools` | MCP tool summary for MCP connectors |
| `$SYS/Coreflux/Routes/{name}/Tools/{tool}` | One MCP tool (schema and capability stats) |
| `$SYS/Coreflux/Routes/{name}/Tools/{tool}/Capability` | Call statistics for one MCP tool, updated after every call (**retained**). See [Capability Payload](https://docs.coreflux.org/v2.22/lot-language/routes/mcp-routes.md#capability-payload) |
| `$SYS/Coreflux/Routes/{name}/Events/{event}/Trigger` | **Publish** to fire that connector event |

### `$SYS/Coreflux/Agents/{agent}`

Agent source (**retained**). Agents are not listed under `$SYS/Coreflux/Routes/`. See [Agent topics](https://docs.coreflux.org/v2.22/lot-language/agents/syntax.md#agent-topics).

| Topic | Content |
| - | - |
| `$SYS/Coreflux/Agents/{agent}/card` | Discovery card, schema version 1 (**retained**) |
| `$SYS/Coreflux/Agents/{agent}/status` | `online`, `offline`, or `error` (**retained**) |
| `$SYS/Coreflux/Agents/{agent}/task/{id}/request` | **Publish** work. Needs a `PublishSys` rule |
| `$SYS/Coreflux/Agents/{agent}/task/{id}/response` | Final answer |
| `$SYS/Coreflux/Agents/{agent}/task/{id}/stream` | Event stream, schema version 1 |
| `$SYS/Coreflux/Agents/{agent}/task/{id}/status` | Task status |
| `$SYS/Coreflux/Agents/{agent}/task/{id}/cancel` | **Publish** to cancel that task |

The broker does not publish `$SYS/Coreflux/Agents/{agent}/Capabilities` or `…/Metrics`.

### `$SYS/Coreflux/Things/{name}`

Every Thing is published **retained**. An empty payload means the Thing was removed. See [LoT THING](https://docs.coreflux.org/v2.22/lot-language/things/overview.md).

| Topic | Payload |
| - | - |
| `$SYS/Coreflux/Things/{name}` | The source as typed, for roots and templates |
| `$SYS/Coreflux/Things/{name}/tree` | JSON: `kind`, `template`, `uses`, `usedBy`, `params`, `project`, and for a root the `instance` tree (each instance's `chain`, `template`, `path`, resolved `params`, `children`, and nested `instances`) |
| `$SYS/Coreflux/Things/{name}/status` | Roots only: `state` (`ok`, `degraded`, or `error`), child counts, the `worst` children, and `updated`. Built from connector health, agent status, and action errors |

Children keep their own topics (`$SYS/Coreflux/Routes/…`, `$SYS/Coreflux/Agents/…`). `$SYS/Coreflux/Entities/ownership` marks each child with `thing: { root, chain, clause }` and lists each Thing as `thing:<name>`.

### `$SYS/Coreflux/Rules/{RuleName}`

Rule LoT source.

### `$SYS/Coreflux/Visus/{PanelName}`

Panel source text (**retained**).

#### Subscribe to all entities

| Entity type | Topic pattern |
| - | - |
| All Actions | `$SYS/Coreflux/Actions/#` |
| All Models | `$SYS/Coreflux/Models/#` |
| All Connectors | `$SYS/Coreflux/Routes/#` |
| All agents | `$SYS/Coreflux/Agents/#` |
| All Things | `$SYS/Coreflux/Things/#` |
| All Rules | `$SYS/Coreflux/Rules/#` |
| All panels | `$SYS/Coreflux/Visus/#` |

***

## Broker Information

### `$SYS/Coreflux/Version`

Broker version and build (**retained**).

```json wrap theme={"theme":{"light":"css-variables","dark":"css-variables"},"languages":{"custom":["/languages/lot.json"]}}
{
  "version": {
    "major": 2,
    "minor": 14,
    "patch": 0,
    "branch": "release",
    "os": "Linux-x64",
    "stage": "stable",
    "timestamp": "2026-08-26T10:00:00Z",
    "notes": ""
  }
}
```

The `os` field is the same prefix used under `$SYS/{OS}/…`.

### `$SYS/Coreflux/License`

License status, tier, feature flags, limits, current usage, activation mode, fingerprint, and organization enrollment (**retained**). The same status is served on ops [`GET /license`](https://docs.coreflux.org/v2.22/mqtt-broker/operational-endpoints#license-status) (default port `9100`; HTTP names are camelCase). Brokers with no license still publish this topic so you can see `Tier` (`Community`), `EffectiveLimits`, and `CurrentUsage`.

There is no built-in trial: with no license the payload shows **Community**. A trial is a **30-day Growth-type license** from [portal.coreflux.org](https://portal.coreflux.org) that you activate on the broker. Use the same portal to manage your fleet. See [Licensing and Enrollment](https://docs.coreflux.org/v2.22/mqtt-broker/licensing.md).

```json wrap theme={"theme":{"light":"css-variables","dark":"css-variables"},"languages":{"custom":["/languages/lot.json"]}}
{
  "LicensedTo": "N/A",
  "ExpiresUtc": null,
  "IsActive": false,
  "Tier": "Community",
  "Fingerprint": "…",
  "FingerprintSource": "machine-id",
  "Activation": {
    "Mode": "offline",
    "BindingOk": true
  },
  "Enrollment": { "Pending": false, "Reason": null },
  "EffectiveLimits": {
    "MaxArtifacts": 24,
    "MaxRoutes": 3,
    "MaxConnections": 10000
  },
  "CurrentUsage": {
    "ArtifactCount": 3,
    "Actions": { "Regular": 2, "RouteEvents": 0, "PythonScripts": 0 },
    "Models": 0,
    "Rules": 12,
    "Routes": 1,
    "Panels": 0
  }
}
```

JSON still uses `Routes` for connectors. `Enrollment.Pending: false` means no problem was recorded — not proof that the broker is bound to an organization.

### `$SYS/Coreflux/Resources`

| Topic | Description |
| - | - |
| `$SYS/Coreflux/Resources/MemoryInfoTotal` | Total available memory (bytes) |
| `$SYS/Coreflux/Resources/MemoryInfoUsage` | Current memory usage (bytes) |

***

## Configuration Topics

### `$SYS/Coreflux/Config`

The live broker configuration as JSON. The broker adds a `Python` object so you can see whether scripts run locally or on the runner sidecar without also subscribing to `$SYS/{OS}/Python/Info`.

```json wrap theme={"theme":{"light":"css-variables","dark":"css-variables"},"languages":{"custom":["/languages/lot.json"]}}
{
  "Name": "Coreflux DataHub",
  "Port": 1883,
  "TlsPort": 8883,
  "WebsocketPort": 5000,
  "WebsocketPortTls": 443,
  "BindIPForMQTT": "0.0.0.0",
  "AnonymousLogin": false,
  "Python": {
    "Available": true,
    "UsingEmbeddedRuntime": false,
    "UsingRunner": false,
    "Version": "3.11.2",
    "Backend": "python.net",
    "IsolationLevel": "none"
  }
}
```

`ServerCertificatePassword` is masked as `********`. Publishing the masked value back to `$SYS/Coreflux/Config/New` keeps the stored password.

> [!NOTE]
>
> To change configuration, publish JSON to `$SYS/Coreflux/Config/New`. Most fields still need a restart. See [Broker Configuration](https://docs.coreflux.org/v2.22/mqtt-broker/configuration.md).

### `$SYS/Coreflux/Config/New` and `…/Result`

Publish a **partial** configuration object to `$SYS/Coreflux/Config/New`. The broker merges that object into the live configuration and keeps every omitted field, including bind addresses. It then writes `$SYS/Coreflux/Config/New/Result` with success or validation failure text. See [Applying Configuration](https://docs.coreflux.org/v2.22/mqtt-broker/configuration.md#via-mqtt-topic).

### `$SYS/Coreflux/Certificates/Summary`

Retained certificate health for the broker's TLS identity and mTLS trust store. The broker publishes it after every `-brokerCertificates` change and at most every 5 minutes otherwise. The HUB status bar reads it. It carries no host paths.

```json wrap theme={"theme":{"light":"css-variables","dark":"css-variables"},"languages":{"custom":["/languages/lot.json"]}}
{
  "pathOk": true,
  "pathError": null,
  "thresholdDays": 30,
  "total": 4,
  "valid": 1,
  "expiring": 2,
  "expired": 1,
  "notYetValid": 0,
  "unreadable": 0,
  "server": { "commonName": "broker.example.com", "notAfter": "2027-11-19T00:00:00Z", "status": "valid", "daysUntilExpiry": 399 },
  "rootCa": { "commonName": "Example Root CA", "notAfter": "2029-10-19T00:00:00Z", "status": "valid", "daysUntilExpiry": 1099 },
  "alerts": { "expiring": 2, "expired": 1, "total": 3 },
  "level": "expired",
  "updatedAt": "2026-10-15T11:48:00Z"
}
```

`total` through `unreadable` count client certificates in the storage path (revoked ones excluded). `alerts` adds the server certificate and Root CA. `level` is `expired`, `expiring`, or `ok`. When the storage path is unavailable, `pathOk` is `false` and the counts are `0`.

### `$SYS/Coreflux/Config/Users`

Configured users with passwords masked. `Groups` is the list used by `USER IN GROUP` in Rules.

```json wrap theme={"theme":{"light":"css-variables","dark":"css-variables"},"languages":{"custom":["/languages/lot.json"]}}
[
  {
    "UserName": "root",
    "Password": "********",
    "AllowedBaseTopic": "",
    "AllowedSystemConfiguration": true,
    "AllowedUserManagement": false,
    "AllowedLogManagement": false,
    "Groups": []
  }
]
```

| Field | Description |
| - | - |
| `AllowedBaseTopic` | Optional topic prefix restriction |
| `AllowedSystemConfiguration` | Can change broker configuration and most management gates |
| `AllowedUserManagement` | Can manage users |
| `AllowedLogManagement` | Can manage log traces |
| `Groups` | Group names for [RBAC](https://docs.coreflux.org/v2.22/lot-language/rules/rbac.md) |

***

## MCP Server

When the [MCP Server](https://docs.coreflux.org/v2.22/mqtt-broker/mcp-server.md) is enabled, the broker republishes two retained topics. Neither payload includes token values or the usernames tokens map to.

### `$SYS/Coreflux/MCP/Info`

Status of the Streamable HTTP listener (`status` is `running` or `stopped`). Subscribe in MQTT Explorer to read `http_endpoint`, `bind_ip`, `http_port`, `tokens_active`, and the currently advertised `tools` list.

### `$SYS/Coreflux/MCP/Tools`

An array of `{ "name": "…" }` objects for tools the **running** server currently advertises. When `EnableAllTools` is false and `EnabledTools` is empty, this list is empty.

***

## Connection Monitoring

### `$SYS/Coreflux/Comms/Sessions`

Active MQTT sessions.

```json wrap theme={"theme":{"light":"css-variables","dark":"css-variables"},"languages":{"custom":["/languages/lot.json"]}}
[
  {
    "CreatedTimestamp": "2026-08-26T09:01:36.5008146Z",
    "DisconnectedTimestamp": null,
    "ExpiryInterval": 0,
    "Id": "mqtt-explorer-274f0040",
    "Items": {},
    "PendingApplicationMessagesCount": 0
  }
]
```

### `$SYS/Coreflux/Comms/Clients`

Connected clients, including bytes and packet counts.

```json wrap theme={"theme":{"light":"css-variables","dark":"css-variables"},"languages":{"custom":["/languages/lot.json"]}}
[
  {
    "BytesReceived": 173,
    "BytesSent": 3943557,
    "ConnectedTimestamp": "2026-08-26T09:01:36.5008189Z",
    "Endpoint": "172.17.0.1:52256",
    "Id": "mqtt-explorer-274f0040",
    "ProtocolVersion": 4,
    "ReceivedApplicationMessagesCount": 16070,
    "SentApplicationMessagesCount": 0,
    "Session": {
      "Id": "mqtt-explorer-274f0040",
      "PendingApplicationMessagesCount": 0
    }
  }
]
```

| Field | Description |
| - | - |
| `BytesReceived` / `BytesSent` | Totals for this connection |
| `Endpoint` | Client IP and port |
| `Id` | MQTT client ID |
| `ProtocolVersion` | `3` = MQTT 3.1, `4` = 3.1.1, `5` = 5.0 |

### `$SYS/Coreflux/Comms/Logins`

One JSON object per login attempt. The password is not included.

```json wrap theme={"theme":{"light":"css-variables","dark":"css-variables"},"languages":{"custom":["/languages/lot.json"]}}
{
  "ClientId": "lotvstudio-a6kjtbkwp",
  "Endpoint": "172.17.0.1:53454",
  "Username": "root",
  "DisplayName": "",
  "CleanSession": true,
  "ReasonCode": "Success"
}
```

For an [OIDC access token](https://docs.coreflux.org/v2.22/mqtt-broker/oidc-authentication.md), `Username` is the token subject and `DisplayName` is the token's display name (empty when the token has none). A local login leaves `DisplayName` empty and puts the broker username in `Username`.

Lifecycle Actions (`ON CONNECT` / `ON DISCONNECT`) are a better place for automation; this topic is for observability. See [Action triggers](https://docs.coreflux.org/v2.22/lot-language/actions/events.md).

### `$SYS/Coreflux/Comms/PacketTrace/{clientId}/In` and `/Out`

Optional raw packet traces started with `-mqttPacketTrace`. Use only while debugging a specific client.

***

## Project Topics

Retained so Coreflux HUB and other clients get the last project state on subscribe, without sending `-listProjects` first. See [Project Commands](https://docs.coreflux.org/v2.22/mqtt-broker/commands.md#project-commands).

| Topic | Content |
| - | - |
| `$SYS/Coreflux/Projects/list` | Stored projects and which one is active (**retained**) |
| `$SYS/Coreflux/Projects/active` | Currently loaded project (**retained**; empty in standalone mode) |
| `$SYS/Coreflux/Projects/{name}/status` | Git status for that project (**retained**) |
| `$SYS/Coreflux/Projects/{name}/manifest` | SHA-256 of stored file bytes, plus entities declared in `.lotnb` cells (**retained**). Same JSON as `-projectManifest`. Cleared on `-removeProject` |
| `$SYS/Coreflux/Entities/ownership` | Map of `type:name` → `{ project, file, cell }` for project-owned entities (**retained**). A Thing's child also carries `thing: { root, chain, clause }`. Absence of a key means the entity is ad-hoc |

Export payloads on `$SYS/Coreflux/Projects/{name}/download` are **not** retained (one-shot zip transfer).

> [!NOTE]
>
> Under default rules, `$SYS/Coreflux/Projects/#` is allowed for the same users who may use `-listProjects` (`AllowedUserManagement`, `AllowedSystemConfiguration`, `root`, `admin`) — not every MQTT user.

## Platform Topics

These topics are prefixed with the operating system identifier (for example `Linux-x64`, `Windows-x64`). Read `os` from `$SYS/Coreflux/Version`.

### `$SYS/{OS}/Python/Info`

Python availability and version on that host.

```json wrap theme={"theme":{"light":"css-variables","dark":"css-variables"},"languages":{"custom":["/languages/lot.json"]}}
{
  "Available": true,
  "Version": "3.11.2 (main, Apr 28 2025, 14:11:48) [GCC 12.2.0]",
  "Scripts": []
}
```

Individual scripts also appear at `$SYS/{OS}/Python/Scripts/{scriptName}`.

### TCP and UDP listeners

| Topic | Content |
| - | - |
| `$SYS/{OS}/Comms/TCP/Listeners` | Addresses and ports the process is listening on |
| `$SYS/{OS}/Comms/TCP/ActiveConnections` | Established TCP connections |
| `$SYS/{OS}/Comms/UDP/Listeners` | UDP listeners |
| `$SYS/{OS}/Comms/UDP/ActiveConnections` | Active UDP associations |

Example TCP listeners payload:

```json wrap theme={"theme":{"light":"css-variables","dark":"css-variables"},"languages":{"custom":["/languages/lot.json"]}}
[
  {"Address": "0.0.0.0", "Port": "1883"},
  {"Address": "0.0.0.0", "Port": "80"}
]
```

***

## Access Control

`$SYS` uses the `SubscribeSys` and `PublishSys` rule scopes. **Locked built-in rules** already decide who may subscribe to `$SYS/#`, publish commands, and update config. A custom `SubscribeSys` rule on `$SYS/#` does not override those gates.

| Who | Typical access |
| - | - |
| `root`, `admin`, `AllowedSystemConfiguration` | Subscribe to `$SYS/#` |
| `CommandCall` gates | Publish to `$SYS/Coreflux/Command` and subscribe to `Command/Output` |
| Same roles as `-listProjects` | `$SYS/Coreflux/Projects/#` |
| Any connected client | Publish to `$SYS/Coreflux/Actions/+/Run` and `/Invoke` (panels call Actions this way) |

See [Rules syntax](https://docs.coreflux.org/v2.22/lot-language/rules/syntax.md#system-topics-sys) and [RBAC](https://docs.coreflux.org/v2.22/lot-language/rules/rbac.md) for flags and locked rules.

> [!WARNING]
>
> Publish access to `$SYS/Coreflux/Command` lets a client run administrative commands. Keep that topic on management users only. `/Run` and `/Invoke` are allowed more widely so dashboards can call Actions — restrict those Actions themselves if they are sensitive.

***

## Next Steps

> [card] [Broker Configuration](https://docs.coreflux.org/v2.22/mqtt-broker/configuration.md)
>
> Change ports, TLS, and other broker settings

> [card] [Broker Commands](https://docs.coreflux.org/v2.22/mqtt-broker/commands.md)
>
> Full command list published to `$SYS/Coreflux/Command`


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