Tier0 Technical Guidance Manual

Get Started

Choosing the Best Product

Edge, Cloud, or Enterprise — positioning, plans, and a capability matrix for picking your Tier0 edition.

Check here for detailed features of each product and make the choice that fits you the best.

Get Started

Installation

Install Tier0 by edition.

Tier0 ships in three editions:

  • Cloud - Managed SaaS, no infrastructure required.
  • Enterprise - Private deployment for enterprise environments.
  • Edge - Open-source, runs locally with Docker.

See Choosing the Best Version to find the edition that best fits your requirements.

Apply for a trial account before exploring Tier0 Cloud.

  1. Register your account at Register Tier0.
  2. Use the verification code sent to your email to verify and then log in with the registered account.
  3. Create a workspace and start your trial.

Choosing the Best Version - Compare each version and select the one best fits you

Get Started

User Journey

The recommended way to get started with Tier0.

flowchart TD
  app["Build Your App"]
  namespace["Create Namespace"]
  external["Extend with External Data (Optional)"]
  use["Use Unified Data in Your App"]

  app --> namespace --> external --> use
  namespace -.->|"Skip optional step"| use

  classDef t0accent fill:#B2ED1D,stroke:#73B200,color:#171717
  class use t0accent
Action Operator Edition Description
Build App You Cloud Talk to the Agent to create a custom application.
Create Namespace Agent Cloud Creates a Namespace and data models based on the App’s business logic.
Connect External Data (optional) You Cloud, Enterprise Provide information of existing business systems or devices for the agent to connect when necessary.
Integrate Data Agent Cloud, Enterprise Maps, transforms, and integrates external data into the existing model for the App.

Using Tier0

Preparing Data Foundation

Connect, model and intergrate external data into Tier0 for your applications.

Tier0 builds a data foundation for customized applications that:

  • Takes in business data from applications;
  • Connects external data sources from your existing systems and devices;
  • Integrates data into a unified model for your applications to use.

All data is modeled into Tables under Namespace and organized based on data types.

  • Relational data, mostly from business systems, is stored in Record tables.
  • Time-series data, mostly from devices, is stored in Sample tables.
flowchart TB
  namespace["Namespace"] --> table["Table"]
  table --> record["Record table<br/>relational data"]
  table --> sample["Sample table<br/>time-series data"]

  classDef t0accent fill:#B2ED1D,stroke:#73B200,color:#171717
  class table t0accent
  • Business data can be from application usage or external systems.
  • Time-series data is mostly from connected devices.
flowchart LR
  app["App"] -->|"business data"| record["Record Table"]
  stream["Source & Stream"] -->|"device data"| sample["Sample Table"]

  classDef t0accent fill:#B2ED1D,stroke:#73B200,color:#171717
  class record,sample t0accent
  • Source: Connects to external data servers, often with authentications.
  • Stream: Collects data from servers, processes it according to requirements and stores it in Namespace tables.
flowchart LR
  source["Source<br/>connects server"] --> stream["Stream<br/>collects + processes data from servers"]

  classDef t0accent fill:#B2ED1D,stroke:#73B200,color:#171717
  class source,stream t0accent
  1. Build your application in Builder and have the business data models prepared in Namespace using agent.

  2. Connect needed data sources under Connect > Source with authentication.

  3. Tell the agent to create Stream to collect and process data from connected sources into Namespace models generated from the application.

Using Tier0

Working with Factory Data

Operate on the UNS data over MQTT and the API — with the API reference.

Data in Tier0 unified namespace can be altered and managed through MQTT and APIs with authorization.

MQTT clients can connect to the UNS broker with credentials generated on Tier0.

Generate MQTT credentials in Connect > Source > MQTT Device and make a note of it.

  1. Install and open MQTTX.
  2. Add a connection with the information of the UNS broker and the generated credentials.
    Terminal window
    {
    "Host": "mqtt.tier0.dev",
    "Port": 1883,
    "Client ID": "<generated client ID>",
    "Username": "<generated username>",
    "Password": "<generated password>"
    }
  1. Make sure the client status is normal.
  2. Copy a UNS model topic and publish a message to it through the client.
  • Base URL: https://<your-tier0-host>/openapi/v2
  • Authentication: Send the API key obtained from Tier0 in the x-api-key header.
  • POST /uns/metadata:find — List tables and get the table ID

    Terminal window
    const base = "https://your-tier0-host/openapi/v2";
    const response = await fetch(`${base}/uns/metadata:find`, {
    method: "POST",
    headers: { "content-type": "application/json", "x-api-key": "your-api-key" },
    body: JSON.stringify({"kind": "collection", "filter": {}, "page": {"mode": "offset", "page": 1, "size": 20}}),
    });
    const result = await response.json();
    if (!response.ok || result.code !== 0) throw new Error(result.error?.code || result.msg);
    console.log(result.data.items);
  • POST /uns/collections/{collectionId}/records:find — List records and get the record ID

    Terminal window
    const base = "https://your-tier0-host/openapi/v2";
    const collectionId = "your-collection-id";
    const response = await fetch(`${base}/uns/collections/${encodeURIComponent(collectionId)}/records:find`, {
    method: "POST",
    headers: { "content-type": "application/json", "x-api-key": "your-api-key" },
    body: JSON.stringify({"limit": 20}),
    });
    const result = await response.json();
    if (!response.ok || result.code !== 0) throw new Error(result.error?.code || result.msg);
    console.log(result.data);
  • POST /uns/collections/{collectionId}/samples:latest — Get the latest sample for a record

    Terminal window
    const base = "https://your-tier0-host/openapi/v2";
    const collectionId = "your-collection-id";
    const response = await fetch(`${base}/uns/collections/${encodeURIComponent(collectionId)}/samples:latest`, {
    method: "POST",
    headers: { "content-type": "application/json", "x-api-key": "your-api-key" },
    body: JSON.stringify({"recordIds": ["record_123"]}),
    });
    const result = await response.json();
    if (!response.ok || result.code !== 0) throw new Error(result.error?.code || result.msg);
    console.log(result.data);
  • POST /uns/collections/{collectionId}/samples:find — Get samples in a time range

    Terminal window
    const base = "https://your-tier0-host/openapi/v2";
    const collectionId = "your-collection-id";
    const response = await fetch(`${base}/uns/collections/${encodeURIComponent(collectionId)}/samples:find`, {
    method: "POST",
    headers: { "content-type": "application/json", "x-api-key": "your-api-key" },
    body: JSON.stringify({"recordIds": ["record_123"], "from": 1792454400000, "to": 1792540800000, "filter": {"temperature": {"$gt": 20}}, "limit": 20}),
    });
    const result = await response.json();
    if (!response.ok || result.code !== 0) throw new Error(result.error?.code || result.msg);
    console.log(result.data);
