Download Turf

Turf 2.3.0 is the latest release. Get the turf command for your platform. Each release is self-contained: nothing else needs installing to compile and run programs.

v2.3.0Released 23 November 2026

01

Your download

Pick your platform

We could not tell which platform you are on. Every download is listed below.

02

All downloads

Every release has two archives per platform: the plain one, and a -smart one, which is the same compiler with the runtime for --smart added. Choose plain unless you want --smart.

  • Linux (x86-64)

    Needs glibc 2.34 or newer (Ubuntu 22.04, Debian 12, RHEL 9, Amazon Linux 2023 and later).

    Standard

    No --smart runtime: --smart cannot call the AI and just shows the compiler's diagnostics.

    Download · 56 MB

    turf-v2.3.0-linux-x86_64.tar.gz

    Smart

    Adds the --smart runtime, so an error can go to a small local language model. Needs a model you download yourself (below).

    Download · 58 MB

    turf-v2.3.0-linux-x86_64-smart.tar.gz

  • Linux (arm64)

    64-bit ARM. Needs glibc 2.34 or newer, like x86-64.

    Standard

    No --smart runtime: --smart cannot call the AI and just shows the compiler's diagnostics.

    Download · 52 MB

    turf-v2.3.0-linux-arm64.tar.gz

    Smart

    Adds the --smart runtime, so an error can go to a small local language model. Needs a model you download yourself (below).

    Download · 53 MB

    turf-v2.3.0-linux-arm64-smart.tar.gz

  • macOS (Apple Silicon)

    Intel Macs are not supported.

    Standard

    No --smart runtime: --smart cannot call the AI and just shows the compiler's diagnostics.

    Download · 39 MB

    turf-v2.3.0-macos-arm64.tar.gz

    Smart

    Adds the --smart runtime, so an error can go to a small local language model. Needs a model you download yourself (below).

    Download · 41 MB

    turf-v2.3.0-macos-arm64-smart.tar.gz

  • Windows (x86-64)

    Native; no MSYS2 or other toolchain to install.

    Standard

    No --smart runtime: --smart cannot call the AI and just shows the compiler's diagnostics.

    Download · 51 MB

    turf-v2.3.0-windows-x86_64.zip

    Smart

    Adds the --smart runtime, so an error can go to a small local language model. Needs a model you download yourself (below).

    Download · 52 MB

    turf-v2.3.0-windows-x86_64-smart.zip

Smart builds need a model

No model is shipped or downloaded. Download a small language model (a .gguf file) separately and put exactly one in the models folder of your install: ~/.turf/models (Windows: %LOCALAPPDATA%\turf\models). Its name does not matter. With no model, or more than one, --smart says so in one line and shows the compiler's diagnostics.

We recommend Qwen2.5-Coder 1.5B Instruct (Q4_K_M): about 1 GB on disk and about 1.5 GB of RAM while it works. It is what Turf is developed with.

Get the Qwen model

03

Install by hand

Unpack and run

Unpack the archive anywhere, and run bin/turf or put bin/ on your PATH. It is one folder: bin/ (turf, turfc), lib/ (runtime and standard library), docs/, share/turf/examples/. No TURF_HOME is needed.

Check it

Check the install with turf version, which prints the versions of turf and of the compiler turfc behind it.

SHA-256 checksums for every archive are in checksums.txt.

04

Older versions

The buttons on this page always download Turf 2.3.0, the latest release. An older version is a manual download, the same as any release: open its page, find Assets at the bottom and pick the archive for your platform. The installer can fetch one for you too.

Install a specific version

Pass the version to the installer. The examples install v2.2.0: replace it with any version you want to download by hand. The installer checks the archive's SHA-256 exactly as it does for the latest release.

Terminal
curl -fsSL https://turflang.org/install.sh | sh -s -- --version v2.2.0
Windows (PowerShell)
$env:TURF_INSTALL_VERSION = "v2.2.0"; irm https://turflang.org/install.ps1 | iex
All release notes

Versions before 2.0.0 are retired and cannot be downloaded. Migrating to 2.0 covers the move.

Esc

Type to search.