KayaDB ships as Rust crates on crates.io and as pre-built binaries on GitHub Releases. You can also build everything from source.
Current workspace version: v0.2.1 — see Releases. crates.io tracks the same line for published crates.
| Requirement | Version |
|---|---|
| Rust toolchain | 1.85+ (rust-toolchain.toml on GitHub) |
| Platform | Linux, macOS, Windows (x86_64 and Apple Silicon for releases) |
cargo install kayactl
kayactl --helpEmbedded mode works out of the box — no server required:
kayactl --data ./data put key valuecargo install kaya-server --bin kayadb-server
kayadb-server --helpAdd to Cargo.toml:
[dependencies]
kaya-engine = "0.2.1"
kaya-io = "0.2.1"
kaya-core = "0.2.1"
tokio = { version = "1", features = ["rt-multi-thread", "macros"] }For remote access:
kaya-client = "0.2.1"Published crates (dependency order): kaya-core, kaya-io, kaya-raft, kaya-wal, kaya-lsm, kaya-engine, kaya-net, kaya-sim, kaya-client, kaya-ebpf, kaya-server, kayactl.
On each v* tag, CI builds kayadb-server and kayactl for:
| Target | Archive |
|---|---|
x86_64-unknown-linux-gnu |
.tar.gz |
x86_64-pc-windows-msvc |
.zip |
x86_64-apple-darwin |
.tar.gz |
aarch64-apple-darwin |
.tar.gz |
- Open GitHub Releases
- Download the archive for your platform (e.g.
kayadb-v0.2.1-x86_64-unknown-linux-gnu.tar.gz) - Extract and add the binaries to your
PATH
tar -xzf kayadb-v0.2.1-x86_64-unknown-linux-gnu.tar.gz
./kayadb-server --data ./data --client-addr 127.0.0.1:7379Release packages include README.md, CHANGELOG.md, and security.md.
git clone https://github.com/Tuntii/KayaDB.git
cd KayaDB
cargo build --release --workspaceBinaries land in target/release/:
kayadb-serverkayactl
Run without installing:
cargo run -p kayactl -- --data ./data put hello world
cargo run -p kaya-server --bin kayadb-server -- --data ./dataCI gates (run before contributing):
cargo fmt --all -- --check
cargo clippy --workspace --all-targets -- -D warnings
cargo test --workspaceNative TLS (rustls) for Raft and client listeners:
cargo install kaya-server --bin kayadb-server --features tls
cargo install kayactl --features tlsOr from source:
cargo build --release -p kaya-server --features tls
cargo build --release -p kayactl --features tlsSee Security → TLS and the mTLS sidecar runbook.
Membership changes (ADD_MEMBER / REMOVE_MEMBER) accept an operator token when configured:
export KAYA_OPERATOR_TOKEN=your-secret
kayadb-server --operator-token "$KAYA_OPERATOR_TOKEN" ...
kayactl --operator-token "$KAYA_OPERATOR_TOKEN" add-node ...# Embedded smoke test
kayactl --data /tmp/kayadb-check put ping pong
kayactl --data /tmp/kayadb-check get ping
# expected: pong
# Server smoke test (two terminals)
kayadb-server --data /tmp/kayadb-srv --client-addr 127.0.0.1:7379
kayactl --server 127.0.0.1:7379 put ping pong- Getting started — first commands, cluster setup, client library
- CLI reference — full
kayactldocumentation - Releases — versioning and changelog