cd /news/ai-tools/show-hn-llm-proxy-python-with-sse-st… · home topics ai-tools article
[ARTICLE · art-71812] src=github.com ↗ pub= topic=ai-tools verified=true sentiment=· neutral

Show HN: LLM Proxy - Python with SSE stream aggregation and timeout prevention

Developer lordraw77 released llmproxy, a lightweight Flask server that emulates Ollama, OpenAI, and llama.cpp APIs and forwards every request to NVIDIA's OpenAI-compatible API, enabling any existing tool to use NVIDIA-hosted models without client-side changes. The proxy supports streaming, multi-model discovery, automatic retries, and a live /stats dashboard, and is available under the MIT License on Docker Hub as lordraw/llmproxy.

read2 min views1 publishedJul 24, 2026
Show HN: LLM Proxy - Python with SSE stream aggregation and timeout prevention
Image: source

A lightweight, high-performance LLM proxy for caching, automatic failover, cost tracking, and seamless integration between local and cloud AI providers.

llmproxy is a lightweight Flask server that emulates the HTTP APIs of several popular local LLM runtimes (Ollama, the OpenAI /v1

API, and llama.cpp's llama-server

) and transparently forwards every request to NVIDIA's OpenAI-compatible API (https://integrate.api.nvidia.com/v1

).

This lets any tool that already speaks Ollama, OpenAI, or llama.cpp talk to a NVIDIA-hosted model without any client-side changes — you simply point the client at llmproxy instead of at a real local runtime. It covers chat, completions, and embeddings, supports streaming, multi-model discovery, optional inbound authentication, automatic retries on transient upstream errors, and a live ** /stats** metrics & process dashboard.

The proxy starts, exposes the models, and answers both an OpenAI-compatible

/v1/chat/completions

call and a native Ollama streaming/api/chat

call — every request forwarded to NVIDIA. The recording is scripted in[(source cast:]scripts/demo.sh

[).]assets/demo.cast

flowchart LR
    client["Your client<br/>(Open WebUI, curl, SDK)"]
    proxy["llmproxy<br/>(Flask)"]
    nvidia["NVIDIA API<br/>integrate.api.nvidia.com/v1"]

    client -->|"Ollama / OpenAI / llama.cpp<br/>HTTP request"| proxy
    proxy -->|"OpenAI request"| nvidia
    nvidia -->|"streaming / JSON"| proxy
    proxy -->|"streaming / JSON response"| client
Document Description

InstallationConfigurationLogging & TelemetryAPI ReferenceUsage ExamplesTestingscripts/tests.sh

runner (bash + optional TUI)DeploymentTroubleshooting

cp .env.example .env

docker compose up -d

curl http://localhost:11434/

The prebuilt image is published on Docker Hub as lordraw/llmproxy; see

Deploymentfor building and publishing with the

Makefile

.Released under the MIT License — see the LICENSE file for the full text. In short: free to use, copy, modify, and distribute, with attribution and no warranty.

── more in #ai-tools 4 stories · sorted by recency
── more on @lordraw77 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-llm-proxy-py…] indexed:0 read:2min 2026-07-24 ·