Gufo
View on GitHub
Pages
Home / Documentation / v0.37.0

Command line

The gufo command serves models over HTTP, runs them in the terminal, and measures and checks your setup. This page covers the commands and the options you’ll reach for most; gufo <command> --help lists every option.

Commands

CommandWhat it does
gufo serveStarts the OpenAI-compatible server for one model.
gufo chatHolds a conversation with a text model in the terminal.
gufo promptAnswers one prompt and exits; reads standard input when piped.
gufo transcribeTranscribes an audio file, or live audio with --live.
gufo speakSynthesizes speech, or answers in speech with models that support it.
gufo videoGenerates a video with MiniMax H3.
gufo decideAnswers decision requests from a file or standard input.
gufo benchMeasures prefill and decode speed of a model.
gufo evalGrades a running server on a fixed set of questions.
gufo diagnoseChecks drivers, permissions and memory; see troubleshooting.
gufo extensionBuilds and manages extension modules.
gufo modelDownloads and manages the model weights extensions offer.

Every command accepts --help and --version. Unknown options and invalid combinations are errors, never silently ignored.

Serving

gufo serve [server options] <modality> [model options]
ModalityServesEndpoints
llm (default)Text models/v1/chat/completions, /v1/responses, /v1/completions
embeddingEmbedding models/v1/embeddings
asrSpeech recognition/v1/audio/transcriptions
ttsSpeech synthesis/v1/audio/speech
imageImage generation and editing/v1/images/generations, /v1/images/edits
videoVideo generation/v1/videos
decisionDecision models/v1/systemone

One process serves one model. To offer several models under one URL, put them behind llama-swap.

These server options work with every modality:

OptionDefaultUse
--host, -i127.0.0.1Address to listen on. Use 0.0.0.0 inside a container, or :: for IPv6 and IPv4.
--port, -p8080Port to listen on.
--max-connections16HTTP connections serving a request; more are refused. Idle kept-alive connections are closed to admit new ones.
--max-request-bytes8 MiBLargest request body. Raise it for audio and image uploads.
--log-levelinfoerror, warn, info or debug; -v means debug.
--served-model-nameper modelThe model ID clients send. Repeat it to accept aliases.

Warning: Anyone who can reach the port can use the model. Read exposure before listening on anything but localhost.

Text models

serve llm, chat and prompt share these options.

Model and memory

  • --model, -m: the GGUF file. For sharded files, pass the first shard. An extension’s provider can also accept a model directory.
  • --context, -c: tokens per request. The default is the model’s native context; lower it to fit more sessions in memory.
  • --sessions, -j (server only): requests that compute at the same time, 1 by default. Each session reserves memory for a full context. With Qwen3.8 Flash-Next and Qwen3.8 27B on Linux, more sessions than fit at full context share the memory of those that do: a request runs when its prompt and the first 8,192 generated tokens fit, and waits otherwise. /props reports the longest prompt as max_prompt_tokens.

Sampling

Each value is a default; requests can override it.

OptionEffect
--temperatureRandomness. 0 is greedy: always the most likely token.
--top-p, --top-k, --min-pKeep only likely tokens: by probability mass, by count, or relative to the best token.
--min-keepKeep at least this many tokens after those filters.
--seedRepeatable sampling.
--repeat-penalty, --repeat-last-nDiscourage tokens from the last N, to stop loops.
--frequency-penalty, --presence-penaltyDiscourage tokens by how often, or whether, they were used.
--max-tokens, -nMost tokens to generate. The server’s default is until the model stops or the context is full.

Reasoning

  • --think on|off|auto: whether the model thinks before answering. auto uses the model’s default.
  • --reasoning-effort: auto, minimal, low, medium, high, xhigh or max. Effort is an instruction to the model, not a token limit.
  • --reasoning-budget N (server only): stop thinking after N tokens.
  • --preserve-thinking on|off|auto: keep earlier turns’ reasoning in the conversation, at the cost of context.

Speculative decoding

A smaller draft proposes tokens and the model checks them in one pass. Greedy output is identical to decoding without a draft; sampled output follows the same distribution.

  • --speculative: off, or the mode a model offers: dflash2 (Qwen3.8 27B), mtp (Qwen3.8 Flash-Next), dspark (DeepSeek V4 Flash, Inkling 2 Mini).
  • --dflash-model, --mtp-model, --dspark-model: the draft file.
  • --draft-tokens, --min-draft-tokens, --draft-policy: deprecated and ignored; they will be removed. Each model sets how many tokens it proposes.

Server scheduling and limits

OptionDefaultUse
--prefill-chunkignoredDeprecated and ignored; it will be removed. A prompt beside decoding requests is split by layers, so they keep decoding.
--max-pending16Requests waiting for a session. 0 turns the queue off: when every session is busy, a request gets 429 at once, so a router can fail over.
--max-pending-per-client--max-pendingWaiting requests per client IP. At most --max-pending; 0 lets a client run only on a free session.
--request-timeout-msoffCancel a request after this long, waiting included.
--stall-timeout-msoffExit as device_lost when generation stops progressing, so a supervisor restarts the server. At least 60000.
--max-output-bytes1 MiBLargest response.

Cache

--cache-ram-bytes and --cache-disk DIR control how much finished work is kept for later requests; the cache page explains both.

Diagnostics

--trace FILE (server only) writes every request, the prompt as the model saw it and every reply to a JSON Lines file. Use it to find out why a client got broken output, then delete the file: it holds whole conversations.

Other modalities

  • Embeddings: gufo serve embedding --model DIR; see EmbeddingGemma 2.
  • Speech: gufo serve asr and gufo serve tts load one checkpoint each; see Qwen3-ASR and Qwen3-TTS. gufo transcribe and gufo speak run the same models without a server. Models with an audio projector accept --mmproj.
  • Images: gufo serve image --model DIR; see Qwen-Image-2.1. Register LoRA adapters with --lora NAME=PATH; requests select them by name (LoRA adapters).
  • Video: gufo serve video and gufo video; see MiniMax H3.
  • Decisions: gufo serve decision --model PATH answers at POST /v1/systemone, and gufo decide --model PATH --request request.json (or --jsonl on standard input) answers without HTTP. --context limits the whole prompt, 8192 tokens by default. The model defines the request and response shapes.

Measuring

gufo bench loads a model and reports prefill and decode speed, as llama.cpp’s llama-bench does:

gufo bench --model "$MODEL" --n-prompt 2048 --n-gen 128

gufo eval sends a pinned set of questions to a running server and grades the answers, to check that a setup gives correct results as well as fast ones.

Synced from docs/cli.md at v0.37.0, 2026-11-25.