llm-sidecar
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| OLLAMA_HOST | No | Local inference endpoint. | http://localhost:11434 |
| SEARXNG_URL | No | Where to find SearXNG. | http://localhost:8888 |
| LLM_SIDECAR_HOST | No | Daemon bind host. | 127.0.0.1 |
| LLM_SIDECAR_PORT | No | Daemon bind port. | 4001 |
| LLM_SIDECAR_NO_UI | No | Set to disable the dashboard UI. | |
| LLM_SIDECAR_TOKEN | No | Require Authorization: Bearer token for API access. | |
| LLM_SIDECAR_BUDGET | No | Budget level: free, cheap, best. | free |
| OPENROUTER_API_KEY | No | API key for OpenRouter. Unset means local-only. | |
| LLM_SIDECAR_NO_CACHE | No | Set to disable caching. | |
| LLM_SIDECAR_NO_LEDGER | No | Set to disable the usage ledger. | |
| LLM_SIDECAR_MODEL_FAST | No | Lock the fast tier to a specific model. | |
| LLM_SIDECAR_MODEL_BALANCED | No | Lock the balanced tier to a specific model. | |
| LLM_SIDECAR_MODEL_POWERFUL | No | Lock the powerful tier to a specific model. | |
| LLM_SIDECAR_SEARCH_PROVIDER | No | Search provider: auto, ddg, searxng. | auto |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Local capability sidecar. Use answer_question for anything whose answer could have changed since training — it searches, reads the pages and answers with citations. Use search_web and read_url to gather evidence yourself, verify_claims to fact-check statements against it, and delegate to hand bulk work to a cheap or local model.
This server reports its version at connection. If that differs from the version you integrated against, call whats_new(since="") before relying on remembered assumptions about image profiles, defaults, parameter meanings or output paths — those are what change between releases. Its action_required field is empty when upgrading is all that is needed.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| search_webA | Search the web. Uses a local SearXNG instance when one is running, otherwise DuckDuckGo. No API key required either way. Args: query: What to search for. max_results: How many results to return (default 5). news: Bias toward recent news rather than general pages. Returns {"results": [{title, url, snippet, published}]}. Snippets are short — use read_url on a result to get the full text. |
| answer_questionA | Answer a question from live web sources, with citations. Searches, reads the top pages in full, and answers from those pages only — so the answer reflects the web now rather than training data. Use this instead of answering from memory whenever the answer could have changed: prices, populations, versions, who currently holds a position, what happened recently. Args: question: The question, in full. query: Optional search query, when the question phrases badly. max_sources: How many results to consider (default 4). via: "local" searches with DuckDuckGo/SearXNG and reads the pages — free, but degrades when those are rate-limited. "openrouter" has OpenRouter retrieve and answer in one call: better sources and no CAPTCHAs, but it is BILLED per result and needs an API key. Only choose it when local retrieval has already returned something useless. Returns {"answered", "answer", "sources", "caveat"}. Check "answered": false means the sources did not settle it and "answer" says what was missing — do not present that as a fact. |
| read_urlA | Fetch a web page and return its readable text. Use this after search_web when a snippet isn't enough to answer properly. Extraction is plain-text and keeps some navigation boilerplate. Args: url: The page to fetch. max_chars: Truncation limit (default 20000). |
| verify_claimsA | Fact-check claims against fresh web evidence, with citations. Each claim gets its own targeted search; a verification model then grades every claim strictly against the evidence found — it is not allowed to mark a claim "supported" from its own knowledge. Claims are graded exactly as stated, so a line asserting "X is a myth" is supported when evidence debunks X. Args: claims: Self-contained factual statements (max 40). Resolve pronouns first — "it was founded in 1998" cannot be checked alone. model: Optional verification model override, e.g. "ollama/qwen2.5:32b" to keep the whole check on-device. Returns {"results": [{claim, verdict, note, sources}]} where verdict is "supported" | "contradicted" | "unverified" | "not_a_claim". |
| extract_claimsA | Pull the checkable factual claims out of a block of prose, as self-contained sentences with pronouns resolved. Pair with verify_claims to fact-check an article or a draft. |
| delegateA | Hand a bounded task to a cheaper or local model instead of doing it yourself. Good for bulk summarising, log triage, reformatting, and classification over long text. Args: prompt: The full task, self-contained. tier: "fast" | "balanced" | "powerful" (default "fast"). budget: "free" | "cheap" | "best" — overrides the configured default. Returns {"text", "model", "cost_usd", "local"}. The model is chosen and verified at call time; you don't need to name one. |
| summariseA | Condense text using a cheap or local model, so long documents don't have to pass through your own context. Args: text: The text to summarise. style: "brief" (2-3 sentences), "bullets", "detailed", or "tldr". focus: Optional — narrow the summary to one aspect, e.g. "security implications" or "what changed". |
| classifyA | Sort items into labels you provide. Useful for triaging logs, tickets, or search results in bulk. Labels are enforced: anything the model invents is discarded and the item comes back as "unknown" rather than silently mislabelled. Args: items: The things to classify. labels: The allowed labels (at least two). multi: Allow more than one label per item. |
| extract_fieldsA | Pull named fields out of unstructured text into a JSON object. Args: text: The source text. fields: Map of field name -> description of what it is, e.g. {"invoice_total": "the total amount including tax", "due_date": "the payment due date in ISO format"}. Fields not present in the text come back as null rather than a guess. |
| fact_check_documentA | Extract every factual claim from a document and verify each against live web evidence. Combines extract_claims and verify_claims in one pass. Use on drafts, articles, or AI-generated text before publishing. |
| usage_reportB | What this sidecar has spent and on which models, over the last N days. Counts cached responses separately since those cost nothing. |
| sidecar_statusB | What this sidecar can currently do: whether a cloud key is present, the active search provider, this machine's memory and which local models actually fit in it, resolved tiers, cache size, and 30-day spend. |
| list_image_profilesA | The image profiles available, with licence, memory peak and reference limit for each. Call this before generate_image if you are unsure which to use. Profiles
are named for intent (standard, characters-consistent, zimage-negprompt,
upscale, ...) rather than for a model, so you never need to know a model
id. |
| generate_imageA | Generate an image locally and write it to out_dir, with a manifest recording exactly how it was made. Takes 20s to several minutes depending on profile. Generation is serialised across this whole machine, so a second call waits rather than competing for memory. The file is written as _.png; pass
|
| edit_with_referencesA | Generate an image that keeps the same character or object as the reference images — the same face, clothes and colours rather than a fresh interpretation of a description.
|
| upscale_imageA | Upscale an existing image with SeedVR2.
|
| whats_newA | What changed in this sidecar, and whether you need to do anything. Call this when the version you integrated against differs from the one reported at connection, or at the start of a session if you cache assumptions about profiles, defaults, parameters or where files land.
The field that matters is |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| changelog_resource | The full changelog, for clients that prefer resources to tools. |
TDQS
Scored across 17 tools
Most tools target clearly distinct operations (generate_image vs edit_with_references vs upscale_image, classify vs extract_fields vs summarise). The main soft overlaps are deliberate composites: fact_check_document bundles extract_claims + verify_claims, and answer_question composes search_web + read_url, but each description explains when to use the composite versus the parts. A couple of pairs (delegate vs summarise, delegate vs classify) require reading descriptions to pick correctly.
Nearly everything follows a snake_case verb_noun pattern (generate_image, verify_claims, extract_fields, search_web, answer_question). Minor deviations are the noun-phrase status tools (sidecar_status, usage_report) and the informal whats_new, plus British spelling in summarise. The set stays predictable and readable overall.
17 tools is on the upper edge but justified because the server spans three real capability clusters: local image generation, web research/fact-checking, and model delegation utilities. No tool looks redundant or like filler; each cluster is small and cohesive.
Coverage is strong: profile discovery, generation, reference-based consistency editing, upscaling, full research-to-answer and claim-verification pipelines, plus text utilities and introspection. Gaps are minor — no way to list or clean up previously generated images/cache, no explicit cancel or job-status for long serialized generations, and no configuration-mutation tool despite status reporting config.