Download Xu
The website, documentation, and SDK use the same release: Xu 0.16.0. Compiler release files are distributed through GitHub Releases. Choose a published version and the matching platform asset.
View GitHub Releases Release notes
Install and repair: Use these commands for a fresh install, upgrade or reinstall. They update the SDK selected by PATH, or install to ~/.xu when none exists. The original SDK is retained as a backup; replacement completes only after full verification.
Installation commands
macOS / Linux
curl -fsSL https://xulang.org/install.sh | bash -s -- --online --version 0.16.0 --yes
Windows PowerShell
& ([scriptblock]::Create((irm https://xulang.org/install.ps1))) -Online -Version "0.16.0"
Platform files
| System / architecture | SDK archive | Offline installer |
|---|---|---|
macos-arm64 | xu-v0.16.0-macos-arm64.tar.gz | Setup · PKG |
macos-x64 | xu-v0.16.0-macos-x64.tar.gz | Setup · PKG |
linux-arm64 | xu-v0.16.0-linux-arm64.tar.gz | Setup |
linux-x64 | xu-v0.16.0-linux-x64.tar.gz | Setup |
linux-loongarch64 | xu-v0.16.0-linux-loongarch64.tar.gz | Setup |
linux-riscv64 | xu-v0.16.0-linux-riscv64.tar.gz | Setup |
windows-x64 | xu-v0.16.0-windows-x64.zip | Setup |
windows-arm64 | xu-v0.16.0-windows-arm64.zip | Setup |
Platform boundaries
Code generation, downloadable SDK assets and tested runtime behavior are separate levels of support. Choose an SDK asset for your host; emitting another target does not prove that its networking, native libraries or GUI work on a target machine. Target paths without acceptance records remain unverified. See Status & Limitations.
WebAssembly: The native SDK emits WASI modules with xu build app.xu --target wasm32-wasi -o app.wasm. The browser Playground runs a WASM interpreter built with Xu 0.16.0. Native sockets, C libraries, process access, and the native WebView host require the native SDK.
Local tasks: Integration status distinguishes protocol, authentication, TLS and unknown platform acceptance. SQLite dynamically loads system libsqlite3 via pure-Xu sqlite_native (built-in winsqlite3.dll on Windows) without requiring a separate C bridge slice or C toolchain. Native UI / WebView needs OS-specific libraries and target-machine testing.
Installation & Usage
We recommend using native Setup installer packages for automated global environment configuration:
- Windows: Download
xu-setup-windows-x64.exe(orxu-v0.16.0-windows-x64-setup.exe) and double-click to launch the native GUI wizard (no PowerShell ExecutionPolicy restrictions, automatically configures user registry PATH and XU_ROOT). - macOS: Download
xu-v0.16.0-macos-arm64.pkgfor standard GUI installation, or standalonexu-setup-macos-arm64(run./xu-setup-macos-arm64 -y). - Linux: Download
xu-setup-linux-x64(or arm64), runchmod +x xu-setup-linux-x64 && ./xu-setup-linux-x64 -yfor zero-dependency automated installation and Shell PATH configuration.
Open a new terminal window after installation to verify:
xu --version
xu build hello.xu --output hello
./hello