HiveMQ Cloud

HiveMQ is the industry leader for enterprise-ready, beautifully scalable, large-scale IoT deployments with MQTT. We help companies connect things to the Internet. Our MQTT-based messaging platform ensures fast, reliable, and secure movement of data to and from connected IoT devices for companies around the world.


HiveMQ Cloud is a fully-managed, cloud-native IoT messaging platform that makes trustworthy and scalable IoT device connectivity simple:

  • Create a cluster with just a few clicks and connect your IoT devices. No installation or server management required.

  • Reduce your risk of operation. HiveMQ professionals with years of experience managing large-scale, mission-critical MQTT broker clusters maintain HiveMQ Cloud for you.

  • Automatic scaling to meet your demands smoothly with superior clustering technology that ensures high availability and reliability for all your IoT devices.

  • Enterprise-grade security from the ground up. Dedicated infrastructure with replication across 3 different data centers, TLS communication, device authentication/authorization, and 24/7 professional support.

  • Easy connection and integration with no vendor lock-in. HiveMQ Cloud is 100% compliant with the MQTT specification.

  • Custom cluster URLs to support your individual use case and branding.

  • Transparent pricing. No complicated service calculations and hidden costs.

Available features vary per HiveMQ Cloud package. For more information, see HiveMQ Cloud packages.

Get Started

The best way to learn more about HiveMQ Cloud is to follow our HiveMQ Cloud Quick Start Guide and spin up your first HiveMQ cluster.

Try Out HiveMQ Cloud for free

You can take advantage of our introductory HiveMQ Cloud package at absolutely no cost. The FREE package is the perfect way to explore the features of HiveMQ Cloud. Here are the details:

  • Connect 100 MQTT devices at no cost to you.

  • No credit card required. Cancel anytime.

  • Begin immediately with our easy-to-follow in-product quick start guide.

HiveMQ Cloud Quick Start Guide

This guide shows you how to do the following in a few easy steps:

Sign Up and Log in on the HiveMQ Cloud Portal

To get started with HiveMQ Cloud, navigate to

  • On the HiveMQ Cloud Portal dialog, switch to the Sign Up tab and sign up with your GitHub account, Google account, LinkedIn account, or email address.

  • Once you successfully sign up, switch back to the Log In tab and log in to your HiveMQ Cloud account.

HiveMQ Cloud Portal

Start Your Free HiveMQ Cloud Experience

After you sign up and log in, a page to select the type of HiveMQ Cloud package you want to use opens:

HiveMQ Cloud Cluster Creation Wizard
  • Select Create Cluster on the HiveMQ Cloud FREE card.
    A page to select the cloud service provider where you want us to host your free HiveMQ Cloud cluster opens:

HiveMQ Cloud Select Provider
  • To create your free HiveMQ Cloud cluster, click the cloud service provider that you prefer and select Create Cluster.
    Within a few moments, your free HiveMQ Cloud cluster is running and ready.

Your Clusters - HiveMQ Cloud Free Cluster
  • To view cluster information and access the area where you define the credentials that your MQTT clients use to connect to the cluster, select Manage Cluster.
    The Cluster Details page for your cluster opens.

HiveMQ Cloud Free Cluster Overview
  • To continue your setup with the getting started guide in this documentation, switch to the Access Management tab of your HiveMQ Cloud console and continue reading.

  • To proceed with step-by-step getting started instructions online, switch to the Getting Started tab of your HiveMQ Cloud console and follow the prompts.

Create MQTT Client Credentials

To connect an MQTT client to your cluster, you need to define the MQTT credentials that allow the clients to access the cluster.

  • To create an MQTT credential, enter a Username and Password in the credentials input area of the Access Management tab for your HiveMQ Cloud cluster and select Add.
    The Active MQTT Credentials area of the_Access Management_ tab adjusts to display the credentials that you add.

You can add and delete MQTT credentials for your HiveMQ Cloud cluster as needed.
Access Management - Create MQTT Credentials
Keep the Credentials page of your cluster open. To complete the Pub/Sub test with the MQTT CLI procedure, you need the URL, port, and MQTT credential information from the Overview and Access Management tabs.

Test Your New HiveMQ Cloud Cluster

Once you create your MQTT credentials, you are ready to connect some MQTT clients and explore basic MQTT functionality.

This guide walks you through two ways try out the connection to your HiveMQ Cloud instance:

