Prerequisites

Kria 2.0.0 was released on November 15, 2026. Its release page provides a Windows x86_64 installer. No prebuilt Linux/macOS binaries are listed; check the latest releases for updated assets. To build from source, install the Rust toolchain for the Rust 2021 edition.

The default JIT backend for running .krx source files also requires Clang from LLVM on your PATH. You can select RegisterVM instead if Clang is unavailable. Install Rust using rustup.

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Download or build Kria

Download a release (recommended)

Open Kria on GitHub Releases and choose an asset for your operating system and architecture. The 2.0.0 release currently lists the kria-2.0.0-windows-x86_64-setup.exe installer. Follow the release notes to install or run it.

Build from source

If you prefer to build Kria yourself, clone the repository and build in release mode:

git clone https://github.com/Kria-Labs/kria-lang.git
cd kria-lang
cargo build --release

The compiled binary will be at target/release/kria (kria.exe on Windows). You can add it to your PATH or run it directly.

On Linux/macOS, the repository also provides ./release/build.sh install to build and install Kria to ~/.kria/bin. On Windows, the release README documents building with Cargo and creating the installer with release/kria-setup.nsi and NSIS.

Execution backends

Running a .krx file uses the experimental LLVM-based JIT by default. The JIT compiles generated LLVM IR to a native library and requires Clang from LLVM on PATH. To use RegisterVM for source-file execution instead:

# Linux / macOS
KRIA_BACKEND=register kria hello.krx

# Windows PowerShell
$env:KRIA_BACKEND="register"
.\kria.exe .\hello.krx

This setting applies to source files only. The interactive REPL always uses RegisterVM. Remove the setting with unset KRIA_BACKEND on Linux/macOS or Remove-Item Env:KRIA_BACKEND in PowerShell to use the default JIT again.

Your First Program

Create a file named hello.krx:

set x = 5
set y = 3
print(x + y)

Run it with:

# Linux / macOS
kria hello.krx

# Windows PowerShell
.\kria.exe .\hello.krx

Output: 8

Interactive REPL

Start the interactive Read-Eval-Print Loop with no arguments:

kria

The REPL uses RegisterVM and provides a persistent session where variables and functions stay in scope until you reset or exit. Expressions are auto-printed, and multi-line blocks are supported. The source-file backend setting does not change the REPL backend.

Meta Commands

  • :help — Show available commands
  • :reset — Clear all variables and functions
  • :exit — Exit the REPL

Try this in the REPL:

set name = "Kria"
print(name)
fn greet(x) { return "Hello, " + x }
greet(name)

Next Steps

Once you have downloaded or built Kria, explore the other documentation sections: