Skylark Hub
Skylark Hub

hubctl

The Hub's command-line tool for servers, Jetson devices and other machines without a desktop.

Linux only

hubctl ships with the Linux package of newer Hub releases, and is also available on its own for machines without a desktop. It does what the desktop Hub does — activate, check hardware, install, update and read logs — from a terminal.

Use hubctl where the desktop Hub can't run: headless servers, and NVIDIA Jetson devices, which are ARM-based. It runs on Ubuntu 20.04 and newer, including JetPack 5 and 6.

Install with one command

In Skylark Central, open the Skylark Hub menu in the page header. Under Command line (hubctl) it offers two commands with copy buttons. Run either one on the machine, in a terminal or over SSH.

Install and activate in one go, with your organization's license key filled in:

curl -fsSL "https://central.skylarklabs.ai/api/v1/hub/install?key=<org-key>" | sudo bash

Install only, then activate or sign in afterwards:

curl -fsSL https://central.skylarklabs.ai/api/v1/hub/install | sudo bash
sudo hubctl activate <org-key>      # or: hubctl login

The script needs root, curl, dpkg and sha256sum, which Ubuntu has out of the box. It finds the latest hubctl package for the machine's architecture (x86_64 or arm64), checks its SHA-256 checksum, installs it with dpkg, and, with ?key=…, writes the key to /etc/skylark/license.json, where every Skylark product on the machine reads it. Running it again updates hubctl and keeps an existing license file. It ends by printing the next steps: hubctl doctor and sudo hubctl install ai --start.

The organization key, not a per-license key

Devices activate with the organization license key: the long key under your organization's settings in Central. The shorter XXXXX-XXXXX-XXXXX-XXXXX keys listed per license don't activate a device; Central answers Invalid or expired license key.

Commands

CommandWhat it does
sudo hubctl activate <key>Writes your license key to /etc/skylark/license.json, where every Skylark product on the machine reads it.
hubctl doctorChecks the hardware, ports and connection to Skylark Central, and shows which AI profile fits this machine.
sudo hubctl install aiInstalls the Kepler AI build that matches this machine's hardware.
hubctl updateLists products with an update available.
sudo hubctl update --yesApplies those updates, skipping any product that is running.
sudo hubctl update --yes --restartApplies them and stops and restarts running products — your explicit consent to interrupt them.
hubctl logs <product> [-f]Shows a product's logs; -f follows them.
sudo hubctl self-updateUpdates hubctl itself (--check only tells you whether there is a newer one).
sudo hubctl install skylark-sdkInstalls the Skylark SDK, the SDK's API for this machine.
sudo hubctl sdk start / stopRuns the Skylark SDK on this machine's Kepler AI (Kepler's own AI service pauses), or stops it.
hubctl sdk status / sudo hubctl sdk logs [-f]Whether the SDK runs and its models are loaded; its log (the journal needs sudo).
sudo hubctl uninstall <product>Removes a product (skylark-sdk, kepler-ai-workstation, …).

If `hubctl sdk` is an unrecognized subcommand

Your hubctl predates the Skylark SDK. Run sudo hubctl self-update, or run the install command above again; it installs the latest release.

Install Kepler AI on a server

A server with an NVIDIA GPU (driver 525 or newer) and no desktop: the same steps as a Jetson, over SSH.

Install and activate

curl -fsSL "https://central.skylarklabs.ai/api/v1/hub/install?key=<org-key>" | sudo bash

Check the machine

hubctl doctor

It should show the NVIDIA driver and pick the workstation profile.

Install the AI service

sudo hubctl install ai --start
hubctl logs kepler-ai-workstation -f

On its first start the service downloads its models from Skylark Central.

Run the Skylark SDK, if you want to call the models from code

sudo hubctl install skylark-sdk
sudo apt install ffmpeg          # for video files and camera streams
sudo hubctl sdk start
hubctl sdk status                # wait for "AI: ok"

Your code then calls http://127.0.0.1:8092/v1 with the organization key. See Run the Skylark SDK on this machine.

Install Kepler AI on a Jetson

Install and activate

curl -fsSL "https://central.skylarklabs.ai/api/v1/hub/install?key=<org-key>" | sudo bash

Check the device

hubctl doctor

It should report a Jetson and pick the jetson profile.

Install the AI service

sudo hubctl install ai

Follow the logs

Follow the AI service's log with hubctl logs <product> -f. On its first start the service downloads its models from Skylark Central, which can take a few minutes.

If hubctl doctor finds no supported accelerator, hubctl install ai stops with no installable AI service — there is no CPU-only build of Kepler AI. See Hardware and AI profiles.

To call the Skylark SDK's models from your own code on the Jetson, install the SDK and start it: sudo hubctl install skylark-sdk, then sudo hubctl sdk start. See Run the Skylark SDK on this machine.