Installation
Keyraft can be installed via Docker, install script, pre-built binaries, or from source.
Docker (Recommended)
bash
docker run -d -p 7200:7200 \
-e KEYRAFT_MASTER_KEY=$(openssl rand -base64 32) \
-v keyraft-data:/data \
keyraft/keyrafted:latestDocker images:
- Docker Hub: keyraft/keyrafted
- GitHub Container Registry:
ghcr.io/keyraft/keyrafted:latest- View Packages
The container automatically initializes on first run. Get the root token from logs:
bash
docker logs <container-name>Look for the Root token message in the output.
Install Script
bash
curl -fsSL https://raw.githubusercontent.com/keyraft/keyrafted/main/install.sh | shPre-built Binaries
Download from GitHub Releases:
bash
# Linux
wget https://github.com/keyraft/keyrafted/releases/latest/download/keyrafted-linux-amd64
chmod +x keyrafted-linux-amd64
sudo mv keyrafted-linux-amd64 /usr/local/bin/keyrafted
# macOS
wget https://github.com/keyraft/keyrafted/releases/latest/download/keyrafted-darwin-amd64
chmod +x keyrafted-darwin-amd64
sudo mv keyrafted-darwin-amd64 /usr/local/bin/keyraftedFrom Source
bash
go install github.com/keyraft/keyrafted@latestVerify Installation
After installation, initialize and start the server - see Quick Start.
bash
keyrafted init --data-dir ./data
export KEYRAFT_MASTER_KEY=$(openssl rand -base64 32)
keyrafted start --data-dir ./data --listen :7200Then check health:
bash
curl http://localhost:7200/v1/health