Installation
Kairos Substrate is distributed as source code. You build the specific target you need from the kairos-engine workspace.
Prerequisites
Section titled “Prerequisites”| Tool | Version | Purpose |
|---|---|---|
| Rust | 1.94+ (edition 2024) | Core toolchain — pinned via rust-toolchain.toml |
| wasm-pack | Latest | WASM builds only |
| maturin | Latest | Python wheel builds only |
Platform Matrix
Section titled “Platform Matrix”| Platform | Architecture | CLI | Native lib | Python | WASM |
|---|---|---|---|---|---|
| Linux | x86_64 | Yes | Yes | Yes | Yes |
| Linux | aarch64 | Yes | Yes | Yes | Yes |
| macOS | x86_64 | Yes | Yes | Yes | Yes |
| macOS | aarch64 (Apple Silicon) | Yes | Yes | Yes | Yes |
| Windows | x86_64 | Yes | Yes | Yes | Yes |
WASM builds are platform-independent — wasm32-unknown-unknown produces identical output on any host.
Build Profiles
Section titled “Build Profiles”Two release profiles exist because WASM and native targets have opposing optimization goals:
| Profile | opt-level | Use case |
|---|---|---|
release | z (size) | WASM only |
release-native | 3 (speed) | CLI, FFI, Python |
Build Commands
Section titled “Build Commands”CLI Binary
Section titled “CLI Binary”# Standard CLI (speed-optimized)cargo build -p kairos-cli --profile release-native
# CLI with the observe TUI dashboardcargo build -p kairos-cli --features tui --profile release-nativeThe built binary is at target/release-native/kairos.
Native Library (C FFI)
Section titled “Native Library (C FFI)”# Shared + static librarycargo build -p kairos-ffi --profile release-native
# With fly-by-wire session supportcargo build -p kairos-ffi --profile release-native --features fly-by-wire
# With dynamic artifact loading (research mode)cargo build -p kairos-ffi --profile release-native --features fly-by-wire,dynamic-configThe generated C header is kairos_engine.h. The shared library is libkairos_engine.so (Linux), libkairos_engine.dylib (macOS), or kairos_engine.dll (Windows).
Python Wheel
Section titled “Python Wheel”cd crates/kairos-pylibmaturin build --releaseThe wheel is placed in target/wheels/.
WASM Module
Section titled “WASM Module”# Standard WASM (size-optimized)wasm-pack build crates/kairos-wasm --release
# WASM with fly-by-wire session bindingswasm-pack build crates/kairos-wasm --release --features fly-by-wireRunning Tests
Section titled “Running Tests”# All workspace testscargo test --workspace
# Tests with fly-by-wire featurescargo test --workspace --features fly-by-wire
# HITL regression without license featurecargo test -p kairos-rosetta-inbound --test hitl_no_license_test \ --no-default-features --features fly-by-wireNext Steps
Section titled “Next Steps”After building, you need to activate a license before running evaluations.