Korr is one executable, korr. Every installation method below does the same
three things:
korr in a folder on your PATH,.krr file icon,
autocomplete with documentation, parameter hints and snippets,korr in a new terminal.| System | Run this |
|---|---|
| Linux, macOS | curl -fsSL https://raw.githubusercontent.com/refkinscallv/korr/main/install.sh \| bash |
| Windows (PowerShell) | irm https://raw.githubusercontent.com/refkinscallv/korr/main/install.ps1 \| iex |
Then open a new terminal and check:
korr version # korr 0.8.x
korr -e 'print("Hello, Korr!")'
Restart your editor (in VS Code: quit completely and open it again).
Nothing needs to be installed first: no runtime, no Visual C++ redistributable, no OpenSSL, no database client libraries. SQLite is built in, HTTPS uses a built-in TLS library, and the PostgreSQL and MySQL drivers are pure Rust.
| System | Supported | Notes |
|---|---|---|
| Linux x86_64, ARM64 | any distribution | The regular build needs glibc 2.34+ (Ubuntu 22.04+, Debian 12+, Fedora 35+, RHEL/Rocky/Alma 9+). Older systems and Alpine get the static build automatically; it runs everywhere but is up to about 1.7x slower on allocation-heavy code. |
| macOS | Apple Silicon (macOS 11+), Intel (macOS 10.12+) | |
| Windows | Windows 10, 11, Server 2016+ (x64) | Windows on ARM runs the x64 build. |
Optional: Git: only the package manager
(korr add, korr install) uses it. The installers offer to install it.
| Requirement | Why | Installed for you by install.sh |
|---|---|---|
| Rust, latest stable (1.85 or newer works) | compiles Korr | yes: installs rustup, or runs rustup update stable before every build |
| A C compiler | the bundled SQLite and the TLS library contain C code | yes: build-essential (Debian/Ubuntu), gcc make (Fedora/RHEL/openSUSE), base-devel (Arch), build-base (Alpine), Command Line Tools (macOS) |
| Git | to clone the repository | yes |
| Internet access on the first build | Cargo downloads the Rust dependencies once | not needed |
On Windows, building from source needs rustup-init.exe, which also offers to install the Visual Studio C++ Build Tools.
curl -fsSL https://raw.githubusercontent.com/refkinscallv/korr/main/install.sh | bash
Pass options after bash -s --:
curl -fsSL https://raw.githubusercontent.com/refkinscallv/korr/main/install.sh | bash -s -- --prefix ~/.local
| Option | Effect |
|---|---|
--prefix DIR |
install the binary to DIR/bin. The default is /usr/local (asks for your password once, only to copy the binary). --prefix ~/.local needs no sudo. |
--version v0.8.2 |
install a specific release instead of the latest |
--static |
Linux: use the static build even when the regular one would work |
--source |
build from source instead of downloading |
--no-rust-update |
source build: do not update Rust first |
--minimal |
source build without the optional features (databases, regex, HTTPS client) |
--no-editors |
install the binary only |
--editors-only |
install editor support only |
--yes |
install missing requirements (Git, compiler, Rust) without asking |
--uninstall |
remove Korr and the editor support |
Requirements are never installed silently: the script asks first (it reads your
answer from the terminal, so this works with curl | bash). In scripts and CI, add
--yes.
irm https://raw.githubusercontent.com/refkinscallv/korr/main/install.ps1 | iex
No administrator rights are needed. Korr goes to
%LOCALAPPDATA%\Programs\Korr and is added to your user PATH. To pass options,
download the script and run it:
irm https://raw.githubusercontent.com/refkinscallv/korr/main/install.ps1 -OutFile install.ps1
.\install.ps1 -Version v0.8.2 -NoEditors # or -Uninstall, -Yes
If PowerShell refuses to run scripts, run
Set-ExecutionPolicy -Scope CurrentUser RemoteSigned once.
Download the file for your system from the latest release:
| System | File | How to run it |
|---|---|---|
| Windows x64 | korr-setup-windows-x86_64.exe |
double-click it |
| macOS Apple Silicon | korr-setup-macos-aarch64 |
in Terminal: chmod +x korr-setup-macos-aarch64 && ./korr-setup-macos-aarch64 |
| macOS Intel | korr-setup-macos-x86_64 |
same as above |
| Linux x64 / ARM64 | korr-setup-linux-x86_64 / korr-setup-linux-aarch64 |
chmod +x korr-setup-linux-* && ./korr-setup-linux-* |
| Linux (any distro, static) | korr-setup-linux-x86_64-musl / -aarch64-musl |
same as above |
The binaries are not code-signed yet:
xattr -d com.apple.quarantine korr-setup-macos-* (or use Option 1,
which is not affected).Verify a download with SHA256SUMS.txt from the same release:
sha256sum -c SHA256SUMS.txt --ignore-missing (Linux),
shasum -a 256 korr-setup-macos-aarch64 (macOS),
Get-FileHash korr-setup-windows-x86_64.exe (Windows).
The release also has archives with just the binary, the license and the README:
korr-linux-x86_64.tar.gz, korr-linux-x86_64-musl.tar.gz,
korr-macos-aarch64.tar.gz, korr-windows-x86_64.zip, … Extract it and either
run ./korr setup (does the same as the installers) or put korr on your PATH
yourself:
tar -xzf korr-linux-x86_64.tar.gz
sudo install -m 755 korr /usr/local/bin/korr
korr setup --editors-only # optional: editor support
git clone https://github.com/refkinscallv/korr.git
cd korr
./install.sh # updates Rust, builds, installs, sets up editors
./install.sh inside a clone builds from source; it accepts the same options as
Option 1. Without the script:
rustup update stable
cargo build --release # creates target/release/korr
./target/release/korr setup # install it + editor support
See Building from source for feature flags, cross-compiling and troubleshooting compiler errors.
docker run --rm ghcr.io/refkinscallv/korr version
docker run --rm -v "$PWD:/app" ghcr.io/refkinscallv/korr main.krr
The image and how to build your app on it: Deployment: Docker.
Install Korr in a CI job with the setup-korr action (Linux, macOS, Windows):
steps:
- uses: actions/checkout@v4
- uses: refkinscallv/korr@v0.13.1
with:
version: 0.13.1 # or "latest" (the default)
- run: korr test
The action downloads the release for the runner’s system, checks it against the
release’s SHA256SUMS.txt and puts korr on the PATH.
| Linux | macOS | Windows | |
|---|---|---|---|
| Binary | /usr/local/bin/korr, or ~/.local/bin/korr |
/usr/local/bin/korr, or ~/.local/bin/korr |
%LOCALAPPDATA%\Programs\Korr\korr.exe |
PATH |
a line in ~/.profile (and ~/.bashrc, ~/.zshrc) when the folder is not on PATH yet |
same, plus ~/.zshrc |
your user PATH |
| VS Code, VS Code Insiders, VSCodium, Cursor, Windsurf | installed with the editor’s own command (code --install-extension), which puts it in ~/.vscode/extensions/korr.korr-lang-* (and ~/.vscode-oss, ~/.cursor, ~/.windsurf); the files are copied there directly when the editor’s command cannot be run |
same | same, under %USERPROFILE%; editors installed in %LOCALAPPDATA%\Programs or Program Files are found even when they are not on the PATH |
| Sublime Text | ~/.config/sublime-text/Packages/Korr |
~/Library/Application Support/Sublime Text/Packages/Korr |
%APPDATA%\Sublime Text\Packages\Korr |
| Vim / Neovim | ~/.vim, ~/.config/nvim |
same | ~/vimfiles, %LOCALAPPDATA%\nvim |
JetBrains IDEs (IntelliJ, PyCharm, …) can use the TextMate grammar: Settings >
Editor > TextMate Bundles > + and choose the editors/vscode folder of the
repository.
korr setupEvery korr binary can install itself (the installers above call it):
korr setup # binary on the PATH + editor support
korr setup --prefix ~/.local # binary in ~/.local/bin
korr setup --no-editors # binary only
korr setup --editors-only # (re)install editor support, e.g. after installing a new editor
korr setup --vsix korr.vsix # write the VS Code extension package to a file
korr setup --uninstall # remove both
Run the same install command again; it replaces the binary and the editor
support. korr version shows what you have, the
releases page shows what is new.
| System | Command |
|---|---|
| Linux, macOS | curl -fsSL https://raw.githubusercontent.com/refkinscallv/korr/main/install.sh \| bash -s -- --uninstall or korr setup --uninstall |
| Windows | .\install.ps1 -Uninstall or korr setup --uninstall |
The PATH line added to your shell profile stays; remove it by hand if you want.
On a machine with internet access, download the archive for the target system and
copy it over; then extract it and run ./korr setup. No other files are needed.
| Problem | Fix |
|---|---|
korr: command not found |
Open a new terminal (the PATH change applies to new terminals), or run the export PATH=... line the installer printed. |
GLIBC_2.34 not found |
Your Linux is older than the regular build supports. Reinstall with --static, or download a -musl archive. |
Permission denied writing /usr/local/bin |
Use --prefix ~/.local, or run the installer from an account that can use sudo. |
| macOS: “cannot be opened because the developer cannot be verified” | xattr -d com.apple.quarantine <file>, or install with the curl command. |
| Windows: “running scripts is disabled” | Set-ExecutionPolicy -Scope CurrentUser RemoteSigned, then run the command again. |
| No autocomplete or file icon in VS Code | Run korr setup --editors-only and reload the window (Ctrl+Shift+P, Developer: Reload Window). Check that Korr is listed in the Extensions view, or run code --list-extensions. |
korr setup says no editor was found (portable VS Code, unusual install folder) |
korr setup --vsix korr.vsix writes the extension package; install it with code --install-extension korr.vsix or Extensions view, ... menu, Install from VSIX…. |
| Formatting or error underlines do not work in VS Code | The extension needs the korr command. Open a new terminal and run korr version; if it is not found, set korr.path in the VS Code settings to the full path of korr (korr.exe on Windows). |
korr add says Git is missing |
Install Git (sudo apt install git, brew install git, winget install Git.Git). |
| Behind a corporate proxy | Set HTTPS_PROXY=http://proxy:port before running the installer. |
| Source build fails | See Building from source: Troubleshooting. |
| Previous: Introduction | Docs index | Next: Getting started |