> ## 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 that run Python and JavaScript inside Mirage.

A runtime is the interpreter that runs `python3` and `node` when a line has no
installed one to call. Every line runs on a [machine](https://docs.mirage.strukto.ai/home/setup/machine/overview.md),
and who answers `python3 app.py` depends on which:

| Machine | What runs `python3 app.py` |
| - | - |
| [`host`](https://docs.mirage.strukto.ai/home/setup/machine/host) | the host's own `python3` |
| a [container or sandbox](https://docs.mirage.strukto.ai/home/setup/machine/overview.md#providers), such as Docker or E2B | the `python3` installed in it |
| [`in_process`](https://docs.mirage.strukto.ai/home/setup/machine/in_process), the Mirage process itself | a runtime, an interpreter Mirage embeds |

The machine is where a program runs; the runtime is what runs it when that
place is Mirage. Its file calls reach the workspace's mounts directly, under
the same mount modes, permissions and policies as `cat`.

Mirage ships these:

| Runtime | Runs | SDK |
| - | - | - |
| ![](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/home/setup/runtime/monty.md) | `python3`, a Python subset | both |
| ![](https://mintcdn.com/struktoai/SF883ehuzv5QF1wx/images/webassembly-logo.svg?fit=max\&auto=format\&n=SF883ehuzv5QF1wx\&q=85\&s=bf9736a955b46d44d55c7769ce6b423e)[WASI](https://docs.mirage.strukto.ai/home/setup/runtime/wasi.md) | `python3`, CPython in WebAssembly | Python |
|  [Pyodide](https://docs.mirage.strukto.ai/home/setup/runtime/pyodide.md) | `python3`, CPython with packages such as numpy | TypeScript |
|  [QuickJS](https://docs.mirage.strukto.ai/home/setup/runtime/quickjs.md) | `node` and `js`, with Node.js's common APIs | both, not on Cloudflare Workers |

Name the runtime on an `in_process` entry:

```yaml theme={null}
machines:
  py:
    provider: in_process
    runtime: monty
  js:
    provider: in_process
    runtime: quickjs
```

A runtime takes only its own interpreter's names (`@python` or `@js` by
default); see [Captures](https://docs.mirage.strukto.ai/home/setup/machine/overview.md#captures). A
[`host`](https://docs.mirage.strukto.ai/home/setup/machine/host) or a
[provider](https://docs.mirage.strukto.ai/home/setup/machine/overview.md#providers) takes no runtime: it runs
the `python3` or `node` installed on it.

## Script CLIs

A [script CLI](https://docs.mirage.strukto.ai/home/configuration/workspace.md#cli-entries) names its
`machine`, `in_process` or `host`, and may name a runtime there. It runs on
the first entry of that machine that runs its language, or on the runtime it
names, whichever machine a line's `python3` goes to.

```yaml theme={null}
clis:
  pager:
    script: pager.py
    machine: in_process
  report:
    script: report.js
    machine: in_process
    runtime: quickjs
```

A script whose machine has no entry for its language exits 127 and names the
workspace's machines: `pager: no in_process machine runs python scripts
(workspace machines: 'js')`.


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