Skip to content

LLM commands

kdeps llm provisions standalone LLM server appliances. These are not agent packages - there is no workflow path argument.

Architecture, stock recipes, and client wiring: LLM server appliance.

Stock engines

bash
kdeps llm list
IDTypical use
ollamaLocal Ollama pull/serve
llamafileSelf-contained llamafile binary
llama-server / ggufGGUF via llama-server
llamacppOfficial llama.cpp server image
vllmGPU high-throughput (requires --gpu)
tgiHugging Face TGI (requires --gpu)
sglangSGLang (requires --gpu)
localaiLocalAI OpenAI drop-in
openai-compatTemplate for any OpenAI-compat image

Override or add recipes in ~/.kdeps/llm-servers/*.yaml or ./llm-servers/*.yaml.

kdeps llm wizard

Interactive TUI to select engine, model (from harvest or typed), GPU, and action.

bash
kdeps llm wizard
kdeps llm   # same on a TTY

Requires a TTY. Non-interactive environments should use the flag-based commands below.

kdeps llm models

List models available from the llamafile/GGUF harvest (what the wizard shows when picking a model).

bash
kdeps llm models
kdeps llm models --type gguf
kdeps llm models --type llamafile
kdeps llamafile update   # refresh harvest (GGUF + Chinese labs: Qwen, DeepSeek, Yi, ...)

kdeps llm list

List stock and user/project recipes.

bash
kdeps llm list

kdeps llm show

bash
kdeps llm show ollama
kdeps llm show vllm

Prints ports, health path, model strategy, engine command, and a client-config example.

kdeps llm client-config

Print a ready-to-paste ~/.kdeps/config.yaml snippet (or shell env) that points kdeps at an appliance over OpenAI-compatible /v1.

FlagDescription
--urlOpenAI-compat base URL (required), e.g. http://host:8000/v1
--api-keyOptional bearer key
--modelOptional model allowlist (yaml only)
--formatyaml (default), env, or export
bash
kdeps llm client-config --url http://192.168.1.50:8000/v1
kdeps llm client-config --url http://llm:8000/v1 --format export
kdeps llm client-config --url http://host:8000/v1 --model llama3.2 --api-key secret

kdeps llm build

Build a Docker image for an appliance.

FlagDescription
--engineRecipe id (required)
--modelModel name / HF id / path
--tagImage tag (default kdeps-llm-<engine>:latest)
--gpucuda | rocm | intel | vulkan (required when recipe resources.gpu: required)
--show-dockerfilePrint Dockerfile + entrypoint; do not build
--pull-at-buildMaterialize models during image build
--api-key-envEnv var name for bearer API key
--require-authFail container start if API key env empty
--no-client-hintSkip printing client-config after build
bash
kdeps llm build --engine ollama --model llama3.2 --tag myorg/llm:1
kdeps llm build --engine vllm --model facebook/opt-125m --gpu cuda --tag myorg/vllm:1
kdeps llm build --engine ollama --model llama3.2 --show-dockerfile

kdeps llm run

Build (optional) and run the appliance with Docker on the local daemon.

FlagDescription
--engineRecipe id (required)
--modelModel name
--tagImage tag
-p / --portHost port (default: recipe api.port)
-d / --detachBackground container
--buildBuild before run (default true)
--gpuGPU profile for build
bash
kdeps llm run --engine ollama --model llama3.2 -p 8000
kdeps llm run --engine ollama --model llama3.2 --tag myorg/llm:1 --build=false

kdeps llm export k8s

Generate Deployment + Service YAML for a pre-built appliance image (not agent export k8s).

FlagDescription
--engineRecipe id (required)
--imageContainer image (required)
--modelModel env on the pod
--nameResource name (default kdeps-llm-<engine>)
--replicasReplicas (default 1)
-o / --outputWrite file (default stdout)
--api-key-secretSecret name with key api-keyLLM_API_KEY
--no-client-hintSkip client-config hint
bash
kdeps llm export k8s --engine ollama --image REG/llm:1 --model llama3.2 -o llm.yaml
kubectl apply -f llm.yaml

kdeps llm export iso

Build (optional) Docker image and assemble LinuxKit config / bootable image.

FlagDescription
--engineRecipe id (required)
--modelModel name
--tagDocker image tag
-o / --outputOutput path for .iso / .qcow2 or YAML when --config-only
--formatiso (default) or qcow2
--archArchitecture
--hostnameHostname
--sizeLinuxKit disk size (e.g. 8192M)
--show-configPrint LinuxKit YAML and exit
--config-onlyWrite LinuxKit YAML only (no linuxkit build)
--skip-buildAssume --tag image already exists
--gpuGPU profile for image build
bash
kdeps llm export iso --engine ollama --model llama3.2 --show-config
kdeps llm export iso --engine ollama --model llama3.2 --config-only -o llm.yml
kdeps llm export iso --engine ollama --model llama3.2 -o llm.iso

See also

Released under the Apache 2.0 License.