A money-native programming language — payments, wallets, subscriptions and gas-metering are keywords, not a library. Edit and run it live, right here in your browser.
Runs 100% in your browser via a JavaScript port of the Larzscript interpreter — no server, nothing sent anywhere. The language is I/O-free and gas-metered, and a step-guard stops runaway loops. Want to know how a language like this is built? See How Programming Languages Work.
Larzscript is a real standalone language, not a browser toy, and it installs
the same way on Linux, macOS and Windows — no Python, no pip, no runtime. The
one-line installer puts a single native binary on your PATH; larzscript update
keeps it current later, no reinstalling.
One line, any shell. Works on Intel or Apple Silicon, x86_64 or ARM64.
curl -fsSL https://raw.githubusercontent.com/ larz-scripter/larzscript/main/install.sh | sh larzscript repl larzscript pkg install mathx larzscript update # later, to update
~/.local/bin · prints a one-line PATH fix if it isn't there alreadyOne line, pasted into a PowerShell window. No admin rights needed.
irm https://raw.githubusercontent.com/ larz-scripter/larzscript/main/install.ps1 | iex larzscript repl larzscript pkg install mathx larzscript update # later, to update
%LOCALAPPDATA%\Larzscript · adds it to your User PATH · open a brand-new terminal window afterward for PATH to take effectOne line, pasted straight into cmd.exe — irm/iex above are
PowerShell-only and will fail if typed into a plain cmd window. This line asks cmd to hand the
same installer to PowerShell for you, so it works either way.
powershell -NoProfile -ExecutionPolicy Bypass -Command "irm https://raw.githubusercontent.com/larz-scripter/larzscript/main/install.ps1 | iex" larzscript repl larzscript pkg install mathx larzscript update # later, to update
larzscript — an already-open shell won't see the updated PATHGrab the executable for your platform straight from the latest release, no installer script.
One C file, libc only. Compiles in a second with any C compiler on Linux, macOS, BSD or Windows.
git clone https://github.com/
larz-scripter/larzscript
cd larzscript/native
make # or: cc -O2 -o \
# larzscript larzscript.c
sudo make install # -> /usr/local/bin
larzscript repl
The readable reference implementation — tree-walk interpreter and a bytecode VM, proven byte-identical. Best for reading how it works.
git clone https://github.com/ larz-scripter/larzscript cd larzscript python3 -m larzscript examples/coffee.lz python3 -m larzscript repl python3 -m larzscript --vm program.lz
The playground runs in memory, but Larzscript settles every pay and
subscribe through a pluggable backend. Plug in
LarzChain
and the same, unchanged program becomes real signed on-chain LARZ transactions —
authorized against real balances, declined before any money moves.
from larzscript import run
from larzchain.larzscript_settlement \
import LarzChainSettlement
settle = LarzChainSettlement(node)
settle.fund("customer", 50) # 50 LARZ
run(program, settlement=settle) # ← on-chain now
settle.balances() # {'customer': 38.0, 'store': 12.0}
settle.broadcast # real on-chain txids