2026-11-26 15:50 UTC

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

09-23 14:00⭐ origin echo-reconstructedOriginal 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) on github (echo) · attributed from hn.story.50005230
—
10-08 12:51first on hacker news · published · +358.9hShow HN: Gauze fixes (some) open-weight LLM deficiencies
ggeorgovassilis
—
10-08 12:51amplified on hacker news 👑hn.story.50005230
ggeorgovassilis
peak 1 · 1 comments · 34% of case engagement
10-10 15:37amplified on hacker newshn.story.50033976
ggeorgovassilis
peak 1 · 1 comments · 34% of case engagement
10-15 08:00amplified on hacker newshn.story.50100681
ggeorgovassilis
peak 1 · 1 comments · 34% of case engagement
10-08 15:39our radar first saw it · +361.7hdiscovery anchor: hn.story.50005230—

Evidence (4) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnShow HN: Gauze fixes (some) open-weight LLM deficiencies
Retrieved article excerpt

Open 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.
ggeorgovassilis11
🟧 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)——
🟧 hnGauze Corrects LLM Responsesggeorgovassilis11
🟧 hnLLM-gauze fixes LLM errorsggeorgovassilis11

Interpretation history

Decision trace