Zum Inhalt springen

The assistant CLI

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

assistant is the command-line companion to the runner. The installer puts a wrapper at $PREFIX/bin/assistant; from a checkout the same thing is python -m assistant. Every command takes --json for machine-readable output, which is what the settings app consumes.

Terminal window
assistant doctor [--json] [--timeout SECONDS]

Checks the system and the runner:

  • deps: which command-line tools and libraries are present (wtype, ydotool, ydotoold, grim, wl-copy, pw-play, systemd --user, input group membership, uinput, webkit2gtk, GTK).
  • plugins: per plugin, the negotiated protocol and abi, unknown_capabilities, missing_requires, and permissions as {name, enforced, advisory}.
  • drift: differences between what the install lockfile recorded and what is running, and any deprecation warnings.

The JSON shape is stable:

{
"ok": true,
"runner": {"protocol": "1.0", "abi": 1, "version": "0.4.0"},
"plugins": [
{"id": "...", "kind": "...", "epoch": 0, "status": "ok",
"negotiated": {"protocol": "1.0", "abi": 1},
"unknown_capabilities": [], "missing_requires": [],
"permissions": [{"name": "microphone", "enforced": true, "advisory": false}],
"deprecations": []}
],
"drift": []
}
Terminal window
assistant recommend [--json]

Looks at your GPUs (via nvidia-smi, falling back to lspci), VRAM and RAM, and suggests a model per tier (speech recognition, decision head and planner, vision) with an estimated footprint and the reason. It never installs anything. The rules are listed in Models.

Terminal window
assistant models list [--json]
assistant models show <name> [--json]
assistant models pull <source> [--tag TAG] [--json]
assistant models rm <name> [--json]
assistant models prune [--json]

<source> is hf:org/repo[:file], an https:// URL, or a file:// path (a bare local path also works). pull streams newline-delimited JSON progress with --json, which the settings app turns into a progress bar. Pulls are resumable and verified by SHA-256; rm removes a manifest and any blob nothing else references; prune collects orphans and unfinished downloads. Ctrl-C stops an in-flight download cleanly.

Store location: $XDG_DATA_HOME/utter-models/, or UTTER_MODELS. It sits beside the install tree and is kept on uninstall.

Terminal window
assistant inference install [--json] # provision the vision + planner stack
assistant inference status [--json] # are the payloads complete?
assistant inference check [--json] [--base-url URL] [--timeout SECONDS]

Provisions and checks the vision (UI-TARS) and planner models, which are multi-file or platform-specific and so are not pulled with assistant models. install creates .venv, installs the platform runtime, downloads the UI-TARS repo, and prepares the platform planner: vLLM

  • a 4-bit AWQ checkpoint on Linux, llama.cpp + the unsloth/Qwen3-4B-Instruct-2507-GGUF Q4_K_M GGUF and a pinned llama-server build on macOS/Windows.

status --json reports {"vision":bool,"planner":bool,"vision_path":str,"planner_path":str,"planner_backend":"vllm"|"llamacpp"}.

check smoke-tests a running planner at http://127.0.0.1:8001/v1 (or --base-url): it probes /v1/models, then asserts one tool call and one json_schema response, and exits non-zero when the endpoint is unhealthy. It never starts a server; on failure it points at the right serve script (scripts/serve_planner.sh on Linux, scripts/serve_planner_llamacpp.sh on macOS/Windows).

Terminal window
assistant status [--json] [--timeout SECONDS]

Connects to the runner socket and prints runner.status: each plugin’s id, kind, epoch and status. Exits 1 with a clear message if the socket is unavailable.

Terminal window
assistant install-state record
assistant install-state show

Reads and writes $XDG_STATE_HOME/utter/install.json, the lockfile the installer uses to make installs reversible and that doctor compares against the running system.

VariableEffect
UTTER_MODELSmodel store location
UTTER_PYTHONinterpreter the assistant wrapper uses
UTTER_REPOrepository root for the settings app and the wrapper
UTTER_DRY_RUNthe utter_py plugin defaults this to on; set 0 to touch the desktop
UTTER_SOUNDS0 disables the UI sounds
UTTER_OSD0 disables the on-screen display
UTTER_PLANNER_BASE_URLplanner endpoint for inference check (default http://127.0.0.1:8001/v1)
UTTER_PLANNER_MODEL_PATHplanner model override: a GGUF file/dir (llama.cpp) or a checkpoint dir (vLLM)
UTTER_PLANNER_PORT / UTTER_PLANNER_SERVED_NAMEplanner port / served name used by the serve scripts and check
UTTER_LLAMACPP_SERVER / UTTER_LLAMACPP_TAGllama-server path / pinned llama.cpp build tag
XDG_RUNTIME_DIRwhere the runner socket, plugin sockets and OSD state live

The utter executable drives desktop actions and manages settings and per-app custom voice commands. The separate python -m assistant command manages models, runner health, recommendations, and install state. See the utter CLI reference for command details, formal JSON Schema, and exit codes.

Terminal window
utter schema --json
utter assistant "open youtube" --dry-run --json
utter dictation "hello" --dry-run --json
utter settings set stt.device --value '"cuda"' --dry-run --json
utter commands set firefox "toggle developer tools" ctrl+shift+i --dry-run --json

JSON uses the stable utter.cli/v1 envelope. The packaged Draft 2020-12 schema is utter/data/cli.schema.json. Assistant --dry-run returns its route plan from an isolated daemon process with a four second limit. Settings and custom command writes require --confirm; preview them with --dry-run. utter --text TEXT remains supported for compatibility.