Appearance
Getting started
This guide takes you from an empty machine to a successful WebAssembly call. You will install the Wago version manager, select a runtime, download a tiny module, and run it.

Install the manager
bash
go run github.com/wago-org/wago/cli/wago-installer@latestbash
curl -fsSL https://install.wago.sh/unix | shpowershell
irm https://install.wago.sh/ps | iexsh
wago --versionYou can think of the wago command as a version manager. It handles version installing, upgrading, and switching. In order to run wasm, you need to install the actual runtime.
If you only need Wago as a library in an existing Go project, add the package directly:
sh
go get github.com/wago-org/wagoInstall a runtime
sh
wago version installDownload a small module

sh
curl -fsSL https://wago.sh/corpora/fib.wasm -o fib.wasmThis module exports a function named fib. It takes one i32 argument and returns the corresponding Fibonacci number.
You can inspect its exports before running it:
sh
wago module exports fib.wasmThe module exports a fib (i32) -> i32 function. Without --invoke, Wago selects _start, then main, then the module's only exported function—in this case, fib. If several exported functions remain, name one with --invoke or -e.
Run it
In this case, fib is the only exported function, so Wago selects it automatically:
sh
wago fib.wasm 30You should see:
text
832040Try the everyday commands
Wago uses either Go 1.22 or newer or TinyGo 0.41.1, the tested TinyGo baseline, to link standalone executables. Make sure one of them is available on
PATH.
Create a standalone executable:
bash
wago compile fib.wasm -o fib
./fib 30powershell
wago compile fib.wasm -o fib.exe
.\fib.exe 30cmd
wago compile fib.wasm -o fib.exe
fib.exe 30Where to go next
Use the CLI well
Pick exports, pass typed arguments, watch files, inspect imports, and precompile modules.
Embed Wago in Go
Move from a shell command to a long-lived runtime inside your application.
Add host capabilities
Install the WASI plugin, review its requested access, and run a module that uses it.
Fix a first-run problem
Diagnose PATH, runtime selection, imports, exports, and stale precompiled files.
