> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mirage.strukto.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Runtimes

> The interpreters the TypeScript SDK runs inside Mirage, and how they differ from the Python SDK's.

A runtime is the interpreter that runs `python3` and `node` on the
`in_process` machine, where a line runs inside the Mirage process and there is
no installed interpreter to call. On a host, container or sandbox, the
`python3` installed there runs instead. [Runtimes](https://docs.mirage.strukto.ai/home/setup/runtime/overview.md)
explains the split; each page here has the TypeScript install and a runnable
example.

| Runtime | Runs | |
| - | - | - |
| ![](https://mintcdn.com/struktoai/OaLqykifYafGIzhl/images/pydantic-logo.svg?fit=max\&auto=format\&n=OaLqykifYafGIzhl\&q=85\&s=0e9cb6e1b9dbb44cb375a75eeffc071a)[Monty](https://docs.mirage.strukto.ai/typescript/runtime/monty.md) | Python | |
|  [Pyodide](https://docs.mirage.strukto.ai/typescript/runtime/pyodide.md) | Python, with packages, in a worker | TypeScript SDK only |
|  [QuickJS](https://docs.mirage.strukto.ai/typescript/runtime/quickjs.md) | JavaScript | |

Runtime output uses the normal `Workspace.shell()` result: `stdout` and
`stderr` are `Uint8Array`; `stdoutText` and `stderrText` decode them.

## Differences from the Python SDK

* **Monty:** each run executes in a crash-isolated worker, from one pool of
  four that every workspace in the process shares. `os.chdir()`
  raises `RuntimeError`; use `cd` in the shell or the run's `ctx.cwd`. `os.stat()`
  has only the named fields (`st.st_size`).
* **QuickJS:** a `std` and `os` shim with the calls the
  [QuickJS](https://docs.mirage.strukto.ai/home/setup/runtime/quickjs.md) table lists. A write shows to other
  commands once the file is flushed or closed, or the run ends. A timeout stops the run, and the engine
  caps a run at 64 MiB of memory and 1 MiB of stack.
* **Pyodide** is in the TypeScript SDK only; WASI is in the Python SDK only.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.