For a caching layer for LLM API calls, the strongest matches are berriai/litellm (LiteLLM is a unified LLM API gateway and proxy), helicone/helicone (Helicone is a reverse-proxy AI gateway that intercepts LLM) and zilliztech/gptcache (GPTCache is a semantic caching middleware that reduces repeated). alibaba/higress and fauxpilot/fauxpilot round out the shortlist. Each is ranked by relevance to your query, popularity and recent activity.
Open-source middleware and proxy tools that store language model outputs to reduce API latency and costs.
LiteLLM is a unified gateway and proxy server designed to centralize access to over one hundred language model providers. It provides a standardized API interface that abstracts vendor-specific schemas, allowing developers to interact with diverse models through a single, consistent format. By acting as a central traffic management layer, it enables organizations to route, secure, and govern model interactions across multiple deployments. The platform distinguishes itself through its policy-driven architecture, which uses configuration-based routing to manage traffic distribution, load balanc
LiteLLM is a unified LLM API gateway and proxy that includes prompt caching, cost tracking, and transparent request routing, directly meeting the need to cache responses and reduce repeated API calls while tracking spending.
Helicone is an AI gateway and observability platform designed to intercept, manage, and monitor interactions with large language models. By acting as a reverse-proxy, it provides a centralized layer for routing requests across multiple AI providers, allowing developers to maintain consistent application logic while gaining deep visibility into model performance, usage, and costs. The platform distinguishes itself through a robust suite of traffic management and prompt engineering tools. It enables policy-driven control, including automatic failover between providers, rate limiting, and edge-b
Helicone is a reverse-proxy AI gateway that intercepts LLM API calls and includes response caching (tagged as Execution Result Caches) alongside cost tracking, rate limiting, and transparent proxying—directly covering the caching, cost reduction, and transparent-proxy requirements you asked for.
GPTCache is a semantic caching layer and response optimizer for large language models. It functions as pluggable middleware for orchestration frameworks, utilizing vector database caching to store and retrieve model responses based on the semantic similarity of prompts rather than exact text matches. The system uses embeddings to determine cache hits by comparing the distance between new queries and stored vectors. It employs a hybrid storage model that persists original prompts in relational databases while maintaining high-dimensional embeddings in vector stores. The project covers a broad
GPTCache is a semantic caching middleware that reduces repeated LLM API calls by caching responses based on prompt similarity, which aligns well with your goal of a caching proxy, though cost tracking and explicit TTL configuration are not highlighted.
Higress is an AI API gateway and cloud-native traffic manager that functions as a Kubernetes ingress controller. It provides a centralized system for routing, securing, and optimizing traffic directed toward large language models, AI agents, and microservice architectures. The project distinguishes itself through deep AI orchestration, including the ability to host and manage Model Context Protocol servers that transform REST APIs into tools for AI agents. It features specialized AI infrastructure for model request proxying, protocol translation across multiple providers, and semantic-based c
Higress is an AI API gateway that proxies and caches requests to large language models, directly addressing the need to reduce repeated API calls, though its broader traffic-management features go beyond a dedicated caching proxy.
Fauxpilot is a self-hosted AI coding assistant and local inference server. It functions as a proxy and API gateway that redirects traffic from IDE plugins to a local large language model, allowing for AI-assisted programming without external cloud dependencies. The project provides a specialized API emulation layer that mimics coding assistant protocols and a standardized OpenAI-compatible interface. This enables supported code editors to use local models for completions and suggestions by overriding default proxy URLs. The system includes capabilities for downloading and deploying local mod
Fauxpilot is a proxy that redirects IDE plugins to a local model instead of cloud APIs, not a caching layer for existing LLM responses; it avoids calls entirely rather than caching them to reduce costs.
rwkv-runner is a local inference server for running RWKV models with an OpenAI-compatible API, not a caching proxy that intercepts and caches LLM API responses to reduce repeated calls — it lacks the caching mechanism, TTL, and cost tracking required.
This project is an API proxy that provides free and paid access to ChatGPT models through an OpenAI-compatible endpoint. It acts as a reverse proxy, routing requests to ChatGPT while maintaining full compatibility with OpenAI's SDK interface, allowing any application or tool that supports a custom base URL and API key to connect. The service offers a free tier that provides access to ChatGPT models for chat, image generation, and voice dialogue without requiring an official subscription, along with a paid tier that unlocks over 130 OpenAI models including GPT-4 with lower latency and reduced
This project provides an OpenAI-compatible proxy for accessing ChatGPT models, but it does not emphasize caching responses to reduce repeated API calls, which is the core need you described.
CoAI is an enterprise-grade, self-hostable AI gateway platform that unifies access to over 200 AI models from more than 35 providers through a single OpenAI-compatible API endpoint. It functions as a multi-tenant gateway, routing requests across providers with load balancing, automatic failover, and priority-based routing, while exposing standard OpenAI API endpoints for chat, image generation, model listing, and billing to enable seamless integration with existing tools and clients. The platform distinguishes itself through a comprehensive set of operational capabilities built around the gat
CoAI is an AI gateway that routes requests across multiple LLM providers with load balancing and failover, but it does not emphasize response caching—the core feature for reducing repeated API calls—making it a neighbouring tool rather than a dedicated caching proxy.
gpt4free-ts is a TypeScript-based LLM API proxy and gateway that provides a unified interface for accessing large language models without paid subscriptions or official API keys. It functions as a containerized AI bridge that routes requests to various free third-party providers to retrieve chat completions. The project acts as an OpenAI API wrapper, translating requests and responses into the standard OpenAI chat completions format to ensure compatibility with existing AI tools. It utilizes a provider-based routing system to distribute request loads across available endpoints. The gateway s
This repository is an LLM API proxy that aggregates multiple free providers to bypass paid subscriptions, but it does not emphasize response caching, configurable TTL, or cost tracking, so it is a neighboring tool rather than the dedicated caching proxy you are looking for.
The free AI already on your Mac. CLI tool, OpenAI-compatible server, and interactive chat — all on-device via Apple Intelligence. No API keys, no cloud, no downloads.
This is an on-device local LLM server and chat tool for macOS, not a caching proxy for external LLM API responses — it avoids API calls entirely rather than caching repeated ones.
OkHttp-OkGo is a network request framework that wraps OkHttp to simplify the process of sending and receiving data from web services. It provides a structured system for managing asynchronous data streams and concurrency through integration with RxJava. The project includes dedicated managers for batch file transfers, enabling the simultaneous upload and download of multiple files. The download system supports breakpoint-based management, allowing interrupted transfers to be paused and resumed from the last saved position. Additional capabilities include a custom HTTP cache manager for defin
This is a general-purpose HTTP client framework with caching support, not a dedicated caching proxy designed for LLM APIs—it lacks the transparent proxy layer, LLM-specific integration, and cost tracking features you are looking for.
YTKNetwork is a high-level networking wrapper library for Objective-C and Swift that simplifies request handling and response management. It serves as a networking layer built around AFNetworking to decouple request logic from underlying communications. The project features an HTTP request orchestrator for grouping network calls into batches or sequences to manage data retrieval dependencies. It includes a JSON response validator to verify server responses against expected structural formats, a network request interceptor for executing custom logic during the call lifecycle, and a local cachi
YTKNetwork is a general-purpose iOS networking wrapper with response caching, not a dedicated proxy for caching LLM API responses—lacking LLM-specific integration, transparent proxying, and cost tracking.
| Repository | Stars | Language | License | Last push |
|---|---|---|---|---|
| berriai/litellm | 50.6K | Python | NOASSERTION | |
| helicone/helicone | 5.8K | TypeScript | Apache-2.0 | |
| zilliztech/gptcache | 8.1K | Python | MIT | |
| alibaba/higress | 7.6K | Go | apache-2.0 | |
| fauxpilot/fauxpilot | 14.7K | Python | MIT | |
| josstorer/rwkv-runner | 6.2K | TypeScript | mit | |
| popjane/free_chatgpt_api | 6K | — | mit | |
| coaidev/coai | 9.2K | TypeScript | Apache-2.0 | |
| xiangsx/gpt4free-ts | 7.7K | TypeScript | GPL-3.0 | |
| arthur-ficial/apfel | 5.9K | Swift | MIT |