Skip to content

CLI Overview

The ZERG CLI is a standalone LuaJIT binary (321-377KB) with 54 commands for managing the ZERG platform.

Installation

bash
cd zerg-cli
bash build/build.sh
# Binary at: zerg-cli/build/zerg
sudo cp zerg-cli/build/zerg /usr/local/bin/

Configuration

bash
# Set up config with named profiles
zerg config set default.url https://api.nonsense.ws
zerg config set default.token <your-token>

# Or use environment variables
export ZERG_URL=https://api.nonsense.ws
export ZERG_TOKEN=<your-token>

Shell Completion

bash
# Bash
zerg completion bash > /etc/bash_completion.d/zerg

# Zsh
zerg completion zsh > "${fpath[1]}/_zerg"

# Fish
zerg completion fish > ~/.config/fish/completions/zerg.fish

Command Groups

GroupCommandsDescription
Healthhealth, metricsServer health and metrics
Modelsdiscover, list, ps, show, start, stop, stop-all, prepareModel management
Inferencerun, chatOpenAI and Anthropic API completions
Workersagents, spawn, kill, task, task-cancel, task-statusAgent worker management
Workflowlist, start, show, cancel, branch, tree, lineageMulti-step workflows
Bg Workersstart, list, status, logs, killBackground workers
Schedulelist, add, show, pause, unpause, run, deleteJob scheduling
Channelschannels, channel-add, channel-remove, channel-test, channel-sendDelivery channels
Recipesrecipe-list, recipe-show, recipe-run, recipe-reloadWorkflow recipe templates
Skillsskills, skill-search, skill-register, skill-removeAgent skill management
Keyringkeyring-test, keyring-set, keyring-get, keyring-deleteOS keyring integration
Pluginplugin-eval, plugin-workers, plugin-spawnLua sandbox workers
ZMQzmq-workers, zmq-dispatch, zmq-statusZMQ worker management
Clustercluster, catalog, join, leaveCluster management
Circuitscircuits, circuits-resetCircuit breaker management
Authlogin, logoutAuthentication
Updatecheck, download, apply, rollbackSelf-update management
CompletioncompletionShell completion scripts

Examples

bash
# Check server status
zerg status

# List available models
zerg models

# Start inference
zerg inference start --model glm-5.1

# Start a workflow
zerg workflow start --template code-review

# Check background workers
zerg bg-workers list

# Login to a server
zerg login --url https://api.nonsense.ws --token <token>

# Get JSON output
zerg status --format json

Released under the MIT License.