kividb README

The project's README from github.com/kividbio/kividb. As one markdown file: README.md.

KiviDB: the in-memory database for AI and real-time apps. Redis-compatible, vector search built in.

English · 简体中文

CI Latest release Docker pulls Artifact Hub License: AGPL-3.0 Discussions Discord

kividbio%2Fkividb | Trendshift Hacker News

KiviDB is a fast, multi-threaded alternative to Redis® and Valkey, written in Rust. It speaks the Redis protocol (RESP2 and RESP3), so existing Redis clients, redis-cli and libraries work unchanged, and it has full-text and vector search built in. It runs every core on a sharded in-memory key-value design, and persists to snapshots and an optional append-only file.

On 32 cores of AWS bare metal, KiviDB 1.2.0 serves 21.2 million pipelined GETs per second: 9× Redis 8.10 and 2.3× Dragonfly, ahead of Garnet, at 0.36 ms p99 (benchmarks).

Install

Debian and Ubuntu (apt)

sudo apt update && sudo apt install -y ca-certificates curl
sudo install -d -m 0755 /etc/apt/keyrings
curl -fsSL https://packages.kividb.io/kividb.gpg | sudo tee /etc/apt/keyrings/kividb.gpg > /dev/null
echo "deb [signed-by=/etc/apt/keyrings/kividb.gpg] https://packages.kividb.io/deb stable main" \
  | sudo tee /etc/apt/sources.list.d/kividb.list > /dev/null
sudo apt update && sudo apt install -y kividb

Fedora, RHEL and compatibles, Amazon Linux 2023 (dnf)

sudo curl -fsSL -o /etc/yum.repos.d/kividb.repo https://packages.kividb.io/kividb.repo
sudo dnf install -y kividb

macOS, Cargo and Docker

brew install kividbio/tap/kividb                  # macOS (Homebrew)
cargo install --locked kividb                     # Linux and macOS, from crates.io
docker run -d -p 6380:6380 -v kividb-data:/home/kividb kividb/kividb:v1.2.2

Docker images are on Docker Hub and the GitHub Container Registry (ghcr.io/kividbio/kividb), tagged v1.2.2, 1.2 and latest; they are distroless (no shell). The data lives in /home/kividb: without a volume there, it is lost when the container is removed or recreated.

The apt and dnf repositories are signed with the key 6492 17DE 0F7F D7DB 3D7B AC3A E21D 8F6E DDE5 F489; check it before you install. docs/INSTALL.md has how to check it, what the packages install, upgrades and pinning, the Lua and TLS variants, the release tarballs and .deb/.rpm files on GitHub Releases, and how to verify a download. To build it yourself, see docs/BUILDING.md.

Quick start

The apt and dnf packages start KiviDB as a systemd service, on 127.0.0.1:6380. Otherwise, start it yourself:

kividb                                   # listens on 0.0.0.0:6380
redis-cli -p 6380 PING                   # PONG
redis-cli -p 6380 SET greeting hello     # OK
redis-cli -p 6380 GET greeting           # "hello"

KiviDB listens on 6380, not Redis's 6379, so the two can run side by side; point your client at that port, or pass --port 6379. Protected mode is on by default: until you set a password or a bind address, only clients on the same machine may connect. docs/CONFIGURATION.md lists the flags and the configuration file, TLS, logs and the startup update check.

Performance

KiviDB 1.2.0 against Garnet, Dragonfly, Redis, Redis Cluster and Valkey: throughput, latency, MSET, memory, snapshots and vector search

KiviDB 1.2.0 against Garnet, Dragonfly, Redis, Redis Cluster and Valkey. Click for the full-resolution video.

docs/PERFORMANCE.md has the bare-metal table and method, the full suite on Azure VMs, where KiviDB loses, earlier runs and independent reviews.

Features

Documentation

Installing · Building from source · Running and configuring · Persistence · Migrating from Redis · Compatibility and differences · Commands · Client examples · Vector search · Performance · Logs and errors · FAQ · Changelog · Releases · Website: kividb.io

Contributing

Contributions are welcome. See CONTRIBUTING.md for how to build, test and submit changes. Contributions are accepted under the Contributor License Agreement, which you sign on your first pull request.

