Docs · Start here
Getting started with OTDeck
OTDeck is a desktop workbench for MQTT, Modbus TCP/RTU, OPC UA and BACnet/IP with a built-in MCP server for AI agents. This guide takes you from install to live values on all four protocols in about ten minutes, using the simulator that is built into the app. No device, broker or Docker needed.
- Safety rules for real plants: Connection roles and safety
- AI agents (Claude Desktop, Claude Code, Cursor, VS Code): AI agents (MCP)
- Licence keys, offline activation, beta licences: Licence and activation
- When something does not connect: Troubleshooting

1. Install
| System | File | Notes |
|---|---|---|
| macOS 12 or later (Apple silicon and Intel) | OTDeck-<version>.dmg |
Signed and notarized; drag OTDeck to Applications. |
| Windows 10/11 x64 | OTDeck-<version>-x64-setup.exe |
Installs to C:\Program Files\AKStudio\OTDeck. The installer is not code-signed: SmartScreen shows “Windows protected your PC”, choose More info → Run anyway. |
| Windows 11 on Arm | OTDeck-<version>-arm64-setup.exe |
Same as x64. |
| Debian 13, Ubuntu 24.04 or later | otdeck_<version>_amd64.deb / _arm64.deb |
sudo apt install ./otdeck_<version>_amd64.deb pulls GTK 4 and WebKitGTK 6.0. |
| Fedora 40 or later | otdeck-<version>.x86_64.rpm / .aarch64.rpm |
sudo dnf install ./otdeck-<version>.x86_64.rpm |
| Other Linux | otdeck-<version>-linux-amd64.tar.gz / -arm64.tar.gz |
Needs GTK 4.14+ and WebKitGTK 6.0; see README.txt inside. |
Every package contains two programs: otdeck (the app) and otdeck-mcp
(the MCP server for AI agents, AI agents (MCP)).
OTDeck keeps its files in the app directory:
| System | App directory |
|---|---|
| macOS | ~/Library/Application Support/OTDeck |
| Windows | %AppData%\OTDeck |
| Linux | $HOME/.config/OTDeck |
It holds profiles.json (connections, no passwords), settings.json,
license.json, pki/ (OPC UA certificates), recordings/, audit/
(the write log), trends.json and trend-points.bin.gz (the trend panel,
Trends) and logs/otdeck.log. Passwords and key passphrases go to the OS keychain
(macOS Keychain, Windows Credential Manager, the Secret Service on Linux).
OTDeck Free needs no key and no account, and it never sends telemetry.
2. Start the simulator
On the Welcome screen, under No device at hand? Start the simulator, click Start the simulator. It takes a few seconds and then shows “running”. The simulator runs inside OTDeck, listens on this computer only (127.0.0.1) and stops when OTDeck quits:
| Endpoint | Address |
|---|---|
| MQTT broker (TCP) with factory telemetry and Sparkplug B | mqtt://127.0.0.1:1883 |
| MQTT over WebSocket | ws://127.0.0.1:8083/mqtt |
| MQTT over TLS (self-signed certificate) | mqtts://127.0.0.1:8883, CA file sim-ca.pem in the app directory |
| Modbus TCP PLC, unit id 1 | 127.0.0.1:5020 |
| OPC UA server | opc.tcp://127.0.0.1:4840 |
| BACnet/IP device “Boiler 7”, instance 2601 | 127.0.0.1:47809 (UDP; 47809 leaves 47808 to OTDeck itself) |
| BACnet/SC hub with “Boiler 7 (SC)”, instance 2602 | wss://127.0.0.1:47810; test CA and OTDeck’s certificate in sim-bacnetsc/ in the app directory |
If a port is already taken (a local mosquitto on 1883, another simulator), the start fails with that reason and nothing runs. Stop the other program or use the matching endpoint of your own broker instead.
Below the Start button, Simulated MQTT broker / Modbus PLC / OPC UA server opens a new connection with the address filled in. Click Add connection; the button then reads Connect to the ….
OTDeck Free keeps one connection open at a time. To switch, open the connection’s actions menu (the ⋯ button that appears on hover in the sidebar) and choose Disconnect, then connect the next one. Pro keeps any number open.
3. MQTT

