[UNTESTED] [beyondsighttech/cachellm] 1 endpoint(s)
ChatGPT
API Proxy/ChatGPT
2,133 characters
Status: [UNTESTED]
Endpoints found:
http://localhost:4000/v1/chat/completions
Source: https://github.com/beyondsighttech/cachellm
# CacheLLM
If you're paying OpenAI or Anthropic directly, prompt caching is handled for you and you can stop reading. This is for the rest of us.
The cheap and free OpenAI-compatible providers — the reverse proxies, the aggregators, the community endpoints — almost never implement prompt caching. Meanwhile a coding agent will happily re-send the same 30,000-token system prompt and tool schema forty times in an afternoon, and every one of those is billed at full price or burns another credit off your quota. That's the gap this fills. CacheLLM sits between your agent and whatever provider you're using, keeps a local copy of answers it has already seen, and stops the duplicates from ever leaving your machine.
It runs on your laptop. SQLite file, one Python process, no accounts, nothing phoning home.
```
your agent -> localhost:4000/v1 -> CacheLLM -> whatever provider you use
|
already seen it?
then don't ask again
```
The one thing that matters more than saving credits is not giving you a wrong answer. A cache that occasionally returns the response from someone else's system prompt is worse than no cache at all, so the cache key covers everything that could change the reply — model, every message, system and developer instructions, tool schemas, response format, temperature, top_p, seed, the lot. Same question with a different system prompt is a different key. Always.
## What it actually does
**Remembers exact repeats.** The bread and butter. Identical request, identical answer, served from disk in about 10ms instead of a few seconds. Key ordering and trailing whitespace don't count as different; casing and wording do.
**Merges duplicate calls in flight.** If ten identical requests land at once — which happens constantly with parallel agent workers — one goes to the provider and the other nine wait for it. Without this you pay ten ti