Open-source gateway aims to make local LLM failures recoverable
state: seedheat: lowuncertainty: mediumrelevance: mediumagent-harnesses local-inference model-gatewayggeorgovassilis
What is this?
llm-gauze is an open-source, OpenAI-compatible HTTP gateway by ggeorgovassilis that sits between clients and local LLMs. Its repository describes logging exchanges and attempting to detect or remediate issues such as transient errors, empty or malformed replies, loops, context overflows and malformed tool calls; it includes Docker deployment and metrics. The project and its claimed fixes are documented by its author, but the supplied sources do not independently establish how reliably they work across models or workloads.
Why it matters
A practical reliability layer for people running local or open-weight models in agent workflows: it could turn some brittle model interactions into recoverable ones without changing the client. But the evidence is mainly the author’s project documentation and account; it does not establish broad effectiveness or show that this replaces better model, inference-server, or harness choices.
Current assessment
llm-gauze is an OpenAI-compatible HTTP proxy for local LLMs, with Docker deployment, exchange logging, health checks, and metrics. Its author says it detects problems including transient failures, empty or malformed replies, loops, context overflows, and bad tool calls, then attempts retries or other repairs. A newer web result for release v0.11 indicates continued development, including an empty-stop remediation rung and related configuration and metrics changes. The linked issue describes detecting one specific kind of empty stop and re-prompting; it also says the underlying reasoning is not exposed to the gateway. This is a useful, concrete response to reliability problems in local-model agent setups, but repair can only address detectable cases and may alter or retry a response. The supplied material contains no independent benchmark or systematic evidence of success across models; the HN account of an overnight workflow completing is an anecdote from the author, not independent validation. Potential adopters should assess logging and data-handling implications and test failure detection, recovery behavior, and added latency on their own workloads.
Measured heat
now 0 pts/hpeak 0 pts/hcomments 0/hpeers p10momentum: steady2 platformsage 1537h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion
How the heat travelled
Evidence (4) — ⭐ canonical anchor
| source | object | author | score | comments |
| 🟧 hn | Show HN: Gauze fixes (some) open-weight LLM deficienciesRetrieved article excerptOpen article · Retrieved 2026-10-08T17:49:33.819540+00:00 # llm-gauze
[CI](https://github.com/ggeorgovassilis/llm-gauze/actions/workflows/ci.yml)
llm-gauze is an HTTP gateway that sits in front of a local LLM (served via an
OpenAI-compatible API) and works around its shortcomings: transient errors
without retries, silently hung or looping models, empty or sloppy responses,
context-window overflows, runaway reasoning, and malformed tool calls. It
logs every exchange and remediates what it can before the client ever sees
it.
## Quick start
llm-gauze ships as a published container image and runs with Docker Compose.
1. Create your configuration:
```
cp .env.example .env
```
2. Point `LLM_BASE_URL` in `.env` at your local LLM's OpenAI-compatible
endpoint (default `http://host.docker.internal:14434`, which reaches a
host-side LLM on port 14434 from inside the container).
3. Start the gateway:
```
docker compose up
```
This runs the published image `ghcr.io/ggeorgovassilis/llm-gauze:latest`
(defined in `docker-compose.yml`). To pin a specific release, override the
tag — for example `ghcr.io/ggeorgovassilis/llm-gauze:7`.
The gateway listens on `http://localhost:9317` and exposes an
OpenAI-compatible API (e.g. `POST /v1/chat/completions`), forwarding to the
`LLM_BASE_URL` in `.env`.
### File ownership
The container runs as your host user (`UID`/`GID`, default `1000`) so the
files it writes to the bind-mounted `data/` directory are owned by you, not
root. If a `data/` directory was created earlier as root, fix ownership once
before the non-root container can write to it:
```
sudo chown -R "$(id -u):$(id -g)" data
```
## Health check
```
curl http://localhost:9317/health
```
Returns `{"status": "ok", "upstream": "<LLM_BASE_URL>"}` when the gateway is up.
Operational metrics are exposed at `/metrics` (Prometheus text format, or JSON
with `Accept: application/json`).
## Configuration
Every setting is documented in [`docs/configuration.md`](https://github.com/ggeorgovassilis/llm-gauze/blob/main/docs/configuration.md).
## How it works
llm-gauze sits between your client and the local LLM, recording every exchange:
```
flowchart LR
Client[Your client] -->|OpenAI-compatible API| Gauze[llm-gauze]
Gauze -->|forwards| LLM[Local LLM]
Gauze -.->|logs every exchange| Store[(data/*.jsonl)]
```
Loading
When the model misbehaves, llm-gauze detects it and remediates what it can before
you ever see it — retrying transient failures, nudging empty replies, cleaning
leaked thinking tags, breaking loops with varied sampling:
```
sequenceDiagram
participant C as Client
participant B as llm-gauze
participant L as Local LLM
C->>B: POST /v1/chat/completions
B->>L: forward
L-->>B: error, hang, loop, or sloppy reply
B->>B: detect & classify
B->>L: remediate (retry / nudge / repair)
L-->>B: clean completion
B-->>C: chat.completion
```
Loading
See [`docs/architecture.md`](https://github.com/ggeorgovassilis/llm-gauze/blob/main/docs/architecture.md) for the full design and
[`docs/configuration.md`](https://github.com/ggeorgovassilis/llm-gauze/blob/main/docs/configuration.md) for every setting.
## Developing
See [`DEVELOPING.md`](https://github.com/ggeorgovassilis/llm-gauze/blob/main/DEVELOPING.md) for local development, running the tests,
and adding a detector or remediation. | ggeorgovassilis | 1 | 1 |
| 🟧 echo.github ⭐ | Original project repo, authored and announced by the same person who posted to HN. README: "llm-gauze is an HTTP gateway that sits in front | ggeorgovassilis (George Georgovassilis) | — | — |
| 🟧 hn | Gauze Corrects LLM Responses | ggeorgovassilis | 1 | 1 |
| 🟧 hn | LLM-gauze fixes LLM errors | ggeorgovassilis | 1 | 1 |
Interpretation history
2026-10-24T17:21:57Z
audience grounding: medium — A practical reliability layer for people running local or open-weight models in agent workflows: it could turn some brittle model interactions into recoverable ones without changing the client. But the evidence is mainly the author’s project documentation and account; it does not establish broad effectiveness or show that this replaces better model, inference-server, or harness choices.
Decision trace
- 11-06 06:24review_dormant28 days without material information; scheduled checks stopped
- 10-29 08:32drop_targetsquiet through full ladder or over cap 8
- 10-25 04:21groundA practical reliability layer for people running local or open-weight models in agent workflows: it could turn some brittle model interactions into recoverable ones without changing the client. But th
- 10-15 20:43repriceNew evidence (hn.story.50100681) is a third self-post by the same author adding anecdotal commentary about openrouter usage; still zero independent adoption signals, forks, stars, or third-party revie
- 10-15 20:32attention_routeThe editor compared this story and chose to keep watching.
- 10-15 20:27attention_candidateattach
- 10-15 20:27attachshared external link with case evidence
- 10-15 20:21propose_attachshared external link with case evidence
- 10-11 07:11repriceCase remains a single-author artifact (ggeorgovassilis) with anecdotal production use in agentic workflows but no independent adoption signals; the newly attached hn.story.50033976 is a duplicate self
- 10-11 05:54attention_routeThe editor compared this story and chose to keep watching.
- 10-11 05:47attention_candidateattach
- 10-11 05:47attachshared external link with case evidence
- 10-11 05:37propose_attachshared external link with case evidence
- 10-09 07:59attention_routeThe editor compared this story and chose to keep watching.
- 10-09 07:54attention_candidatecreate
- 10-09 07:54promote_anchororigin walk conf 0.95
- 10-09 05:50groundggeorgovassilis's llm-gauze independently arrives at the gateway-layer remediation pattern Scott's architecture prescribes (architectural-containment, router-as-kernel) and his own stack par
- 10-09 05:36createConcrete gateway artifact targeting a real pain point in local model serving for agents; adoption depends on builder uptake.