Licensing and offline use
How Skylark Edge checks your organization's license, how long a machine runs offline, what it sends to Skylark and what it keeps on disk.
Skylark Edge runs on your organization's license. It checks the license with Skylark Central when it can, and keeps running without a connection for up to 30 days after the last successful check.
The license key
Skylark Edge uses your organization's license key, which Skylark provides. It is the same key that activates Skylark's other software on a machine, and Skylark Edge looks for it in this order:
- The key passed in code,
Edge("<key>"), or with--license-key. - The
SKYLARK_LICENSE_KEYenvironment variable. - The machine's activation file:
/etc/skylark/license.jsonon Linux and macOS,%ProgramData%\Skylark\license.jsonon Windows. Alicense.jsoninSKYLARK_HOMEis read before either.
Each time it checks, Skylark Central confirms that the key belongs to an active organization holding at least one active, unexpired license.
When it connects
Skylark Edge contacts Skylark Central only:
- when you list models (
edge.models(),skylark-edge models), - when you download one, and
- when you load a model and the last check is more than a day old. If the machine is offline then, loading goes ahead on the offline allowance.
Running a model never connects. Every successful check restarts the 30 days.
Running offline
| Since the last check | Loading a model |
|---|---|
| Up to 30 days | Works, online or offline. |
| More than 30 days | Fails with grace_expired until the machine connects once. |
skylark-edge status, or edge.status(), shows when the last check was and until when
the machine can run offline. For a machine that is offline most of the time, connect it
and run skylark-edge models once a month.
The clock
The 30 days count from Skylark Central's time at the last check. The machine also
remembers the latest time it has seen, and if its clock is ever more than an hour behind
that, loading fails with clock_rollback. Correct the clock, or connect once so the license
is checked again.
When a license ends
If Skylark Central refuses the key, because it is wrong or your organization no longer has an active license, Skylark Edge forgets every model key on that machine at once. The model files stay on disk, still encrypted, but nothing can load them. Once the license is active again, download the models again.
To replace your license key, pass or set the new one. Models downloaded with the old key need downloading again.
What is sent to Skylark
Each check sends your license key and, for a download, the name of the model, over HTTPS. The model file itself comes from Skylark's storage through a short-lived link.
No images, results or anything about the machine are sent. Skylark Edge has no telemetry.
What is kept on the machine
Everything is in one directory, SKYLARK_HOME:
- Model files are stored exactly as Skylark encrypted them. A model is decrypted in memory, straight into the inference runtime, each time it loads, and never written to disk decrypted.
state.binholds each model's key and the time of the last license check. It is encrypted to this machine: copied to another machine it can't be read, and that machine has to connect and download its models itself.
skylark-edge purge deletes the directory's contents.
Containers
Most containers have no machine id of their own, so Skylark Edge makes one and keeps it in
SKYLARK_HOME. Keep SKYLARK_HOME on a volume, so that a recreated container is still the
same machine, with its downloads and its license check:
docker run -v skylark-edge:/data -e SKYLARK_HOME=/data -e SKYLARK_LICENSE_KEY my-app