Skip to main content

System requirements

Mochi runs on macOS, Linux, Windows (via WSL2), and Docker. The binary is statically linked, so most installations have no prerequisites.

Supported platforms

PlatformArchitectureNotes
macOS 12+x86_64, ARM64 (M1/M2/M3)Fully supported
Linux (Ubuntu 20.04+, Debian 11+)x86_64, ARM64Fully supported
Windows 10/11 via WSL2x86_64Supported
DockerAnyVia ghcr.io/mochilang/mochi

Prerequisites

Binary installation

No prerequisites. The Mochi binary is statically linked and self-contained.

Docker

Docker Desktop or Docker Engine on Linux.

Build from source

  • Go 1.21 or later: Install Go
  • Make: available on all Unix-like systems
  • Optional: Deno 1.40+ for TypeScript-based tests (make install handles this)

Verifying your installation

After installing, run:

mochi --version

The output looks like:

mochi version 0.10.x

Then try a quick hello world:

echo 'print("Hello!")' | mochi run /dev/stdin

Or create hello.mochi and run:

mochi run hello.mochi