Questions, ideas, or want to talk to the maintainers? Join us on Discord, or open a discussion.

Please follow the Code of Conduct. The Changelog lists what changed in each release.

Security

Please do not report security vulnerabilities in public issues. See SECURITY.md for how to report one privately.

License

Copyright (c) 2026 KIVIDB PRIVATE LIMITED.

KiviDB is open source software, licensed under the GNU Affero General Public License, version 3 (AGPL-3.0-only), an OSI-approved license. You may use, modify and redistribute it under its terms. See NOTICE.

Using KiviDB does not put your application under the AGPL. An application that talks to KiviDB over the network, through any Redis client, is a separate program: you can run an unmodified KiviDB as your database, in any product, open or closed, commercial or not, with no obligation on your application's code. The AGPL asks for one thing beyond the GPL: if you modify KiviDB itself and let others use your modified version over a network (for example, as a hosted service), you must offer them the source code of your modified KiviDB.

Commercial license. KIVIDB PRIVATE LIMITED owns the copyright in KiviDB and also offers it under a commercial license, for organizations that cannot use AGPL software or that want to modify or embed KiviDB without publishing their changes. Write to [email protected].

Our commitment. Every version of KiviDB we release under the AGPLv3 stays available under the AGPLv3. The Contributor License Agreement lets us offer the commercial license alongside it; it is not a way to take the open source version away.

Questions about the license are answered in the FAQ.

Trademarks

Redis® is a registered trademark of Redis Ltd. Any rights therein are reserved to Redis Ltd. Any use by KiviDB is for referential purposes only and does not indicate any sponsorship, endorsement or affiliation between Redis and KiviDB. KiviDB is not affiliated with Redis Ltd. Other names mentioned are trademarks of their respective owners.

kividb (kividbio/kividb)

vector-database
Searching Database…

What is this?KiviDB is a fast, multi-threaded alternative to Redis and Valkey, written in Rust. It speaks the Redis protocol (RESP2/RESP3) so existing Redis clients work unchanged, and it has full-text and vector search built in.
Is this a drop-in replacement, or do I need a special client?It's a drop-in replacement: KiviDB implements the Redis wire protocol, so redis-cli and any existing Redis client library work against it unchanged, just on a different default port (6380 instead of 6379).
How do I get it running?Run the published Docker image, download a release binary for Linux (x86_64/aarch64) or macOS (Apple Silicon/Intel) from GitHub Releases, or build from source with Cargo. It listens on port 6380 by default, so you point any Redis client at that port.
Any gotchas before I point real traffic at it?By default it only accepts loopback connections until you set a password or bind address (protected mode), so exposing it publicly without one leaves it open to the internet. Also, io_uring is often blocked by Docker's default seccomp profile and silently falls back to Tokio, and Lua scripting commands error out unless you built with the lua feature.
What's the catch with the AGPL license?KiviDB is licensed under AGPL-3.0-only, but the README explicitly states that using KiviDB as a client does not put your own application under the AGPL.
How much faster is it than Redis in practice?In the project's own October 2026 benchmark on AWS Graviton3, KiviDB served about 21 million pipelined GETs/s versus 2.4M for Redis 8 and 9.1M for Dragonfly, with under half Dragonfly's p99 latency. The README cautions these are one controlled capture, not a guarantee for your own workload.
Can I run vector and full-text search like Redis Stack?Yes, KiviDB implements Redis Stack-style FT. commands (FT.CREATE, FT.SEARCH, FT.HYBRID) for full-text BM25, tag/numeric filters, and ANN vector search with FLAT or HNSW indexes on hash fields, so existing tutorials and binary vector blobs largely work unchanged.
What happens to my data on restart?KiviDB persists to native snapshots (dump.kdb) that include each HNSW vector graph, plus an optional append-only file (AOF) that replays on startup, so with --aof a crash loses at most about one second of writes.
Why does it listen on port 6380 instead of Redis's 6379?So a KiviDB instance can run side by side with a real Redis or Valkey instance on the same machine without a port conflict; pass --port 6379 if you want to override it.
What are similar projects?dragonfly, phpredis, redis, valkey, dicedb, pgrust, garnet, memcached
Creator
kividbio
Size
110.6 MB
Stars
1.2K
Age
1mo
Commits · 90 Days