PrefixRelay: open-source proxy gives Cursor 97%+ KV cache hits on local models

jjusko20 · reddit · 2026-11-12

Developer jackjusko open-sourced PrefixRelay, an OpenAI-compatible proxy layer for Cursor addressing four pain points of running local/cheap models: it mutates responses to keep prefix caches valid (97%+ hit rate across thousands of requests, vision-safe); presents replica pools of multiple GPU instances as a single model so Cursor can spawn subagents with intelligent prefix-based routing; runs its own context-aware compaction since Cursor hardcodes 200k context for unknown models; and bypasses Cursor's localhost restriction via a bundled Cloudflare tunnel quick start. Repo: github.com/jackjusko/PrefixRelay

Original post →

More from coding & agent

coding & agent channel →