install
kage builds from source on Linux, macOS, and WSL. There are no prebuilt binaries yet.
prerequisites
You need a working Rust toolchain at version 1.86 or newer (the project pins 1.95 via rust-toolchain.toml, which rustup installs automatically the first time you build). On macOS that means Xcode command-line tools; on Linux you also need pkg-config and a Lua 5.4 development package, but the bundled mlua feature flag vendors Lua so you can skip a system Lua install.
If you have nix and direnv, nix develop (or direnv allow) gives you the exact toolchain plus cargo-nextest and bacon.
clone and build
git clone https://github.com/QaidVoid/kage
cd kage
cargo build --releaseThe binary lands at target/release/kage. Put it on your PATH or symlink it from ~/.local/bin:
ln -s "$PWD/target/release/kage" ~/.local/bin/kageverify
kage --version
kage --helpIf your shell cannot find kage, restart it or re-source your shell init file so the new directory shows up in PATH.
Optional shell completion (bash, zsh, fish, elvish):
kage completions zsh > ~/.zfunc/_kagefirst-run setup
kage init writes a starter ~/.config/kage/config.toml and offers to save a provider credential interactively (--force overwrites an existing file, --non-interactive skips the prompts):
kage initkage doctor checks the install end to end - it parses the config, lists usable providers, validates discovered plugins, and reports the sandbox state, exiting non-zero if anything is broken:
kage doctorset up a provider
kage talks to LLM providers through API keys read from your environment. Export one of the supported keys:
export ANTHROPIC_API_KEY=...
export OPENAI_API_KEY=...
export GEMINI_API_KEY=...
export ZAI_API_KEY=...
export ZAI_CODING_API_KEY=...Alternatively, save credentials with the built-in auth flow:
kage auth login anthropic # prompts silently for the key
kage auth list # providers with saved credentials
kage auth logout anthropic # remove a saved keySaved credentials live at ~/.local/share/kage/auth.json ($XDG_DATA_HOME/kage/auth.json) with 0600 permissions. Environment variables take precedence over saved keys.
next step
Quickstart walks you through your first session.