BetterDB is an SDK that gives AI agents long-term memory, semantic caching, and typed retrieval running on any Valkey or Redis instance. It provides exact-match and semantic caching for LLM calls with sub-millisecond latency, plus a self-tuning cache that adjusts thresholds and TTLs automatically. BetterDB integrates with frameworks including LangChain, LlamaIndex, OpenAI Agents SDK, and Vercel AI SDK via drop-in adapters. The core library is open source under the MIT License and can be self-hosted or run as a managed cloud service, with no vendor lock-in.
Runs on any Valkey or Redis you own - including fully offline, air-gapped environments. Observable at every layer, no lock-in.
Comments will not be approved to be posted if they are SPAM, abusive, off-topic, use profanity, contain a personal attack, or promote hate of any kind.