Install Amalgame

Try it instantly with the ready-to-use Docker IDE, or install the amc compiler natively for your system.

Latest stable version: v0.8.94 (see all releases)

Telemetry. At most once a day, amc build and amc run send tel.amalgame.me the amc version, the operating system and the CPU architecture (for example linux and x86_64). Nothing else: no identifier, no file name, no code. The server does not keep your IP address: it derives the country from it, then discards it. To turn it off: export AMALGAME_NO_TELEMETRY=1 (or DO_NOT_TRACK=1).

🐳 Docker — the full IDE, zero install

The quickest way to try Amalgame: one command boots a browser VS Code with the compiler, the extension (syntax highlighting, LSP, debugger), a ready-to-run sample and the docs — all pre-wired, nothing to set up.

docker run --rm -p 8080:8080 ghcr.io/amalgame-lang/amalgame-ide:latest

Then open localhost:8080 — you land on the MyFirstApp sample with the user guide pinned in the sidebar; press F5 to build and debug it on the spot.

  • Port already in use? Map any free host port, e.g. -p 8888:8080, then open localhost:8888.
  • Multi-arch: runs natively on Intel/AMD (amd64) and on Apple Silicon / Raspberry Pi 64-bit (arm64).
  • Persist your work: mount a folder, e.g. -v "$PWD/work:/home/coder/work".
  • Exposing it beyond localhost? Set -e PASSWORD=… (auth is disabled by default for local use).

Pre-built binary

The fastest native install. Download the archive for your system and extract it. Keep the whole folder: amc looks for its runtime in it (share/amalgame). Add its bin folder to your PATH.

🐧 Linux

🍎 macOS

🪟 Windows

🥧 Raspberry Pi (ARM64)

On a Raspberry Pi running a 64-bit OS (uname -m → aarch64), these commands install the native linux-arm64 build. 32-bit (armv7l, armv6l) has no binary. On a Pi 3, 4, 5 or Zero 2 W, install a 64-bit OS. The Pi 1, Pi 2, Pi Zero and Pi Zero W have no 64-bit Raspberry Pi OS: for them, build amc from source, on the Pi.

sudo apt install -y build-essential libgc-dev libssl-dev curl
curl -fsSL https://amalgame.me/install.sh | bash
source ~/.bashrc
amc --version

🥧 New to the Pi? The Raspberry Pi how-to guide walks you from a blank SD card to blinking an LED, reading a button, and talking to I²C sensors — step by step.

Build from source

If you want to bootstrap yourself or if no binary is available for your OS.

Linux

sudo apt install gcc libgc-dev zlib1g-dev
git clone https://github.com/amalgame-lang/Amalgame.git && cd Amalgame
gcc -O2 -Iruntime snapshot/amc_lib.c -lgc -lm -o snapshot/amc
./build_amc.sh
./amc --version

macOS

brew install bdw-gc
git clone https://github.com/amalgame-lang/Amalgame.git && cd Amalgame
GC_PREFIX=$(brew --prefix bdw-gc)
gcc -O2 -Iruntime -I"$GC_PREFIX/include" -L"$GC_PREFIX/lib" \
    snapshot/amc_lib.c -lgc -lm -o amc
./amc --version

Windows (MSYS2 MINGW64)

pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-gc
git clone https://github.com/amalgame-lang/Amalgame.git && cd Amalgame
gcc -O2 -Iruntime snapshot/amc_lib.c -lgc -lm -lws2_32 -o amc.exe
./amc.exe --version

Install Mosaic (the web framework)

Mosaic is Amalgame's web framework — one binary, N sites, HTTPS with Let's Encrypt certificates via native ACME, sessions, auth (Basic/JWT), reverse proxy. Once amc is in place it installs as a set of packages.

amc package add web net-http tls      # framework + HTTP/1.1 + TLS
amc package add net-proxy             # (optional) reverse proxy

A minimal server:

namespace App

import Amalgame.Web

public class Program {
    public static void Main(string[] args) {
        WebApp.New()
            .Get("/", ctx => HttpResponse.New().Html("<h1>Hello Mosaic</h1>"))
            .ServeHttps(443, "/etc/ssl/cert.pem", "/etc/ssl/key.pem")
    }
}

Full reference (auth, sessions, CORS/CSRF, rate-limit, static files, TLS/ACME, reverse proxy): the Mosaic docs and the configuration reference.

Install Pollen (the workflow bus)

Pollen is Amalgame's decentralized P2P workflow engine — a TCP/UDP message bus that runs distributed automation across machines, with a visual workflow editor. It is an Amalgame package (amc 0.8.52 or later). In your project:

amc package add pollen

You also need OpenSSL (libssl-dev on Debian or Ubuntu). More in the package repository.

What next?

Verify the installation with amc --version, then follow the tour to discover the language.