- Simulated MQTT broker → Add connection → Connect to the
MQTT broker. The default subscription is
#at QoS 0. - The topic tree fills within a second:
factory/line1/press/temperature,…/pressure,…/cycle_time, the conveyor, robot joints, oven zones, an energy meter, retained device states (…/state,…/info), an alarm every 15 rounds and a 12-byte binary gateway frame (shown as hex). - Double-click a branch to expand it; click a topic to see its latest payload as JSON, text or hex, its MQTT 5 properties and the last 50 messages.
- Publish (top right) or Publish here on a topic sends a message
with QoS and retain. On a production connection it asks for the
connection name first (Connection roles and safety). Save it as a template,
with payload variables such as
{{now}}or{{random:1:10}}, or repeat it every N ms (MQTT tools). - Sparkplug B: open
spBv1.0/Plant1/DDATA/Edge1/Press1. The Sparkplug tab shows the decoded metrics (Temperature, Pressure, Running, Counter, State, CycleTime) with names taken from the last DBIRTH. Births come on connect and every 60 rounds; until one arrives, the view says so. Edge node… (Pro) runs your own simulated edge node on the broker (MQTT tools).
Your own broker: New MQTT connection, paste a URL such as
mqtts://broker.example.com:8883 into Paste a broker URL (it fills
transport, host and port), then username/password or client certificate.
Transports: TCP (mqtt://), TLS (mqtts://), WebSocket (ws://), WebSocket +
TLS (wss://); MQTT 5.0 or 3.1.1. Test connection checks it before saving.
TLS against the simulator: transport TLS (mqtts://), host 127.0.0.1,
port 8883, CA certificate = sim-ca.pem from the app directory. The
certificate is new every time the simulator starts, so pick the file again
after a restart of OTDeck.
4. Modbus TCP

-
Simulated Modbus PLC → Add connection → Connect to the Modbus PLC (host
127.0.0.1, port5020, unit id 1). -
The register browser is empty; click Add the simulator’s register map. Every range is polled once a second (Poll every).
-
What you see (addresses are 0-based protocol addresses, the reference in the Ref column):
Ref Type Meaning 40001–40003 int16, °C ×10 press, oven, ambient temperature 40004 uint16, °C ×10 press setpoint, writable; above 3000 the PLC answers exception 3 40011 / 40013 float32 ABCD / CDAB the same hydraulic pressure in two word orders 40021, 40023 uint32 parts counter, energy Wh 40031 status word bits: running, fault, door open, maintenance, auto, e-stop 40041–40048 string OTDeck-SIM PLC40051 float64 flow m³/h 30001–30004 uint16 analog inputs, raw 0–27648 30011 float32 vibration mm/s 00001–00004 coils motor run (writable), conveyor, horn, valve 10001–10004 discrete inputs door closed, e-stop OK, part present, level high -
Add range reads any table, start and count with a data type (bool, int16, uint16, hex, int32, uint32, int64, uint64, float32, float64, string) and byte/word order (ABCD, CDAB, BADC, DCBA). Try holding 12–13 as float32 ABCD: the value is nonsense until you switch to CDAB. That is the classic word-order problem, visible in one click.
-
Write… (Pro) writes coils and registers with functions 05/06/15/16. Set 40004 to
2000and the press temperature (40001) climbs towards 200.0 °C; turn coil 00001 off and it falls. -
Register map → Add from library… adds the registers of a known device (Eastron, Carlo Gavazzi, Schneider Electric, ABB, SunSpec, Victron), Import CSV… reads a register map file, and Scan… finds unit ids and readable registers. See Register maps.
Modbus RTU: in New Modbus device choose Mode RTU, then the serial
port (Find serial ports lists them), baud, parity, data and stop bits,
unit id. On Linux your user must be in the dialout group
(Troubleshooting).
RTU has been tested against a simulator only, not yet on a real RS-485 line;
please report what you find.
Modbus RTU over TCP or UDP (since 0.10): a serial gateway (Moxa NPort, USR, ADAM and others) in its “RTU over TCP”, “transparent” or “raw” mode passes RTU frames, with their CRC, through a socket instead of wrapping them in Modbus TCP. Choose Mode RTU over TCP (gateway) or RTU over UDP (gateway), then the gateway’s host and port (often 4001 or 502, see its settings) and the unit id of the device on the serial line. The unit scan then stays within 1–247, as on a serial line. Use plain Modbus TCP when the gateway itself converts Modbus TCP to RTU.
Modbus UDP (since 0.11): the Modbus TCP frame in UDP datagrams, as some PLCs, I/O modules and gateways offer (usually on port 502). Choose Mode Modbus UDP; everything else works as on Modbus TCP.
All transports are in Free. To try them without hardware, start the
simulator with -modbus-rtu-tcp 127.0.0.1:4001, -modbus-rtu-udp 127.0.0.1:4001 or -modbus-udp 127.0.0.1:5020: the simulated PLC (unit id 1)
then also answers behind a serial gateway or over Modbus UDP.
5. OPC UA

- Simulated OPC UA server → Add connection → Connect to
the OPC UA server (endpoint
opc.tcp://127.0.0.1:4840, security None). - Expand Objects → Plant1 → Line1 → Press. Click a variable for its attributes and value; the eye icon adds it to the watch list (monitored items, every 500 ms by default).
- Nodes:
ns=2;s=Plant1.Line1.Press.Temperature(Double, °C),…Pressure(bar),…State(RUNNING, IDLE or FAULT),…Counter(UInt32),…Setpoint(writable, 0–300, else BadOutOfRange),…Running(writable Boolean). - Secure connection: edit the connection, click Discover next to the endpoint URL, choose Basic256Sha256 and SignAndEncrypt. On connect OTDeck shows the server certificate’s thumbprint and asks you to trust it once (like SSH known_hosts). The simulator makes a new certificate every time it starts, so you are asked again after a restart.
- Write… (Pro) on Setpoint or Running writes through the same guard as Modbus.
- Call… on
Press/SetSetpoint(Pro) calls the method with a Double; History… on Temperature reads its last hour; the Events tab shows the HighTemperature alarm and lets you acknowledge it (OPC UA guide).
Login: anonymous or username/password. Certificate (X.509) user login and issued tokens are not supported yet.
6. BACnet/IP
- Simulated BACnet device → Add connection → Connect to
the BACnet device (address
127.0.0.1, port47809, COV on). - The left column shows Boiler 7 (device 2601) and its objects grouped
by type. Click Supply temperature (
analog-input:1): its present value in °C, status flags and every property. The eye icon adds a point to the watch list; COV in the Mode column means the device sends the changes. - Objects:
analog-input:1supply and:2return temperature (°C),:3pressure (bar),analog-output:1setpoint (commandable, priority array),binary-input:1pump running,binary-output:1pump command,binary-value:1enable,multi-state-value:1mode (Off, Auto, Manual),trend-log:1the supply temperature every second,notification-class:1the boiler alarms. - Write… (Pro) on the setpoint writes it at priority 16; the priority array shows the slot, Relinquish releases it again. Priorities 1–8 are refused unless the connection allows them.
5. The Trend log tab reads the last records of trend-log:1; the
Alarms tab shows the HighTemperature alarm when the supply is above
90 °C (set the setpoint to 95) and lets you acknowledge it
(BACnet guide).
MS/TP devices are reached through a BACnet/IP router. Simulated
BACnet/SC hub (Pro) does the same over BACnet/SC: a profile with
transport SC, the simulator’s hub wss://127.0.0.1:47810, its test CA and a
certificate for OTDeck, and device 2602 “Boiler 7 (SC)” behind the hub
(BACnet guide).
7. Trends, recording, export

-
Trend on an MQTT topic (pick the numeric field, e.g.
value), the chart icon on a polled Modbus row, or Trend on an OPC UA node or a BACnet object adds a series to the trend panel (Trends in the title bar). Up to 32 series, window 1 min to 1 h, one axis or one lane per series, a cursor readout. Free keeps the last 5 minutes; Pro keeps up to 36 000 points per series. The series and their last points come back after a restart (Trends). -
Record (Pro) writes every series on the panel to
recordings/rec-YYYYMMDD-HHMMSS.jsonl.gzin the app directory. Recordings replays one at 0.25× to 100× without touching any device, renames, deletes and exports. -
Export (Pro) writes the panel or a recording as CSV or Parquet (long format: time, series, unit, value, source).
-
Commissioning report (Pro; the command palette, or Settings → Write log) saves one HTML file of a time window: the connections and their devices, every write with old and new value, acknowledged alarms, trend charts and the watched values, with a signature block. Print it to PDF from the browser (Commissioning report).
8. Let an AI agent read the same values
Settings → AI agents (MCP) shows the exact path of otdeck-mcp on this
computer and adds it to Claude Code, Cursor or Codex in one click. For
Claude Desktop and VS Code, see AI agents (MCP). Then ask, for example:
- “List my OTDeck connections.”
- “Read holding registers 10–13 on Simulated PLC as float32 and tell me which word order is right.”
- “Browse the OPC UA server under Plant1/Line1/Press and read every value.”
- “List the objects of the simulated boiler and read the supply temperature and the pump state.”
- “What does the trend panel show for the press temperature over the last two minutes?” (needs OTDeck open with that series on the panel)
On connections you set to Read and write (Pro), an agent can also ask to write; nothing is sent until you allow it in OTDeck (AI agents (MCP)).