Download Turf

Turf 2.0.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.0.0Released 14 October 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 · 52 MB

    turf-v2.0.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 · 54 MB

    turf-v2.0.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 · 48 MB

    turf-v2.0.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 · 50 MB

    turf-v2.0.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 · 36 MB

    turf-v2.0.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 · 38 MB

    turf-v2.0.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 · 47 MB

    turf-v2.0.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 · 49 MB

    turf-v2.0.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

Turf 2.0.0 is the only version you can download. Every version before 2.0.0 is retired.

Esc

Type to search.