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.
- 1
Install the compiler
Scroll sideways if needed. Copy includes the full command.Read the macOS / Linux installercurl -fsSL https://typhon.sh/install.sh | shThe script picks the build for your machine, checks its SHA-256 and installs to
~/.local/bin, or%LOCALAPPDATA%\Programs\Typhonon Windows. No sudo or admin rights needed. Running it again upgrades in place.Verify the installation tyc --versionExpected:
tyc 1.0.0-beta.7. If the command is not found, open a new terminal and check that the install folder is on yourPATH. See installation troubleshooting. - 2
Start a project
Shell tyc init hello cd helloThis writes
typhon.toml,src/main.tywith a worked example, and atests/directory. New projects target Python 3.15; use CPython 3.15 for the generated output. To target 3.13 or 3.14, changetargetin the[python]section oftyphon.toml. - 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_useprints the full entry, offline. - 4
Run it, then build it
Shell tyc run tyc build python build/main.pyExpected starter outputHello from Typhon! Hello, hello, from Typhon! count is now 1 doubled: 42tyc runuses the built-in interpreter, or falls back to CPython for unsupported programs.tyc buildwrites plain Python tobuild/, with source maps so tracebacks point back at your.tyfiles. It also sets up a.venvwith uv when uv is installed.If you commit
build/, commitbuild/.tyc-build-manifestwith 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.
| System | Architecture | Download |
|---|---|---|
| macOS | Apple Silicon | tar.gz archive |
| macOS | Intel | tar.gz archive |
| Linux (glibc) | x86_64 | tar.gz archive |
| Linux (glibc) | aarch64 | tar.gz archive |
| Windows | x86_64 | ZIP 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.
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/binOn Windows, set environment variables before running the installer.
$env:TYPHON_VERSION = 'v1.0.0-beta.7'
$env:TYPHON_INSTALL_DIR = 'C:\Tools\Typhon'
irm https://typhon.sh/install.ps1 | iexDownload 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.
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 --versionAdd ~/.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.
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 --versionAdd ~/.local/bin to your shell's PATH for future terminals.
Windows · PowerShell
$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.
git clone https://github.com/CodeHalwell/Typhon
cd Typhon/tyc
cargo build --release # target/release/tycEditor 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.
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.