Using Tier0

Operating on Tier0 with Agents

Connect an AI agent to Tier0 through MCP.

Connect your AI agent to Tier0 through MCP. The agent can find and use platform APIs within the permissions you grant.

Work on Tier0 with your preferred AI agent.
Claude Code
Codex
Gemini CLI
Cursor
GitHub Copilot
WorkBuddy
  1. Add an MCP server in Settings > Plugin > MCP using the URL from Tier0.
  2. Add a personal API key in Tier0 under Settings > API Keys > Personal Keys with the required permission level.
  3. Enter the personal API key in the MCP server you added in Codex.
    Terminal window
    {
    "Authorization": "Bearer <your-personal-api-key>"
    }
  4. Ask the agent to use whoami to check the connection.
  • MCP tools:

    Tool Use
    whoami Check your identity and permissions.
    docs Read API documentation.
    search Find an API operation.
    execute Call an API operation.
  • Usage

    1. Ask your agent to use docs and search to find the API operation you want to call.
    2. Use execute to call the API operation.

For example:

Terminal window
Read the current value of `Plant/Line1/Metric/Temperature` in my workspace.

Working with Factory Data — Learn how Tier0 organizes and serves factory data.

Best Practice

Connecting Data Sources

Tier0 supports connecting to various industrial protocols, including OPC UA, Modbus, MQTT and more.

  • Security configuration is automatically obtained from the server once you enter the server address.
  • Authentication is supported through username/password or certificate.
Terminal window
{
"name": "ua",
"description": "",
"protocol": "opcua",
"endpoint": "opc.tcp://220.184.175.73:4841/demo/",
"runtimeLocation": "local",
"opcua": {
"securityMode": "None",
"securityPolicy": "None"
}
}

Only server address and unit ID are required.

Terminal window
{
"name": "modbus",
"description": "",
"protocol": "modbus-tcp",
"endpoint": "tcp://220.184.175.73:1502",
"runtimeLocation": "local",
"modbus": {
"unitId": 1
}
}

Tier0 can be used as an MQTT broker to receive data from devices, or as a client to connect to an external MQTT broker.

  • As a broker:

    1. Generates connection credentials including client ID, username and password when connecting MQTT Device.
    2. Third-party client must use the publish topic displayed on the connection panel to publish messages.
    3. Use the agent to build a stream, with the publish topic as input, to send data to the secified Namespace.
  • As a client: Connect third-party broker.

    Terminal window
    {
    "name": "111",
    "description": "",
    "protocol": "mqtt",
    "endpoint": "mqtt://220.184.175.73:1883",
    "runtimeLocation": "local",
    "mqtt": {
    "clientId": "tier0UxxxxxxxxuwQVfi"
    }
    }

Tier0 can be used as an HTTP server for third-party to access, or as a client to call API from other HTTP server.

  • As a server:

    1. Add an HTTP server in Tier0, and get the full address from the information panel.
    2. Use the agent to build a stream that defines data and subsequent routing, together forming an API.
    3. Third-party uses the address and the set routing to call the API and get the data.
  • As a client: Connect third-party HTTP servers.

Terminal window
{
"name": "222",
"description": "",
"protocol": "http-api",
"endpoint": "http://220.184.175.73:8088/api/telemetry",
"runtimeLocation": "local",
"role": "client",
"http": {
"authentication": "none"
}
}
  • Database address must include both port and database name.
  • An initial query command is necessary.
  • When the database is available for anonymous connection, authentication can be skipped.
Terminal window
{
"name": "eee",
"description": "",
"protocol": "edge-sql",
"endpoint": "mysql://hzoffice.tier0.dev:3307/demo_factory",
"runtimeLocation": "local",
"sql": {
"queries": {
"query1": "SELECT * FROM telemetry ORDER BY id DESC LIMIT 5"
},
"tlsMode": "verify-full"
},
"credentialRef": "ref_9ce47b8778xxxxxxxx7dad49a86dbad"
}
  1. Connect to Tier0 Github through OAuth.
  2. Discover resources in this organization on the source information panel.
  3. Ask the agent to build a stream to get needed data.
  1. Ask the agent to build streams to get data from the connected sources.
  2. Necessary information, such as Modbus registers, database queries, UA namespace URIs, MQTT topics are required in the prompt.