Pub/Sub Test with the MQTT CLI

We use the MQTT CLI for ease of use and to simplify the explanation of this example procedure. However, you are free to use whichever tool and method you prefer.
For instructions with other tools, check the tooling information listed on the Getting Started tab of your Cluster Details

Download and install the current version of the MQTT CLI.
Documentation and download packages with complete installation instructions are available at no cost on GitHub.
An introductory tutorial for the MQTT CLI is available on YouTube.

Connect an MQTT Client
  1. To start the MQTT CLI in shell mode, open a terminal window and enter the following command:

    mqtt sh

    The MQTT CLI starts and displays a list of useful options and commands.

  2. To connect to your HiveMQ Cloud cluster, type the following command with the appropriate information from your Clusters page and press enter:

    con -h  <cluster-url> -p <port-number> -s -u <mqtt-credentials-username> -pw <mqtt-credentials-password>

    Information about the HiveMQ Cloud connection displays.
    This is your first connected MQTT client.

    HiveMQ Cloud only allows secure TLS connections. Adding an -s flag to the connect command opens a secure connection to the MQTT Broker with the default SSL configuration.
  3. To create another connected client and test your cluster, open a second terminal window (keep your original terminal window open) and enter the following command once more:

    mqtt sh
  4. Copy and paste the connection command that you created in the first window to the second window and press enter.
    Information about the second HiveMQ Cloud connection displays.
    This is your second connected MQTT client.

Publish/Subscribe Test
  1. In the terminal window of the second MQTT client, enter:

    sub -t testTopic -s

    This command subscribes the second MQTT client to all messages that are published to the topic testTopic.

    In shell mode, adding the -s flag to the command blocks the MQTT CLI console so that the incoming messages are printed out to the user.
  2. In the first terminal window, enter:

    pub -t testTopic -m Hello

    This command makes the first MQTT client a publisher and publishes the message Hello with the topic testTopic.
    The message Hello appears immediately in the terminal window of the second MQTT client.

  3. To publish another message, enter the following command in the first terminal window:

    pub -t testTopic -m Goodbye

    This command publishes the message Goodbye with the topic testTopic.
    The message Goodbye appears immediately in the terminal window of the second MQTT client.

Pub/Sub Test with the HiveMQ WebSocket Client

Your HiveMQ Cloud package also supports MQTT over WebSocket on port 8884. Once you create your HiveMQ Cloud cluster you can use the public HiveMQ WebSocket client to test the connection. The graphical view of the public WebSocket client provides a convenient way to explore and experiment with MQTT functionality.

Access the HiveMQ WebSocket Client
  1. To get started with the HiveMQ WebSocket Client, switch to the Web Client tab of your HiveMQ Cloud cluster.

Connect to Your HiveMQ Cloud Instance
  1. In the Client Connection Settings area, enter the set credentials you want to use for the web client connection.
    You can use one of the Active MQTT Credentials listed on your Access Management tab or create a new set of automatically generated connection credentials.

    • To connect with credentials that you previously created, enter one of your active credentials and select Connect Client to establish the connection.

      Connect Web Client

      The screen adjusts to show that the Web Client is connected.

      Connected Web Client
    • To create and connect with automatically generated credentials, select the Connect with Generated Credentials option.
      A dialog opens with your autogenerated username and password.

      Generate Web Client Credentials

      Record your new credential information in a secure location, and select Create and Connect to establish the connection.

Pub/Sub Test with the HiveMQ Web Client
  1. In the Topic Subscriptions area, enter a topic name and select a Quality of Service (QoS) level for the subscription. The default QoS level is 0.
    To add the subscription, select Subscribe.
    To subscribe to additional topics, repeat the process.

    Web Client Subscription

    If desired, use the Change Color option to color code the subscription with a color of your choice.

  2. In the Publish Message area, enter the destination topic, the desired message payload, and quality of service level (QoS). The default QoS level is 0.
    To publish the message to your HiveMQ Cloud instance, select Publish.
    The message payload, topic, QoS level, and timestamp of each message sent to the Web Client on the defined subscriptions display immediately.

    Web Client Publish

For more information on MQTT over WebSockets, see the HiveMQ MQTT Essentials special edition on WebSockets.

Next Steps

Once you connect your first MQTT clients with your HiveMQ Cloud cluster and exchange your first MQTT messages, you are ready to scale up and dive deeper.
Learn more about the options HiveMQ Cloud offers: