Wasmtime
The Bytecode Alliance's standalone WebAssembly and WASI runtime, embeddable from Rust, C, Python, Go, .NET and Ruby, and the engine under Spin, Extism, Akamai Functions and Fastly. The default WebAssembly engine for building a sandbox into your own software; choose it for plug-ins and tool code rather than whole-OS workloads.
Overview
Wasmtime is "a standalone runtime for WebAssembly" from the Bytecode Alliance, written in Rust and licensed Apache-2.0. It compiles Wasm with the Cranelift code generator at runtime or ahead of time, passes the official WebAssembly test suite, implements WASI and the component model (its README example targets wasm32-wasip2), and offers embeddings supported by the Alliance for Rust, C, C++, Python, .NET, Go and Ruby, with community embeddings for Elixir and Perl. The security model is the WebAssembly one: "all accesses within linear memory are checked to ensure they stay in bounds", linear memories get a 2 GB guard region, instance memory is zeroed after use, WASI is capability-based so guests reach only files they were given, and Spectre mitigations cover indirect calls and br_table. Hosts can bound execution with deterministic fuel or low-overhead epoch interruption. The project is fuzzed continuously on Google's OSS-Fuzz. Binaries ship for Linux, macOS and Windows.
Wasmtime is the engine under most of the Wasm platforms on this site: Spin "takes advantage of the latest developments in the WebAssembly component model and Wasmtime runtime", the Extism runtime pins wasmtime 49 in its Cargo.toml, and Akamai Functions runs on "a Wasmtime-based runtime with strong isolation and memory safety". The adopters file also lists Fastly (every Compute request), Shopify Functions, Microsoft (WASI node pools in AKS), DFINITY, Huawei Cloud, Redpanda, SingleStore and Cosmonic. A new major version ships on the 20th of each month; every twelfth release is an LTS supported for 24 months, others for 2 months. v50.0.1 was released on 29 October 2026. It is a runtime for code compiled to Wasm, not a Linux environment: there is no shell, package manager or process model unless the guest brings one.
Notable
- Monthly semver-major releases on the 20th; every twelfth release is a 24-month LTS; v50.0.1 released 29 October 2026
- Adopters include Fastly, Shopify, Microsoft (AKS WASI node pools), Akamai, DFINITY, Huawei Cloud and Redpanda; Spin and Extism build on it
- Fuzzed 24/7 on Google's OSS-Fuzz; Spectre mitigations and formal-verification work documented
Wasmtime specifications
| Attribute | Details |
|---|---|
| Isolation | WebAssembly linear-memory sandbox with bounds-checked memory, 2 GB guard regions, capability-based WASI file access, memory zeroing between instances and fuel or epoch-based execution interruption |
| Deployment | Open-source project · Self-hostable |
| Open source | Yes (Apache-2.0) |
| SDKs and interfaces | CLI, Rust, C, C++, Python, .NET, Go, Ruby |
| Cold start (vendor claim) | wasmtime.dev says it "is optimized for efficient instantiation" with scalable concurrent instances; no figure given |
| Max session length | Embedder-controlled: fuel budgets (deterministic) or epoch deadlines (about 10% overhead) trap or yield the guest |
| Persistence | None built in; the embedding host owns instance state and can pause a guest via async yield |
| GPU | No - no GPU access from WebAssembly guests |
| Networking | None unless the embedder grants WASI capabilities; guests only reach files, directories and hosts they are explicitly given |
| Pricing | Free and open source |
| Free tier | Free to self-host |
| Compliance | Not documented |
| Regions | Not documented |
Facts from Wasmtime’s public documentation, verified November 9, 2026. Performance numbers are vendor claims.
Strengths and trade-offs
Strengths
- You want a memory-safe, capability-based sandbox you can embed in-process in seven supported languages
- You need deterministic execution limits (fuel) for untrusted tool or plug-in code
- You run on laptops and servers alike, including macOS and Windows, with no hypervisor
- You want the same engine that Fastly, Shopify, Spin and Extism rely on
Trade-offs
- Runs only code compiled to WebAssembly; no Linux userland, shell or arbitrary native packages
- Networking and filesystem access exist only through capabilities you wire up with WASI
- No GPU access
- Monthly major versions mean frequent upgrades unless you track an LTS
Good fit for: Embedding a capability-based sandbox for plug-ins, functions and tool code inside your own application.
How Wasmtime compares
| Sandbox | Isolation | Open source | Self-host / BYOC | Cold start (vendor) | Max session | Snapshots / pause | GPU | SDKs |
|---|---|---|---|---|---|---|---|---|
| Wasmtime | Wasm sandbox | Yes | Yes / No | Not documented | Embedder-set | No / Not documented | No | CLI, Rust, C, C++, Python, .NET, Go, Ruby |
| Wasmer | Wasm sandbox | Yes | Yes / No | Not documented | Not documented | Not documented / Not documented | No | CLI, JavaScript/TypeScript, Python, Rust, Swift |
| Extism | Wasm plug-in sandbox | Yes | Yes / No | Not documented | Host-set | No / No | No | Rust, JavaScript/TypeScript, Go, Python, Ruby, .NET, Java, PHP, Elixir, Haskell, OCaml, Perl, Zig, C, C++ |
| Spin (Fermyon) | Wasm component | Yes | Yes / No | ms (claim) | 30 s (Fermyon Cloud) | No / No | No | CLI, Rust, JavaScript/TypeScript, Go, Python |
| Pyodide | CPython in Wasm | Yes | Yes / No | Not documented | Not documented | No / No | No | JavaScript/TypeScript, Python |
| WebContainers | Browser tab (WebAssembly) | No | No / No | ms (claimed) | Not documented | No / No | No | JavaScript/TypeScript |
Frequently asked questions
What is Wasmtime?
How does Wasmtime isolate code?
Is Wasmtime open source?
How much does Wasmtime cost?
What are the alternatives to Wasmtime?
Sources
- wasmtime.dev
- github.com/bytecodealliance/wasmtime
- docs.wasmtime.dev/security.html
- docs.wasmtime.dev/stability-release.html
- docs.wasmtime.dev/examples-interrupting-wasm.html
- github.com/bytecodealliance/wasmtime/blob/main/ADOPTERS.md
- github.com/bytecodealliance/wasmtime/releases
- github.com/spinframework/spin
- github.com/extism/extism/blob/main/runtime/Cargo.toml
- akamai.com/products/akamai-functions
Cite this page
Agent Sandboxes. (2026). Wasmtime. agentsandboxes.org. Last reviewed November 9, 2026. https://agentsandboxes.org/sandboxes/wasmtime/
Found an error or a missing sandbox? Submit a correction — every entry links to the sources it relies on.