Command line
The skylark-edge command — list, download and run models from a terminal, check how long a machine can stay offline, and the environment variables it reads.
Installing the package also installs the skylark-edge command. It does what the
Python API does, for scripts and for machines where you'd rather not write
code.
Commands
| Command | What it does |
|---|---|
skylark-edge models | Online. Lists the models your license can download and Skylark Edge runs, with their versions, sizes and which are downloaded. |
skylark-edge download <model>… | Online. Downloads one or more models, or updates them to the latest version. |
skylark-edge run <model> <image>… | Runs a model on one or more images and prints what it found. |
skylark-edge status | Shows what is downloaded, when the license was last checked and until when this machine can run offline. |
skylark-edge purge | Deletes every downloaded model and the saved license state from this machine. |
Options that go before the command:
| Option | |
|---|---|
--license-key <key> | Your organization's license key. Default: SKYLARK_LICENSE_KEY, then the activation file. |
--home <dir> | Where models are kept. Default: SKYLARK_HOME, then your user data directory. |
Options for run:
| Option | |
|---|---|
--provider <name> | auto (default), cpu, cuda, directml or coreml. See Choosing the hardware. |
--json | Print each image's full results as one line of JSON. |
Examples
$ skylark-edge models
cctv_detection 2.1.0 83 MB downloaded (2.1.0)
drone_detection 1.4.0 105 MB
$ skylark-edge download drone_detection
drone_detection [#########################] 100% 104.9 / 104.9 MB (6.2s)
drone_detection 1.4.0 ready
$ skylark-edge run cctv_detection gate.jpg
gate.jpg: 3 detections in 214 ms
person 0.91 [812, 301, 949, 702]
person 0.84 [1204, 288, 1301, 640]
four_wheeler 0.88 [96, 410, 640, 790]
$ skylark-edge status
home: /home/ops/.local/share/skylark-edge
license key: set
license checked: 2026-10-27 09:12 UTC
runs offline to: 2026-11-26 09:12 UTC
cctv_detection 2.1.0 83 MB
drone_detection 1.4.0 105 MBBoxes are [x1, y1, x2, y2] in the image's pixels.
run --json prints one JSON object per image, with the image's path in file, ready for
jq:
skylark-edge run cctv_detection frames/*.jpg --json | jq -c '{file, counts}'Exit codes
| Code | Meaning |
|---|---|
0 | Success. |
1 | It failed. The message ends with the error code in brackets, for example [not_downloaded]. |
130 | Interrupted with Ctrl+C. |
Environment variables
| Variable | |
|---|---|
SKYLARK_LICENSE_KEY | Your organization's license key, when it isn't passed in code or with --license-key. |
SKYLARK_HOME | Where models and the license state are kept. |
HTTPS_PROXY | A proxy for every connection Skylark Edge makes: to Skylark Central and for model downloads. Write it as http://host:port, or http://user:password@host:port. ALL_PROXY and HTTP_PROXY work too. |
SKYLARK_ORT_LIBRARY | The path of an ONNX Runtime shared library to use instead of the installed onnxruntime package's. |
The Python API reads the same variables.
Python API
Every class and method in the skylark_edge package — downloading and loading models, running them on images and video frames, choosing the hardware, and the result format.
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.