Typhon

Install Typhon.

tyc is a single binary: compiler, language server, formatter, REPL and interpreter. The Python it produces runs on CPython 3.13 or newer, with your application's Python dependencies. Generated helpers are included in the build output.

Latest prerelease v1.0.0-beta.7, 2 November 2026

  1. 1

    Install the compiler

    Shell
    curl -fsSL https://typhon.sh/install.sh | sh
    Scroll sideways if needed. Copy includes the full command.Read the macOS / Linux installer

    The script picks the build for your machine, checks its SHA-256 and installs to ~/.local/bin, or %LOCALAPPDATA%\Programs\Typhon on Windows. No sudo or admin rights needed. Running it again upgrades in place.

    Verify the installation
    tyc --version

    Expected: tyc 1.0.0-beta.7. If the command is not found, open a new terminal and check that the install folder is on your PATH. See installation troubleshooting.

  2. 2

    Start a project

    Shell
    tyc init hello
    cd hello

    This writes typhon.toml, src/main.ty with a worked example, and a tests/ directory. New projects target Python 3.15; use CPython 3.15 for the generated output. To target 3.13 or 3.14, change target in the [python] section of typhon.toml.

  3. 3

    Check it

    Shell
    tyc check src/

    Parses, resolves and type-checks without writing anything, which makes it the command to run in CI. Every error has a code; tyc explain nullable_use prints the full entry, offline.

  4. 4

    Run it, then build it

    Shell
    tyc run
    tyc build
    python build/main.py
    Expected starter output
    Hello from Typhon!
    Hello, hello, from Typhon!
    count is now 1
    doubled: 42

    tyc run uses the built-in interpreter, or falls back to CPython for unsupported programs. tyc build writes plain Python to build/, with source maps so tracebacks point back at your .ty files. It also sets up a .venv with uv when uv is installed.

    If you commit build/, commit build/.tyc-build-manifest with it. The manifest tracks generated files so later builds can remove stale output, including in fresh clones. Its header explains what it contains. See the build guide.

Platforms

Prebuilt binaries ship with every release.

SystemArchitectureDownload
macOSApple Silicontar.gz archive
macOSInteltar.gz archive
Linux (glibc)x86_64tar.gz archive
Linux (glibc)aarch64tar.gz archive
Windowsx86_64ZIP archive

Alpine and other musl distributions work under gcompat, or you can build from source.

Pin a version or folder

For macOS and Linux, pass flags after sh -s --. PowerShell uses the environment variables shown below.

macOS / Linux · shell
curl -fsSL https://typhon.sh/install.sh | sh -s -- --version=v1.0.0-beta.7
curl -fsSL https://typhon.sh/install.sh | sh -s -- --dir=/opt/typhon/bin

On Windows, set environment variables before running the installer.

Windows · PowerShell
$env:TYPHON_VERSION = 'v1.0.0-beta.7'
$env:TYPHON_INSTALL_DIR = 'C:\Tools\Typhon'
irm https://typhon.sh/install.ps1 | iex

Download it yourself

If you'd rather not pipe a script into a shell, take the archive for your platform from the v1.0.0-beta.7 release page, download its SHA256SUMS, verify the archive, and put tyc on your PATH.

Save the archive and SHA256SUMS in the same folder. Run these commands from that folder. Extract only after the checksum matches.

macOS

This example uses Apple Silicon. For Intel, replace the filename below with the Intel archive linked above.

macOS · verify and install
archive='tyc-1.0.0-beta.7-aarch64-apple-darwin.tar.gz'
shasum -a 256 -c SHA256SUMS --ignore-missing &&
tar -xzf "$archive" &&
mkdir -p "$HOME/.local/bin" &&
cp "${archive%.tar.gz}/tyc" "$HOME/.local/bin/tyc" &&
export PATH="$HOME/.local/bin:$PATH" &&
tyc --version

Add ~/.local/bin to your shell's PATH for future terminals.

Linux

This example uses x86_64. For ARM64, replace the filename below with the ARM64 archive linked above.

Linux · verify and install
archive='tyc-1.0.0-beta.7-x86_64-unknown-linux-gnu.tar.gz'
sha256sum -c SHA256SUMS --ignore-missing &&
tar -xzf "$archive" &&
mkdir -p "$HOME/.local/bin" &&
cp "${archive%.tar.gz}/tyc" "$HOME/.local/bin/tyc" &&
export PATH="$HOME/.local/bin:$PATH" &&
tyc --version

Add ~/.local/bin to your shell's PATH for future terminals.

Windows · PowerShell
Windows · verify and install
$name = 'tyc-1.0.0-beta.7-x86_64-pc-windows-msvc'
$archive = "$name.zip"
$hash = (Get-FileHash $archive -Algorithm SHA256).Hash
$line = Get-Content SHA256SUMS | Where-Object { $_.EndsWith("  $archive") }
if (!$line -or $hash -ne ($line -split '\s+')[0]) {
    throw 'Checksum mismatch'
} else {
    Expand-Archive $archive -DestinationPath .\typhon
    $install = "$env:LOCALAPPDATA\Programs\Typhon"
    New-Item -ItemType Directory -Force $install | Out-Null
    Copy-Item ".\typhon\$name\tyc.exe" $install
    $env:Path = "$install;$env:Path"
    tyc --version
}

For future terminals, add %LOCALAPPDATA%\Programs\Typhon to your user PATH in Windows Environment Variables, then open a new terminal.

All releases includes the betas. GitHub's “latest” link skips prereleases.

Build from source

The toolchain is pinned to Rust 1.94 by rust-toolchain.toml.

Shell
git clone https://github.com/CodeHalwell/Typhon
cd Typhon/tyc
cargo build --release      # target/release/tyc

Editor support

tyc lsp is a language server on stdio, so any editor with LSP support can use it for diagnostics, hover, go-to-definition and completion. There is a reference VS Code extension in the repository. It currently needs packaging from source, then installation as a .vsix. Follow the VS Code setup steps, or configure another LSP editor.

Uninstall

Remove the installed compiler binary. Your project files and build output remain in their project directories.

Shell
rm "$HOME/.local/bin/tyc"

On Windows, delete tyc.exe from %LOCALAPPDATA%\Programs\Typhon. The install guide has a script that also tidies your PATH.

Run your first program.

Write a small Typhon program, check it and see the Python it produces.