All apps/Wasmtime

Wasmtime

wasmtime

A standalone runtime for WebAssembly.

Runs as wasmtime|macOS, Linux, Windows|wasmtime.dev

Command form

ai-draft · 2 tasks · 4 fields

Run a .wasm or .wat file, optionally calling one export. Wasmtime flags must precede the file; program arguments follow it. The -O/-C/-D/-W/-S tuning options are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui wasmtime
Run a WebAssembly fileExample values, fixed in this page — nothing here reaches a terminal
Basic
WebAssembly file*
file
Program arguments
string
Directory to expose to the program
directory
TasksEach one presets the form for one job
Run a program
moduleargsdir
Call one export
moduleinvokeargs
ParametersOnly these flags are editable in the form
Directory to expose to the program
path · repeatable
--dir
Export to invoke instead of the main entry
string
--invoke
WebAssembly file
path · positional 0
Program arguments
string · positional 1 · repeatable
SourcesEvery flag above is checked against these
docs
wasmtime run foo.wasm wasmtime foo.wat wasmtime --dir . foo.wasm wasmtime run --invoke initialize foo.wasm wasmtime run --invoke add add.wasm 1 2 All Wasmtime options must come before the WebAssembly file provided. All arguments afterwards are passed to the WebAssembly file itself.
manual2026-10-27

docs.wasmtime.dev

Before it fills your prompt, Otty checks the installed wasmtime against its version. A form that does not match your version is not offered.