Skip to content

llm command ​

Manage the local LLM harness.

bash
fobis llm <subcommand> [options]

How to use it, with examples: Models, knowledge and agents.

All options ​

fobis llm ask ​

Ask the configured model a question (smoke test, scripting); the answer streams to standard output.

Arguments: PROMPT

OptionValueDefaultDescription
--schemaTEXTJSON Schema file: the answer is constrained to it.
--systemTEXTSystem prompt.
--providerTEXTmanaged, ollama or openai.
--model, -mTEXTModel (alias or spec for managed).

fobis llm doctor ​

Check the local LLM setup: platform, runtime, model, and (managed) a timed sample answer.

OptionValueDefaultDescription
--sample, --no-sampleStart the model and time a short answer.

fobis llm list ​

List the models in the store.

OptionValueDefaultDescription
--jsonMachine-readable output.

fobis llm pull ​

Download a model into the store (resumable; verified against the Hub's sha256).

Arguments: MODEL

No options.

List curated models (alias, size, licence): nothing is downloaded.

No options.

fobis llm rm ​

Remove a model from the store.

Arguments: MODEL

No options.

fobis llm runtime ​

Install, list and remove the llama.cpp runtime (llama-server).

fobis llm runtime install ​

Download, verify and install llama-server (the pinned build by default).

OptionValueDefaultDescription
--variantTEXTautoauto, cpu, metal, cuda12, cuda13, vulkan, rocm or sycl.
--buildTEXTA llama.cpp build tag other than the pinned one.
--sha256TEXTExpected sha256 of a non-pinned build.
--trustAccept a non-pinned build without a known sha256.

fobis llm runtime list ​

List the installed llama.cpp builds.

No options.

fobis llm runtime remove ​

Remove an installed llama.cpp build.

Arguments: NAME

No options.

fobis llm serve ​

Keep a llama-server running between commands (start, stop, status).

fobis llm serve start ​

Start a persistent llama-server; later commands with the same model use it instead of starting their own.

OptionValueDefaultDescription
--model, -mTEXTModel to serve (default: the configured one).

fobis llm serve status ​

Show the persistent llama-server, if one is running.

OptionValueDefaultDescription
--jsonMachine-readable output (without the API key).

fobis llm serve stop ​

Stop the persistent llama-server.

No options.