llama-proxy-cache
Llama Proxy Cache is an intelligent middleman that sits between your chat/IDE client and one or more llama.cpp (llama-server) backends.
What It Does
OpenAI API Compatibility: It speaks the /v1/chat/completions API so your apps, agents, or frontends (like Open WebUI or custom scripts) can connect to it transparently.
KV-Cache & Slot Management: It tracks and manages llama.cpp's slot Key-Value (KV) caches. When handling long, repeating, or similar system prompts (30k–60k+ tokens), it avoids paying the full re-prefill cost on every single turn.
Prefix-Similarity Routing & Lookup: It inspects incoming prompts, checks for common prefixes (Longest Common Prefix / LCP lookups or hash matching), and coordinates slot locking, saving, and restoring (often interacting with llama.cpp's built-in slot/state APIs or disk-based cache mechanisms).
Multi-Backend Coordination: If you run multiple llama.cpp instances, a proxy helps prevent sessions from losing their cached context when bouncing between different server nodes.
No comments or reviews, maybe you want to be first?