llama.cpp
Start llama-server (or llama server) and run fast-agent local:
fast-agent local (or fast-agent --local) probes LLAMA_ARG_HOST/LLAMA_ARG_PORT,
http://localhost:9931/v1, and http://localhost:8080/v1 in order, selects the active
model, and connects over the OpenResponses /v1/responses API with no config file needed.
Everyday usage
fast-agent local accepts the same flags as fast-agent go:
# One-shot prompt
fast-agent local -m "Summarize this repo"
# Multimodal input (works automatically when llama-server has --mmproj loaded)
fast-agent local --attach screenshot.png -m "What error is shown?"
# Target a specific server URL or router-mode model
fast-agent local --base-url http://localhost:8080 --model Qwen3.6-35B-A3B
On connect, fast-agent reads /props for live context length (n_ctx), loaded
modalities (vision, audio, video), and supported reasoning_effort levels. If the
model matches an entry in fast-agent's model database (for example Inkling-2-Mini,
Qwen3.6-35B-A3B, or Gemma-4), fast-agent applies its harness preferences while
keeping the live server's limits and capabilities authoritative.
In router mode with multiple models, fast-agent picks the single loaded model automatically or opens the interactive picker without autoloading unloaded models while browsing.
Persisted and remote overlays
When you want a saved model name (for --model <name>, config files, or authenticated
remote endpoints), import an overlay:
# Interactive picker (choose "Start now" or write an overlay)
fast-agent model llamacpp
# Non-interactive discovery and import
fast-agent model llamacpp list --json
fast-agent model llamacpp import unsloth/Qwen3.6-35B-A3B-GGUF --name qwen-local
fast-agent go --model qwen-local
For remote or authenticated servers, pass --url with --auth env (--api-key-env) or
--auth secret_ref (--secret-ref):
fast-agent model llamacpp import \
--url https://lab.example \
unsloth/Qwen3.6-35B-A3B-GGUF \
--name qwen-lab \
--auth env \
--api-key-env LLAMA_CPP_TOKEN
Overlays store discovered capability metadata and output limits without freezing the
server's sampling policy. Pass --include-sampling-defaults to persist temperature,
top_k, top_p, and min_p.
See also
- Model Overlays — overlay manifest format and precedence rules.
- Command switches — CLI flags and examples.