What is KiviDB?
KiviDB is an in-memory key-value server written in Rust that speaks the Redis protocol (RESP2 and RESP3). It sits in the Vector Databases category of the Retrieval & Knowledge (RAG) tools and is open-source, written in Rust and licensed AGPL-3.0. To get started: run the server with Docker.
Overview
KiviDB is an in-memory key-value server written in Rust that speaks the Redis protocol (RESP2 and RESP3). Existing Redis clients, libraries and redis-cli work against it unchanged; the one visible difference is that it listens on port 6380 rather than 6379, so the two can run side by side. It persists to native snapshots and an optional append-only file, and supports replication, a cluster mode with failover, ACLs and, in optional builds, Lua scripting and TLS.
Where Redis and Valkey run commands on one thread, KiviDB shards its keyspace across every core. The project's own October 2026 benchmark on 32 cores of an AWS Graviton3 bare-metal server reports about 21 million pipelined GETs per second for KiviDB 1.1.0, against 9.1 million for Dragonfly 2.0.2 and 2.4 million for Redis 8.10; without pipelining, the same run puts Dragonfly slightly ahead. The README asks readers to treat the figures as one controlled capture and to measure on their own hardware.

For AI applications the relevant part is search. KiviDB implements Redis Stack-style FT.* commands, so one index over hash keys can hold a VECTOR field (FLAT or HNSW) next to TEXT, TAG and NUMERIC fields, and a single FT.SEARCH can run a KNN query alongside BM25 full-text and filters. Snapshots store the index schemas and, after SAVE or BGSAVE, each vector field's HNSW graph, so a restart reloads the graph instead of rebuilding it. The project launched in October 2026 and is licensed AGPL-3.0-only; the README notes that using KiviDB does not place your application under the AGPL.
What it does
- Redis-compatible command surface over RESP2 and RESP3, so existing clients, redis-cli and libraries connect unchanged (supported commands are listed in COMMANDS.md)
- Multi-threaded, sharded design that runs commands on every core, with io_uring on Linux when the kernel allows it and a Tokio fallback

- Redis Stack-style FT.* search: full-text (BM25), tag and numeric fields, and vector ANN with FLAT or HNSW indexes, including hybrid search
- Snapshot (dump.kdb) and append-only-file persistence; snapshots also keep index schemas and HNSW graphs across restarts
- Replication, cluster mode with gossip, failure detection and failover, ACLs, and protected mode on by default
- Ships as release binaries for Linux and macOS, .deb and .rpm packages, multi-arch Docker images, and a Kubernetes operator; Lua and TLS are optional build variants
Getting started
These steps follow the KiviDB README: start the server, confirm a Redis client can reach it, then build a vector index with the FT.* commands.
Run the server with Docker
The image listens on 6380 and its default command turns protected mode off, because a container is never reached over loopback. If you pass your own flags, that default is replaced — set a password.
docker run -d -p 6380:6380 kividb/kividb
# with your own flags, set a password
docker run -p 6380:6380 ghcr.io/kividbio/kividb --requirepass "change-me"Connect with any Redis client
redis-cli works as-is; just point it at port 6380. Linux users can instead install the .deb or .rpm from the release page, which adds a systemd unit and a config at /etc/kividb/kividb.conf.
redis-cli -p 6380 PING # PONGCreate a vector index
Declare an index over hash keys with a prefix and at least one VECTOR field; TEXT, TAG and NUMERIC fields are optional. This one is a 128-dimension HNSW index using cosine distance.
redis-cli -p 6380 FT.CREATE idx ON HASH PREFIX 1 doc: SCHEMA \
vec VECTOR HNSW 10 TYPE FLOAT32 DIM 128 DISTANCE_METRIC COSINE M 16 EF_CONSTRUCTION 128Store vectors and query with KNN
Write each vector into the hash field as raw little-endian FLOAT32 bytes (DIM × 4 bytes), the same convention as Redis Stack and redis-py with numpy, using your client's binary-safe HSET. Then query with Dialect 2, passing the query vector as a named binary parameter.
redis-cli -p 6380 FT.SEARCH idx '*=>[KNN 10 @vec $q]' PARAMS 2 q <blob> DIALECT 2Save the graph after a large ingest
Run SAVE (or schedule BGSAVE) so the next start reloads the HNSW graph from disk instead of rebuilding it from the hashes; while indexes rebuild, most commands answer LOADING.
redis-cli -p 6380 SAVECommands and code are distilled from the project's own documentation — always check the official repo for the latest.
When to use it
- Keep embeddings for a RAG pipeline in the same store as the cache and session data you already keep in Redis, with metadata filters in the same FT.SEARCH
- Replace a single-threaded Redis or Valkey instance with a drop-in, multi-core server without changing client code
- Run Redis Stack-style full-text and vector search under an open-source AGPL licence on your own hardware
How KiviDB compares
KiviDB alongside other open-source vector databases tools AI/TLDR tracks, ranked by GitHub stars.
| Tool | Stars | What it does |
|---|---|---|
| Supabase | ★ 116k | Managed Postgres backend whose Vector toolkit (pgvector) stores, indexes, and queries embeddings next to transactional data. |
| Redis Cloud | ★ 77.8k | Fully-managed Redis with built-in vector search, offering low-latency similarity and hybrid queries over any embeddings. |
| Milvus | ★ 46.8k | A distributed vector database for storing and searching billions of embeddings at scale, with multiple index types and Kubernetes-native deployment. |
| FAISS | ★ 42k | A library from Meta for efficient similarity search and clustering of dense vectors, with both exact and approximate indexes. |
| Qdrant | ★ 35.8k | A Rust-based vector search engine that stores embeddings with rich payload filtering for semantic search and recommendation systems. |
| Chroma | ★ 29.8k | A developer-focused vector database designed for quickly building retrieval and RAG features with a simple Python and JavaScript API. |
| pgvector | ★ 23.9k | A PostgreSQL extension that adds a vector data type and similarity search so you can store and query embeddings inside an existing Postgres database. |
| KiviDB | ★ 1.7k | A multi-threaded Redis and Valkey alternative in Rust, with full-text and vector search built in |
