The Valkey Platform for
AI and Ops
Multi-tier agent caching with built-in observability. Persistent monitoring that survives log rotation. Migration in any direction. One platform, one Valkey instance.
For AI
npm install @betterdb/agent-cache iovalkey
Multi-tier LLM, tool, and session caching. OTel + Prometheus built in.
npm install @betterdb/semantic-cache
Similarity-based response caching with valkey-search.
For Ops
claude mcp add betterdb -- \ npx @betterdb/mcp betterdb-mcp \ --autostart --persist
Adds BetterDB as an MCP server to Claude Code. Starts monitoring automatically.
Then ask Claude about your database health, slow queries, or memory usage.
Why teams choose BetterDB for agent caching
Three cache tiers behind one Valkey connection. No modules required.
| Capability | @betterdb/agent-cache | LangChain RedisCache | LangGraph checkpoint-redis | AutoGen RedisStore | LiteLLM Redis | Upstash + Vercel AI SDK |
|---|---|---|---|---|---|---|
| Multi-tier (LLM + Tool + State) | LLM only | State only | LLM only | LLM only | LLM only | |
| Built-in OTel + Prometheus | Partial | |||||
| No modules required | Redis 8 + modules | Upstash only | ||||
| Framework adapters | LC, LG, AI SDK | LC only | LG only | AutoGen only | LiteLLM only | AI SDK only |
BetterDB for AI
Two caching strategies, one Valkey instance, full observability.
Exact-match caching
LLM responses, tool results, and session state. Framework adapters for LangChain, LangGraph, and Vercel AI SDK. OTel + Prometheus built in.
npm install @betterdb/agent-cache iovalkey
Semantic caching
Similarity-based response caching using valkey-search. Any embedding provider. Hit rate, similarity scores, and latency tracked automatically.
npm install @betterdb/semantic-cache
See what's actually happening inside your Valkey or Redis instance
Historical data that survives a log rotation. Client-level attribution. Automatic anomaly detection.

500 slow queries, 114 unique patterns, 19 command types - across any historical time range. The evidence that used to disappear after a log rotation.
Built for humans and agents alike
Investigate incidents yourself - or point your agent at BetterDB and walk away.
Your agent investigates
Connect BetterDB's MCP server to Claude Code, Cursor, or any MCP-compatible client. Ask questions in plain language. Get back structured diagnostics - slowlog history, anomaly summaries, latency trends, ACL audit - without opening a browser.
{
"mcpServers": {
"betterdb": {
"command": "npx",
"args": ["-y", "@betterdb/mcp"]
}
}
}You investigate
Full dashboard, slowlog pattern analysis, anomaly detection, client attribution, and vector search - everything you need to find what went wrong and why, with data that persists beyond the log rotation.

Everything you need to understand your Valkey or Redis instance
Deep insights into your Valkey or Redis deployment with minimal overhead.
Anomaly Detection
Automatic detection of unusual patterns across memory, CPU, and connections.
Historical Analytics
Query what happened at 3am, not just what's happening now.
Cluster Visualization
Interactive topology graphs, slot heatmaps, and migration tracking.
ACL Audit Trail
Track who accessed what for compliance and debugging.
Slowlog & COMMANDLOG
Pattern analysis across persisted slow queries and full command history. Valkey 8.1+ COMMANDLOG captures every command, not just the slowest ones.
Key Analytics
Analyze key patterns by namespace and key type.
Client Analytics
See which clients consume resources. Detect unusual buffer sizes and connection spikes.
Prometheus & Webhooks
101 Prometheus metrics plus Slack, email, and webhook notifications.
AI Assistant
Ask questions about your Valkey or Redis instance in plain English.
Vector Search
Inspect vector indexes, browse embeddings, and find semantically similar entries with similarity scores.
MCP Server
Access BetterDB's full functionality from any MCP-compatible client - Claude Code, CLI agents, or IDEs.
View on registry →Hot Key Tracking
Top-50 keys by access frequency with rank movement over time. Spot what's climbing before it becomes a bottleneck.
Latency Monitoring
Per-event latency history across P50/P95/P99. Know when your instance started slowing down, not just that it is.
CPU & I/O Threads
Per-thread I/O metrics and CPU utilization charts, including Valkey 8.x I/O thread breakdowns.
Migration
Analyze compatibility, move data, and validate results across Redis, Valkey, cloud, and self-hosted - in any direction.
Throughput Forecasting
Growth rate trend and ceiling-based ops/sec forecasting. Get alerted before you hit capacity, not after.
Our goal: zero hacks for Valkey or Redis
If you've ever written a custom script, stitched together three tools, or just accepted that something wasn't observable - we want to hear about it. Tell us what's missing. We'll build it, and the next person won't have to figure it out themselves.
Book 15 min with KristiyanPrefer email? kristiyan@betterdb.com
Free during early access - every Pro and Enterprise feature is unlocked while we're in beta.
Ready to get started?
Start monitoring in minutes - no infrastructure to maintain. Team collaboration, agent-based monitoring for private databases, and more. Or self-host - open source core, zero lock-in.