Skip to content

CLI Overview

The ZERG CLI is a standalone LuaJIT binary (321KB) with 55+ 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
statuszerg statusServer health and status
modelszerg modelsList available models
inferencestart, stop, statusLLM inference management
workerslist, spawn, killAgent worker management
workflowlist, start, show, cancel, treeMulti-step workflows
bg-workersstart, list, status, logs, killBackground workers
sessionslist, resumeSession management
memorystore, list, search, deleteAgent memory
schedulescreate, list, deleteJob scheduling
login / logoutzerg login, zerg logoutAuthentication

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.