Open Source Alternatives LogoOpen Source Alternatives
AlternativesBlogAdvertise
Open Source Alternatives LogoOpen Source Alternatives

Stay Updated

Subscribe to our newsletter for the latest news and updates about Alternatives

Open Source Alternatives LogoOpen Source Alternatives

Handpicked Open Source Alternatives to Paid Softwares

Product
  • Categories
  • Tag
  • Advertise
Resources
  • Blog
  • Collection
  • Submit
  • Advertise your tool
Company
  • Privacy Policy
  • Terms of Service
  • Refund Policy
  • Sitemap
Alternatives
  • Claude Code
  • Jira
  • Notion
  • Slack
  • Linear
  • Wispr Flow
  • All alternatives
Copyright © 2026 All Rights Reserved.
Home/Categories/AI & Machine Learning/LMCache
LMCache icon

LMCache

Open source alternative to Amazon SageMaker

Optimize LLM inference with a self-hosted KV cache layer that reuses context across vLLM deployments.

11.9K starsPythonApache-2.0Active this week
Visit websiteGitHub repo
LMCache deployment modes diagram
Contents
  1. 01Who LMCache is for
  2. 02The problem it solves
  3. 03How it solves it
  4. 04Strengths and trade-offs
  5. 05LMCache vs alternatives
  6. 06Quick start
  7. 07Tech stack
  8. 08FAQ
  9. 09Similar open-source tools
TL;DR

LMCache is an open-source KDN that accelerates LLM applications by caching key-value pairs. It improves response times and reduces costs significantly. Ideal for AI chatbots and document processing tools.Apache-2.0 · Python · 11.9K stars · Active this week

who it's for

Who LMCache is for#

Customer Support

Ideal for businesses looking to enhance AI-driven customer service applications.

Skip if:

If you do not require real-time interactions.

Document Processing

Streamline processing of large volumes of documents with fast retrieval capabilities.

Skip if:

If your application does not involve document handling.

the problem

The problem it solves#

LMCache addresses the slow response times and high costs associated with traditional LLM applications by implementing efficient caching mechanisms.

how LMCache solves it

How it solves it#

Prompt Caching

Enable fast, uninterrupted interactions with AI chatbots by caching long conversational histories.

Fast RAG

Enhance the speed and accuracy of RAG queries by dynamically combining stored KV caches.

Scalability

Effortlessly scales without complex GPU request routing.

Cost Efficiency

Reduces the cost of storing and delivering KV caches through novel compression techniques.

Cross-Platform Integration

Seamlessly integrates with popular LLM serving engines like vLLM and TGI.

strengths · trade-offs

Strengths and trade-offs#

Strengths

  • SpeedMinimizes latency with unique streaming and decompression methods.
  • QualityEnhances the quality of LLM inferences through offline content upgrades.

Trade-offs

  • -Complexity in SetupInitial setup may require technical expertise to integrate with existing systems.
versus alternatives

LMCache vs alternatives#

LMCache vs OpenAI Prompt Caching

LMCache and OpenAI Prompt Caching both reduce repeated LLM prefill work, but they serve different deployment models. LMCache is for teams running their own inference stack; OpenAI Prompt Caching is a managed API feature for teams already using OpenAI models.

FeatureLMCacheOpenAI Prompt Caching
LicenseApache-2.0Proprietary API feature
Self-hostingYes, runs with open inference stacks such as vLLMNo, handled inside OpenAI API infrastructure
Cache scopePersistent and tiered KV cache reuse across requests, sessions, engines, and storage backendsAutomatic prompt-prefix caching for eligible API requests
OperationsExposes KV cache observability, storage backends, and deployment controlsNo infrastructure to manage, but no control over cache placement

Choose LMCache when you operate self-hosted inference and need control over KV cache reuse, storage placement, observability, or multi-engine deployments. It is strongest for long-context agents, RAG, and repeated workloads where cache reuse can cut time to first token and improve throughput across your own serving fleet.

Choose OpenAI Prompt Caching when you want caching without owning inference infrastructure. It can reduce latency and input token cost automatically for repeated prompts, but it keeps the optimization inside OpenAI's managed API rather than your own deployment.

install · quick start

Quick start#

bash
Set up LMCache in the Python environment that runs your self-hosted inference stack.

```bash
pip install lmcache
lmcache --help
```
tech stack · detected from GitHub

What it's built on#

Languages
C++GoPythonRust
Frameworks
PyTorch
frequently asked

FAQ#

What is LMCache?

LMCache is an open-source Knowledge Delivery Network that accelerates LLM applications.

How does LMCache improve response times?

By caching key-value pairs, LMCache enables faster retrieval of information.

Is LMCache easy to integrate?

Yes, LMCache integrates seamlessly with popular LLM serving engines.

also worth a look

Similar open-source tools#

accelerate

accelerate

Distribute PyTorch training to multi-GPU and TPU with four lines

9.9KPythonApache-2.0
marin

marin

Open lab for training foundation models together

3.7KPythonApache-2.0
ODS

ODS

Turn any computer into a private AI server

6.5KPythonApache-2.0
transformers

transformers

Model-definition framework for state-of-the-art ML

166.3KPythonApache-2.0
Ploomber

Ploomber

Build reproducible Python data pipelines with DAG orchestration

3.6KPythonApache-2.0
Moxin-LLM

Moxin-LLM

Full transparency LLM: open weights, training code, and data

525PythonApache-2.0

Repository

Stars
11.9K
Forks
1.9K
License
Apache-2.0
Latest
v0.5.5
Last commit
today
Last verified
Sep 20, 2026
Repo
LMCache/LMCache ↗

Additional details

Language
Python
Open issues
769
Contributors
319
First release
2024

Categories

AI & Machine LearningDeveloper ToolsLLMOps & AI ToolingCloud & Hosting

Tags

LLMKnowledge ManagementDeveloper ToolsAI AgentsChatbots