Skip to content


We offer different ways to install the ShellHub Agent. The easiest way is with our automatic one-line installation script, which works with all major Linux distributions but it requires that you have Docker installed and properly set up.

If you want to install ShellHub Agent without Docker, currently we have two other options:

  1. Installing from source code
  2. Integrate into an existing Yocto Project image

Automatic one-line installation script


Docker installed and properly set up on device is required. Follow the Docker Install Instructions for your distro/platform. You should always use the latest docker version. The minimum supported Docker version is 18.06.

To install ShellHub Agent run the following command:

sh <(curl -Ss http://<SERVER-ADDRESS>/<TENANT-ID>)


  • <SERVER-ADDRESS>: is the ShellHub instance server address
  • <TENANT-ID>: is the Tenant ID of your account

Optional URL parameters

  • keepalive_interval: Specifies in seconds the keep alive message interval
  • preferred_hostname: The preferred hostname to use rather than generated value from ethernet MAC address

Installing from source code


ShellHub Agent requires Go 1.14 to compile, please refer to the official documentation for how to install Go in your system.

First checkout the latest stable version (v0.4.2) of ShellHub as follows:

git clone -b v0.4.2 shellhub

Next, we need to execute the following command to build ShellHub Agent:

cd shellhub/agent
go build -ldflags "-X main.AgentVersion=v0.4.2"

Use file ./agent to check if executable was built.

Integrate into an existing Yocto Project image

To use ShellHub in a Yocto Project image is necessary to add meta-shellhub layer in your project.

git clone

Add the settings below in your local.conf file:

CORE_IMAGE_EXTRA_INSTALL += "packagegroup-shellhub-runtime"
SHELLHUB_TENANT_ID = "<your tenant id here>"


  • CORE_IMAGE_EXTRA_INSTALL: this variable will install the ShellHub agent in your image.
  • SHELLHUB_TENANT_ID: needs to be filled with your tenant id.

Remember to add the other configurations according to your needs. After this, just generate the desired image.

Optional variables

Supported Yocto releases