# Scripts and AI coding tools (/docs/agents) Noodle needs no plugin for a script or an AI coding tool. Everything is a command-line tool, a Unix socket or an HTTP endpoint, and the docs are available as plain text. ## Read the docs as text [#read-the-docs-as-text] | URL | What it is | | --- | --- | | [`/llms.txt`](/llms.txt) | An index of every docs page with its description. | | [`/llms-full.txt`](/llms-full.txt) | Every docs page in one Markdown file. | | `/docs/.md` | One page as Markdown, for example `/docs/cli.md` or `/docs/containers/quickstart.md`. | | `/llms.mdx/docs/.md` | The same page with imports resolved, as listed in `llms.txt`. | The Copy Markdown button on each docs page copies the same text. ## The `noodle` CLI [#the-noodle-cli] Start with status. It never starts the daemon or the VM, so it is safe to poll. ```sh noodle status --json ``` The output is one JSON object with `schemaVersion: 1`. `daemon.reachable` says whether the socket answers, `paths.socket` is the Docker socket, and `tools.docker.available` reports whether a Docker CLI was found. The exit code is 0 when the socket answers, 3 when it does not, and 1 on an encoding error. An unreachable daemon is still a valid snapshot. ```sh noodle doctor # report stale setup items noodle start # start the daemon docker --context noodle run --rm alpine:3.22 echo hello docker --context noodle compose up -d noodle logs linux -n 100 noodle diagnostics -o diag.tar.gz ``` Container, image, build and Compose commands go to `docker --context noodle`. An unknown `noodle` command prints the usage on stderr and exits 2. See the [CLI reference](/docs/cli/) for every command. ### Discover commands [#discover-commands] `noodle help --json` prints every command, its flags, whether it takes `--json` or asks for a confirmation, and the exit codes, as one JSON document with `schemaVersion: 1`. `noodle help` prints one group. Read it once instead of scraping the help text. ### Exit codes [#exit-codes] | Code | Meaning | | --- | --- | | `0` | success | | `1` | the operation failed, was declined or timed out | | `2` | usage error, or a confirmation was needed with no terminal and no `--yes` | | `3` | the engine is not running or not reachable | ### Output for scripts [#output-for-scripts] Without `--json`, output is for a person, on the same streams as always. With `--json`, stdout is one JSON document and every other line goes to stderr, so `noodle ... --json 2>/dev/null` leaves only the result. These commands carry `schemaVersion: 1`: `version`, `status`, `status --startup`, `doctor`, `tools status`, `update check`, `update status`, `machine status NAME`, `kubernetes start` and `status`, `runners list`, `status`, `repos`, `check`, `cache`, `doctor`, `clean` and `toolchains`, `diagnostics` and `import`. `machine list`, `model list`, `status`, `endpoint`, `catalog` and `network`, `builds list`, `image layers`, `scan`, `proxy`, `names`, `link` and `pod` keep the shape they had before, which may be a bare array or a shape the app reads, so they have no `schemaVersion`. An error is still a non-zero exit with a message on stderr. Nothing waits for a person unless it runs on a terminal: every confirmation takes `--yes` (`-y`, `-f` and `--force` also work). See [Exit codes](/docs/cli/#exit-codes) and [JSON output](/docs/cli/#json). ## The Docker API [#the-docker-api] Noodle serves the Docker Engine API on a Unix socket. By default it is `~/.noodle/run/docker.sock` with mode 0600, and `noodle status --json` prints the real path. Any Docker client reaches it: ```sh docker --context noodle ps DOCKER_HOST=unix://$HOME/.noodle/run/docker.sock docker ps curl --unix-socket ~/.noodle/run/docker.sock http://localhost/containers/json ``` Setup makes the `noodle` context the default when no other engine is running; `noodle setup --use` forces it and `--no-use` never switches. An engine already in use is left untouched. ## The model endpoint [#the-model-endpoint] ```sh noodle model serve qwen3.5-4b noodle model endpoint ``` The endpoint is OpenAI-compatible at `http://models.noodle.local/v1`, with a bearer key that stays the same until you run `noodle model key --rotate`. See [Local API](/docs/models/api/). ## Skills [#skills] Noodle ships no MCP server. The repository has four skills in [`.claude-plugin/skills`](https://github.com/ansumanshah/noodle/tree/main/.claude-plugin/skills): `noodle` picks the part, and `noodle-containers`, `noodle-models` and `noodle-runners` cover one each. A skill is a plain Markdown file, so any coding tool that reads skills can use them. Copy the four folders into the place your tool reads skills from, for example `.claude/skills/` or `.agents/skills/` in your project. # Benchmarks (/docs/benchmarks) These are measurements from Noodle running on one Mac. See the [ten-container CPU and memory comparison](/benchmarks/resources/) for host resource use while containers are idle. The fresh-boot comparison uses three distinct Linux boots per engine. Each pass measures macOS physical footprint for the engine and VM helper while ten Alpine containers are running. Warm startup is timed after those containers are removed. The [raw fresh-boot samples](/data/fresh-boot-resources.json) include the boot IDs. The earlier five-engine results are shown separately. ## Method [#method] - Run one engine at a time on the same Mac. Record the build, client version, image, CPU count, memory limit and system load. - Measure warm container startup through the Docker CLI and directly through the Docker API. Keep bridge and `--network none` separate. - Record 30 startup samples after five warm-ups. Report p50, p95 and any failures. - Measure cold boot and wake separately through the first successful Docker operation. The wake check verifies that the guest released its disk and booted again. - Use macOS `footprint` for the host daemon, VM helper and app. Keep those figures separate from guest RSS and the size of the guest executable. - Use isolated Docker settings and runtime homes. Match VM limits before comparing engines. ## The edit loop [#the-edit-loop] | Measure | What is timed | | --- | --- | | Bind-mount round trip | A save in a bind-mounted Mac folder until a container reads the new contents. | | Warm rebuild | A one-line change followed by a rebuild with a warm cache. | | Compose rebuild | A change and `docker compose up -d --build` until the published port serves the new response. | ## Noodle-only results [#noodle-only-results] Recorded on an Apple M4 Mac mini with 16 GiB RAM and macOS 27.2. The VM used two CPUs, 8 GiB RAM and the custom Linux 6.18.60 kernel. The startup image was `alpine:3.20`, and the Docker CLI was 29.9.3. All timed samples in the table completed. | Workload | Samples | p50 | p95 | | --- | ---: | ---: | ---: | | Warm CLI `docker run --rm alpine true` | 30 | 15.91 ms | 18.00 ms | | Bridge API create, start, wait and remove | 30 | 2.37 ms | 3.76 ms | | No-network API create, start, wait and remove | 30 | 2.03 ms | 3.20 ms | | Compose rebuild to new HTTP response | 5 | 989.07 ms | 1049.36 ms | Read the [raw samples and build identifiers](/data/benchmarks-qa.json) for this run. The [previous data file](/data/benchmarks.json) retains earlier observations. ## Same Mac, four engines [#same-mac-four-engines] Noodle against Kiri 0.2.2, OrbStack and Docker Desktop on one M4 Mac mini with macOS 27.2.1. Every engine got 4 vCPUs and 2048 MiB. Each row is the p50 of 30 runs after five warm-ups, over three passes in alternating order, and each cell is the median of the three per-pass p50s. A win needs non-overlapping 95 percent intervals, a gap above 5 percent and the same direction in every pass; anything else is a tie. Load on the Mac was high at times, so treat small gaps as noise. [Raw results](/data/engines.json). | Test | Noodle | Kiri 0.2.2 | OrbStack | Docker Desktop | Result | | --- | ---: | ---: | ---: | ---: | --- | | `docker run`, bridge | 14.97 ms | 48.10 ms | 171.61 ms | 130.31 ms | Noodle | | `docker run --network none` | 14.27 ms | 13.62 ms | 106.24 ms | 97.18 ms | Noodle and Kiri tie | | API lifecycle, bridge | 1.99 ms | 43.70 ms | 151.62 ms | 111.00 ms | Noodle | | API lifecycle, no network | 1.75 ms | 1.74 ms | 82.21 ms | 70.61 ms | Noodle and Kiri tie | | Parallel starts | 161.36/s | 26.51/s | 11.04/s | 13.33/s | Noodle | | Cold pull (network) | 2539.81 ms | 896.03 ms | 3595.07 ms | 3591.59 ms | Kiri, 2.8× faster | | `docker build`, uncached and cached | failed | 525.13 / 460.80 ms | 670.31 / 231.56 ms | 423.59 / 151.58 ms | Noodle failed | The builds failed because that test build pointed at a BuildKit download that did not exist. They were not retried. Wake from sleep took 452.9 ms on Noodle and 340.3 ms on OrbStack, a tie under the rule. Kiri and Docker Desktop never slept their VM, so their wake was not measured. Idle, after its VM slept, Noodle's daemon used 8.6 MB of physical memory and nothing else stayed resident. Kiri's daemon used 15 MB and its 263 MB VM helper stayed up. A separate check after the full benchmark measured Noodle's daemon at 6.47 to 6.74 MB ([raw samples](/data/daemon-footprint.json)). Against the targets Noodle sets from Kiri's published numbers: bridge API latency and daemon memory are met. `docker run` through the CLI (about 14.3 to 15.0 ms against 14.2 ms), the no-network API (1.57 to 1.76 ms against 1.26 ms) and wake (0.41 to 0.48 s across three passes against 0.15 s) are not. Guest agent memory has not been measured. ## Models against Ollama [#models-against-ollama] Qwen3 0.6B as the same Q4_K_M GGUF file on both engines, on the same M4 Mac mini, one engine at a time, 30 requests per prompt class after five warm-ups. The figures are the mean of two rounds' p50. | Measure | Noodle | Ollama 0.40.16 | | --- | ---: | ---: | | First words on a long prompt | 312.4 ms | 327.9 ms | | Decode speed | 128.9 tokens/s | 169.0 tokens/s | | Memory after replies | 1974 MB | 926 MB + 13 MB server | Noodle gave the first words slightly sooner in both rounds. Ollama decoded about 1.3× faster and used about half the memory. The Mac was busy with other work during the runs, so read the decode gap as indicative. Noodle's runtime reserved four 4096-token context sequences against Ollama's one slot. [Raw results](/data/models-vs-ollama.json). # CLI (/docs/cli) `noodle` manages the runtime, models and runners. Docker commands go to the real `docker` CLI with `--context noodle`. Run `noodle help` for the groups, `noodle help` for one group, or `noodle help --json` for the whole table as JSON. A group with no subcommand prints its help and exits 0, the same as `noodle help`. `noodle names`, `proxy` and `link` run their own bare form instead. Each command here is generated from that table. | Command | What it does | | --- | --- | | `noodle setup [--use] [--no-use] [--tools] [--path] [--no-start]` | install clients and the Docker context | | `noodle doctor [--fix] [--json]` | report or repair stale installation items (`--json`) | | `noodle tools install [name...] [--no-link]` | download the pinned tools | | `noodle tools status [--json]` | show which tools are present (`--json`) | | `noodle tools remove` | remove the installed tools | | `noodle update check [--json]` | look for a newer signed app (`--json`) | | `noodle update stage` | download and verify an update | | `noodle update install [--yes]` | install the staged update (asks first; `--yes` skips) | | `noodle update confirm` | confirm a started update | | `noodle update rollback [--yes]` | return to the previous app (asks first; `--yes` skips) | | `noodle update status [--json]` | show the update state (`--json`) | | `noodle uninstall [--delete-data] [--yes]` | remove the installation; --delete-data also removes data (asks first; `--yes` skips) | | `noodle status [--json] [--startup]` | engine, socket and context summary (`--json`) | | `noodle start` | start the Noodle engine | | `noodle stop` | stop the Noodle engine | | `noodle kube play [--down]` | run a Kubernetes YAML file as containers | | `noodle kube generate ` | write Kubernetes YAML for a container or pod | | `noodle kubernetes start [--api-port N] [--ports LIST] [--timeout SECONDS] [--json]` | create or start the cluster (`--json`) | | `noodle kubernetes stop` | stop the cluster | | `noodle kubernetes status [--json]` | cluster state (`--json`) | | `noodle kubernetes delete [--yes]` | delete the cluster (asks first; `--yes` skips) | | `noodle kubernetes kubeconfig` | print the kubeconfig path | | `noodle kubernetes use-context [--remove] [--kubeconfig PATH]` | select the cluster in kubectl | | `noodle kubernetes shared-folders [on\|off]` | share approved folders with the cluster | | `noodle model catalog [--json]` | models you can pull (`--json`) | | `noodle model list [--json]` | installed models (`--json`) | | `noodle model pull [--progress-json]` | download a model | | `noodle model import ` | add a local model file or folder | | `noodle model run [prompt] [--keep-alive DURATION]` | chat with a model; reads the prompt from stdin when none is given | | `noodle model serve [--port PORT] [--workloads IPV4] [--keep-alive DURATION]` | serve a model over HTTP | | `noodle model stop` | stop the running model | | `noodle model status [--json]` | running model and URL (`--json`) | | `noodle model endpoint [--json]` | base URL and API key (`--json`) | | `noodle model rm ` | delete a model | | `noodle model logs` | model runtime logs | | `noodle model location [folder] [--reset]` | show or move the models folder | | `noodle model keep-alive [duration] [--reset]` | show or set the idle unload time | | `noodle model key [--rotate]` | print the API key | | `noodle model network [on\|off\|--json]` | show or set LAN access (`--json`) | | `noodle names list [--json]` | names the engine serves (same as `noodle names`) (`--json`) | | `noodle names add ` | name a process on this Mac | | `noodle names remove ` | remove a host name | | `noodle names ca [localhost\|noodle.local]` | print the local CA path | | `noodle names trust [localhost\|noodle.local]` | trust the local CA (macOS asks for a password) | | `noodle names untrust [localhost\|noodle.local]` | remove trust for the local CA | | `noodle dev [name] [--] ` | run a host dev server at a named localhost URL | | `noodle share list` | approved folders | | `noodle share add ` | approve a folder | | `noodle share remove [--restart]` | revoke a folder | | `noodle runners add [owner/repo] [--macos] [--allow-public]` | add a repository | | `noodle runners remove ` | remove a repository | | `noodle runners list [--json]` | repositories and state (`--json`) | | `noodle runners pause ` | pause a repository | | `noodle runners resume ` | resume a repository | | `noodle runners cache [--json]` | cache sizes (`--json`) | | `noodle runners cache clear ` | clear a repository cache | | `noodle runners repos [--json]` | repositories you can add (`--json`) | | `noodle runners check [--json]` | check a repository's setup (`--json`) | | `noodle runners start` | start the runner helper | | `noodle runners stop` | stop the runner helper | | `noodle runners status [--json]` | helper state, holds and start failures (`--json`) | | `noodle runners doctor [--json]` | check this Mac can run jobs, read-only (`--json`) | | `noodle runners clean [--dry-run] [--older-than DAYS] [--json]` | free disk Runners used (`--json`) | | `noodle runners toolchains [--json]` | build tools a macOS job sees (`--json`) | | `noodle proxy [--json]` | show the proxy settings (JSON) (`--json`) | | `noodle proxy set --stdin` | replace the proxy settings from JSON on stdin | | `noodle logs [engine\|linux\|privileged] [-n N] [--tail N] [--grep TEXT] [-f] [--follow] [--raw]` | component logs | | `noodle diagnostics [--list] [-o FILE] [--output FILE] [--json]` | write a scrubbed archive (`--json`) | | `noodle migrate-disk [--dry-run]` | back up and convert an old data disk | | `noodle import [--list] [--images] [--volumes] [--containers] [--all] [--only a,b] [--on-conflict skip\|overwrite\|rename] [--retries N] [--dry-run] [--json]` | copy from another engine (`--json`) | | `noodle pod create [--name NAME] [--publish SPEC] [-p SPEC] [--label KEY=VALUE] [-l KEY=VALUE] [--share net] [--json]` | create a pod (`--json`) | | `noodle pod ps [--json]` | list pods (`--json`) | | `noodle pod inspect [--json]` | show a pod (`--json`) | | `noodle pod start [--json]` | start a pod (`--json`) | | `noodle pod stop [--json]` | stop a pod (`--json`) | | `noodle pod restart [--json]` | restart a pod (`--json`) | | `noodle pod rm [-f] [--force] [--json]` | remove a pod (`--json`) | | `noodle pod logs [--json]` | pod logs (`--json`) | | `noodle pod top [--json]` | pod processes (`--json`) | | `noodle container edit [--env K=V] [--unset-env K] [--publish SPEC] [--unpublish SPEC] [--restart] [--dry-run]` | change env, ports or restart | | `noodle container ports [--json]` | published ports (`--json`) | | `noodle machine create [--distro ubuntu\|alpine] [--image REF] [--cpus N] [--memory SIZE] [--disk GiB] [--share PATH] [--systemd]` | create a machine | | `noodle machine list [--json]` | list machines (`--json`) | | `noodle machine start ` | start a machine | | `noodle machine stop ` | stop a machine | | `noodle machine restart ` | restart a machine | | `noodle machine shell [name] [-- command...]` | open a shell or run one command | | `noodle machine delete [--yes]` | delete a machine (asks first; `--yes` skips) | | `noodle machine status [--json]` | machine state (`--json`) | | `noodle builds list [--json]` | build history (`--json`) | | `noodle builds inspect ` | one build (JSON) | | `noodle builds logs ` | build logs | | `noodle builds rm \|--all` | remove a build record | | `noodle image layers [--json]` | image layers (`--json`) | | `noodle scan [image] [--json] [--fail-on SEVERITY] [--history] [--clear-cache]` | scan an image for vulnerabilities; the image is optional with --history and not allowed with --clear-cache (`--json`) | | `noodle sbom [--output FILE]` | CycloneDX bill of materials (JSON) | | `noodle link [--yes] [--allow-privileged] [--json]` | open a public HTTPS link (`--json`, asks first; `--yes` skips) | | `noodle link list [--json]` | active links (`--json`) | | `noodle link stop \|--all` | stop a link | | `noodle finder mount [mountpoint\|--serve-only]` | mount the read-only view | | `noodle finder unmount` | unmount the view | | `noodle finder status` | mount state (JSON) | | `noodle debug boot-console [--disable]` | print the captured boot console | | `noodle debug run [args...]` | one throwaway VM | | `noodle debug bench [--run [IMAGE]]` | latency of the API, optionally of `docker run` | | `noodle version [--json]` | print the version (`--json`) | | `noodle help [command\|--json]` | print help, or the help of one command (`--json`) | ## Notes on commands [#notes-on-commands] - **setup**: sets up clients, the Docker context and the LaunchAgent. It selects the Noodle context when no other engine is running; `--use` forces it and `--no-use` never does. `--tools` prefetches plugins. - **uninstall**: removes Noodle-owned setup items. Data is kept unless you pass `--delete-data`. - **status**: `noodle status --startup` reports Docker API, VM and guest readiness. See [Status for scripts](#status). - **tools**: manages the pinned Docker clients and BuildKit. - **model**: `location []` or `location --reset` sets where models install. `keep-alive []` or `keep-alive --reset` saves how long a model stays loaded. `key [--rotate]` prints or replaces the API key. `network [on]`, `network off` or `network --json` lets other devices use your models. GGUF `run` and `serve` accept `--keep-alive`; `serve` also accepts `--port` and `--workloads`. - **proxy**: reads or changes the registry proxy and the optional environment for new containers. - **import**: copies from a Docker context, a Unix socket or a running `podman` machine. Stop volume writers before copying. - **share**: manages approved absolute folders for file binds. `remove --restart` ends access for the privileged VM and the Kubernetes node now, instead of at their next restart. - **machine**: see [Machines and raw VMs](/docs/containers/machines/). - **pod**: add members with `docker run`, see [noodle pod](/docs/containers/#pod). - **runners**: see [Runners](/docs/runners/). `doctor` checks that this Mac is ready, see [Check this Mac](/docs/runners/doctor/). `clean` frees disk tier by tier and never asks; it exits 1 if a deletion failed. - **image**, **container**: `noodle image layers` and `noodle container edit|ports` are the only subcommands. Use `docker --context noodle image` and `docker --context noodle container` for the rest. - **logs**: `--raw` disables secret redaction. For a container's logs use `docker --context noodle logs NAME`. - **scan**: `--history [IMAGE]` shows scan history and `--clear-cache` clears it. Set VM CPUs and memory in the app, or in `~/.noodle/vm.json` with `cpus` and `memory_mib`. `NOODLE_HOME` changes that directory; `NOODLE_CPUS` and `NOODLE_MEMORY_MIB` override the file. Set `"host_loopback": false` in the same file to disable the relay at the next daemon start. ## Docker commands [#docker-commands] Noodle does not wrap `docker`. An unknown `noodle` command points you to `docker --context noodle`. If you selected Noodle as the default context with `noodle setup --use`, plain `docker` commands also target it: ```sh docker --context noodle run -d -p 8080:80 nginx docker run -d -p 8080:80 nginx ``` The socket path is printed by `noodle status`. ## Container logs and the Mac [#container-logs-and-the-mac] Log rotation follows Docker. `--log-opt max-size=10k --log-opt max-file=3` keeps at most three files per container, `docker logs` reads them in order, `--tail` and `--follow` work across a rotation, and bad values are refused with exit 125. Without the options nothing is rotated. The `local` driver takes the same options. Inside an ordinary container on a non-internal network, `host.docker.internal` and `--add-host name:host-gateway` reach Mac loopback TCP services through a relay by default. Noodle's own loopback listeners are protected. Internal networks, UDP and privileged containers in the workload VM do not use the relay. Setting `host_loopback` to `false` restores NAT-only reach. ## Exit codes [#exit-codes] Every group uses the same codes. Usage and unknown-command text goes to stderr. | Code | Meaning | | --- | --- | | `0` | success | | `1` | the operation failed | | `2` | usage error, a confirmation needed with no terminal and no --yes, or (scan --fail-on) a finding at or above the threshold | | `3` | the engine is not running or not reachable | A declined confirmation, a timeout and a failed operation all exit 1. A command that needs a confirmation but has no terminal exits 2 and names the flag: pass `--yes` (`-y`, `-f` and `--force` also work). `noodle kubernetes status` and `noodle status` exit 3 when the engine or cluster is not running. The `--json` form of `kubernetes status` always exits 0 and reports the state in the document. `noodle scan --fail-on` exits 2 when a finding meets the threshold. A few exit codes come from outside Noodle. A command that runs `docker`, `kubectl` or `noodle-machine` exits 127 when that program is missing and 126 when it cannot be run. `noodle machine shell` exits 255 when it loses the connection to the machine. `noodle names trust` and `untrust` exit 1 when the macOS `security` tool fails. ## JSON output [#json-output] Without `--json`, output is for a person, on the same streams as always. With `--json`, stdout is one JSON document and progress, status chatter and failure messages go to stderr. These commands print a document with `schemaVersion: 1`: `version`, `status`, `status --startup`, `doctor`, `tools status`, `update check`, `update status`, `machine status NAME`, `kubernetes start` and `status`, `runners list`, `status`, `repos`, `check`, `cache`, `doctor`, `clean` and `toolchains`, `diagnostics` and `import`. `machine list`, `model list`, `status`, `endpoint`, `catalog` and `network`, `builds list`, `container ports`, `image layers`, `scan`, `proxy`, `names`, `link` and `pod` take `--json` too but keep the shape they had before, which may be a bare array or a shape the app reads, so they have no `schemaVersion`. An error with `--json` is still a non-zero exit with a message on stderr; there is no JSON error envelope. `noodle model run` reads prompts from piped standard input and answers on stdout, so it works in a pipe; it never prompts for a confirmation. ## Status for scripts [#status-for-scripts] `noodle status --json` prints one JSON object with `schemaVersion: 1` and never starts the daemon or the VM. - `daemon.reachable` is true when the socket answers `/_ping`. It does not say whether the VM is running. - `paths.data`, `paths.socket` and `paths.launchAgent` are the resolved paths. - `tools.docker.available` and `tools.docker.path` report whether a Docker CLI was found. It exits 0 when the socket answers, 3 when it does not, and 1 on an encoding error. An unreachable daemon is still a valid snapshot. # Install (/docs/install) Open Noodle. It opens on Models, which needs no further setup: pick a model, press Run and start chatting. See the [Models quickstart](/docs/models/quickstart/). The first time you open Containers, the setup sheet appears. It finds Docker tools, asks which engine to use, offers to copy existing Docker data and runs a test container. You can skip it and reopen it from **Noodle > Set Up Noodle…**. [Download Noodle 26.11.1](https://github.com/ansumanshah/noodle/releases/download/v26.11.1/Noodle-26.11.1.dmg) (`Noodle-26.11.1.dmg`), open the disk image and drag Noodle to Applications. Or install it with Homebrew: ```sh brew install --cask ansumanshah/tap/noodle ``` Homebrew 7 asks you to trust a third-party tap first. If it refuses, run `brew trust ansumanshah/tap` and repeat the install. ## Requirements [#requirements] - An Apple silicon Mac running macOS 26 or later. - Models need disk space for each model you download, from 0.35 GB for the smallest to 3.06 GB for the default chat model. See the [catalog](/docs/models/catalog/). - Setup downloads the Docker CLI automatically when no compatible CLI is installed (19.6 MB). Setup reuses compatible tools already on the Mac. Compose and Buildx download on the first `docker compose`, `docker buildx` or `docker build` command. Setup leaves existing plugins in place. Each download is the real upstream tool, verified against its pinned checksum. For offline preparation, `noodle setup --tools` prefetches missing clients, including deferred plugins; `noodle tools install` installs all the pinned clients. See [first-use downloads](/docs/containers/images/#downloads) for sizes. ## Availability [#availability] Noodle 26.11.1 is on [GitHub releases](https://github.com/ansumanshah/noodle/releases). Follow the [release feed](/releases.xml) for new versions. ## Set up [#set-up] The app handles setup, starts Noodle and checks its first container. After **Hello from Noodle**, copy the Compose command to start your own project. For terminal setup, `noodle setup` adds a `noodle` Docker context and a LaunchAgent. Setup makes Noodle your Docker context when no other engine is running; otherwise add `--context noodle` or run `noodle setup --use`. `noodle setup --no-use` never switches it. ```sh noodle setup --no-use noodle start noodle status --startup ``` Use [Quickstart](/docs/containers/quickstart/) to run a container. See [CLI status for scripts](/docs/cli/#status) for JSON status. ## Uninstall [#uninstall] Choose **Noodle > Uninstall Noodle…**, or open **Settings > Diagnostics > Uninstall Noodle…**. It stops Noodle, removes its LaunchAgents, Docker context, owned CLI copies and links, PATH block, socket and setup receipt. If Noodle is selected, the app restores the context saved by app setup when it still exists, otherwise `default`. Data stays unless you check **Also delete containers, images and volumes**, which also deletes downloaded tools and models. Review the result, quit, then move the app to the Trash. The other panes are in [Settings](/docs/settings/). From the terminal: ```sh noodle uninstall ``` This removes Noodle-owned setup items and keeps data. If Noodle was selected, the CLI returns Docker to its default context. To delete Noodle data too, use `noodle uninstall --delete-data --yes`. This deletes every file in the displayed data folder, including files you placed there. Files outside it and keychain trust stay in place. Stop Linux machines before uninstalling. Data deletion requires Noodle’s data-folder marker and refuses your home directory, its parents and `/`. For an older unmarked installation, run `noodle setup` before retrying data deletion. If shell-profile cleanup fails, fix the reported file and retry. Noodle keeps the cleanup receipt until that succeeds. ## Old experimental disks [#old-experimental-disks] Noodle leaves older data disks without an ext4 journal untouched. Follow the [disk migration guide](/docs/troubleshooting/#migrate-disk) to check the disk and keep a backup. # Security (/docs/security) This page lists the boundary as built, the defaults, and the checks we ran. It also lists what we have not checked. ## The boundary [#the-boundary] Ordinary containers run inside one Linux VM under Virtualization.framework. They share that VM's kernel. A kernel bug in the VM could cross between containers. The Mac is separated from the VM by the hypervisor. Privileged and unconfined containers run in a second VM, described below. ## Defaults [#defaults] - Noodle shares no Mac folder by default. An explicit directory bind attaches that directory. Use `noodle share add` to approve the containing folder for a single-file bind. - A single-file bind mount shares its containing folder with the VM, siblings included. Read-only applies to the container's mount, not to everything the VM can see. - Ordinary containers and builds are denied `socket(AF_VSOCK)` and `io_uring_setup`. Listeners in the guest accept only the host. - Capability selection, `no-new-privileges`, read-only roots, memory, CPU and PID limits all passed in the compatibility suite. ## Privileged containers run in a second VM [#privileged-containers-run-in-a-second-vm] A container that asks for `--privileged` or `seccomp=unconfined` runs in a separate workload VM. It boots on the first such start and sleeps when nothing in it runs. Full `CAP_SYS_ADMIN` in the shared VM could expose folders already attached to it, so privileged work goes where no Mac folder is attached. The Docker CLI cases for it passed. - Bind mounts from the Mac are refused for these containers unless "Let Kubernetes use your shared folders" is on (the default for new Kubernetes clusters). With it on, only folders you approved with `noodle share add` can be bound. Volumes and tmpfs always work. - Named volumes and networks exist once per VM. A privileged container and an ordinary one cannot share a volume or reach each other over a Docker network. Published ports connect them. - `docker exec --privileged` works only in a container that already runs in the workload VM. ## Models on your network [#models-on-your-network] The model endpoint listens on this Mac only. `noodle model network on`, or the Network switch in Settings, lets other devices on your local network use it. It is off by default. - Every request needs the API key, except `GET /health` and CORS preflight requests. `noodle model key` prints it and `noodle model key --rotate` replaces it, which cuts off every device holding the old one. - The connection is plain HTTP. Anyone on the same network who can watch traffic can read the prompts and the key. Turn it on only at home or on a network you trust. - Prompts from other devices run on this Mac and use its memory. ## Images and builds [#images-and-builds] - Layers are checked for digest, exact size and unpacked digest before they are published. - Archive extraction stays inside its target and rejects path traversal, bad whiteouts and device entries. - The BuildKit helper runs only while a build does. Concurrent builds get separate sessions, and a test confirmed two builds kept their own secrets. - An imported build must match the expected configuration digest before it is published. ## Disks and crashes [#disks-and-crashes] New data disks are journaled ext4, formatted by upstream `mke2fs` 1.47.4. Noodle refuses an older disk without a journal and leaves it unchanged. After a hard kill of the daemon during a busy write, a synced canary on a named volume survived and the next container ran. We have not tested a power cut. Writes a program had not synced can be lost. ## Not tested yet [#not-tested-yet] - An independent review of the workload VM and its device policy. - Behaviour on a clean macOS 26 install. Most visual checks ran on macOS 27. - Isolation against deliberately hostile workloads. Do not treat Noodle as a sandbox for code you do not trust. # Settings (/docs/settings) Open Settings with Command-comma. Panes are listed in the order the window shows them. ## Resources [#resources] Sizes for the Linux VM that runs your containers. - **CPUs.** From 1 up to the CPUs on your Mac. Default: half your CPUs, at least 2 and at most 8. - **Memory.** From 512 MiB up to half your RAM, in 256 MiB steps. Default: a quarter of your RAM, between 1 GiB and 4 GiB. - **New data disk.** Default 64 GiB. It applies only when Noodle creates a new data disk; an existing disk keeps its size. - **Save**, **Save and Restart**, **Revert.** CPU and memory changes apply the next time the VM starts. ## File Sharing [#file-sharing] - **Approved folders.** Mac folders you approve for single-file binds and, when the Kubernetes option below is on, for privileged and Kubernetes containers. An ordinary container can bind any directory without approval. None by default. **Add Folder…** and **Remove** match `noodle share add` and `noodle share remove`. A removed folder affects new containers; stop running ones to end their access. - **Let Kubernetes use your shared folders.** Lets pods and privileged containers reach the approved folders through `hostPath`. Off until the first `noodle kubernetes start` turns it on. Changing it restarts the workload VM. See [Kubernetes](/docs/containers/#kubernetes). ## Docker [#docker] - **Docker CLI.** Shows where plain `docker` commands go. **Context** and **Switch Context** pick the Docker context. `DOCKER_HOST` or `DOCKER_CONTEXT` set in a shell still wins. - **Builder.** Picks the Buildx builder for the current context. It affects `docker buildx build`; plain `docker build` uses the engine's default builder. - **Signed-in registries.** Lists the sign-ins found in your Docker configuration, with **Sign Out…** for each. Sign-ins held by a credential helper may not appear. - **Sign in.** Opens the token page for GitHub Container Registry or Hugging Face, checks the token you paste and saves it. For GitHub, a switch adds repository access so the token also serves `git clone` and [runners](/docs/runners/). Amazon ECR has no token page, so the pane shows the `aws ecr get-login-password` command to copy. - **Build cache.** **Check Cache Usage** and **Clear Unused Cache…** run `buildx du` and `buildx prune` on the engine's default builder. Images and containers stay. ## Network [#network] - **Local names.** Shows `noodle names`. A running container with a web port gets a `.localhost` name. See [networking](/docs/containers/networking/). - **Public links.** Lists links made with `noodle link CONTAINER`, with **Copy URL** and **Stop**. Anyone with a link can connect. - **Finder view.** Switch for the read-only Finder mount of container files and volumes, like `noodle finder mount`. Shows the status, **Open in Finder** and **Mount**. Off by default. - **Proxy.** Mode **System** (default), **Custom** or **Off**. Custom takes one `http://` proxy URL and a comma-separated skip list. **Pass proxy to new containers** is off by default. **Test Connection** asks Docker Hub about one small image and downloads nothing. The same settings are available as `noodle proxy`. ## Models [#models] Model folder, how long a model stays loaded (default 5 minutes), **Unload Now**, and the switch that lets other devices use your models (off by default), with its address and key. See [model settings](/docs/models/settings/). ## Import [#import] Copies data from another running engine. Pick the **Source engine**, tick tagged images, volumes and stopped containers, then **Copy to Noodle**. Start the source engine first. Existing names are skipped and the source data stays in place. **Refresh Sources** rescans. The terminal form is `noodle import`; see [migrating](/docs/containers/migrating/). ## Appearance [#appearance] - **Terminal theme.** Default GitHub. - **Container logs.** Font size 10 to 18 pt (default 12) and **Show timestamps** (on by default). - **Shortcut.** **Open Models chat with Control-Option-Space** works from any app. On by default. ## Diagnostics [#diagnostics] - A log viewer for the engine, the Linux VM and the privileged containers VM, with search and **Refresh**. It shows the latest 200 lines with secrets removed. - **Save Report…** writes `Noodle Diagnostics.tar.gz` with logs, settings and versions, secrets removed. Nothing is uploaded. It runs `noodle diagnostics`. - **Uninstall Noodle…** See [Install](/docs/install/#uninstall). ## Updates [#updates] Shows the version and status. **Check Now** looks for an update, and **Restart to Update** installs a verified one. **Check for updates automatically** is on by default and checks every six hours while the Noodle window is open. When it is off, only **Check Now** contacts the update server. See [updates](/docs/troubleshooting/#updates). # Troubleshooting (/docs/troubleshooting) ## First run [#first-run] ### No network [#no-network] Setup needs a network connection to download missing Docker tools and pull its test image. Reconnect, then choose **Try Again**. You can choose **Skip for Now** and return through **Noodle > Set Up Noodle…**. Already verified tools stay on disk. ### Disk full [#disk-full] Free space on the volume containing Noodle’s data folder, `~/.noodle` by default, then choose **Try Again**. `NOODLE_HOME` can move that folder for terminal use. Setup keeps existing containers and images when a download fails. ### Docker CLI missing [#docker-cli-missing] Reopen setup and allow the Docker tool download, or install compatible Docker tools yourself before retrying. From a terminal, `noodle setup --tools` downloads checksum-verified tools. If only Compose is missing, run `noodle tools install docker-compose`, then check `docker --context noodle compose version`. ### PATH not applied [#path-not-applied] Open a new Terminal window after setup updates your profile. If `docker` is still missing, add this to your shell profile, then open another Terminal window: ```sh export PATH="$HOME/.local/bin:$PATH" ``` Setup can update zsh and bash profiles when you allow it. Other shells need their own PATH syntax. Use `command -v docker` to check which executable your shell finds. If it finds a broken executable ahead of Noodle’s link, correct that PATH entry and retry setup. ### Reopen setup [#reopen-setup] Choose **Noodle > Set Up Noodle…** at any time. After **Not Now** or **Skip for Now**, the empty Containers page and sidebar card also offer **Set Up Noodle…** until setup finishes. After ten seconds, the apply step shows elapsed time and whether it is waiting for the Docker socket or `docker version`. For a persistent startup failure, use the commands below. A Compose check failure on the finished page never disables **Done**. ## Find where startup stopped [#find-where-startup-stopped] If the Containers window shows **Connection lost**, it keeps the last loaded list visible. Use **Retry Connection** to check the engine again. The Logs tab reloads once the connection returns. ```sh noodle status --startup noodle logs engine -n 30 noodle doctor ``` The Docker API can answer while the VM is asleep. The startup status shows whether the VM has started and whether its Linux connection is ready. A container start can boot the VM when needed. If Doctor reports a stale Noodle socket or another setup item it can repair, run `noodle doctor --fix`. ## Updates [#updates] **Status:** no app update feed is published, so the updater is off in the current build. Upgrade with `brew upgrade --cask noodle` or download the new disk image. ### What it does once a feed exists [#what-it-does-once-a-feed-exists] - The app checks every six hours while automatic checks are on. A check that came due while the Mac slept runs once on wake, not repeatedly. The timer tolerates 15 minutes of drift and does not exist while the setting is off. - Turning automatic checks off in the Updates tab cancels the timer and any running automatic check. The manual check button still works. - A feed entry is accepted only if its Ed25519 signature is valid for that exact version, build, architecture and minimum macOS, the build is newer than the running one, and the artifact matches its signed length and SHA-256. Feeds are capped at 64 KB and artifacts at 2 GiB, over HTTPS only. - The staged app must be named `Noodle.app`, carry the same bundle ID and signing team as the running one, and have a valid code signature. - Install stops the daemon, swaps the app atomically and keeps the previous one. The new app confirms itself after 30 healthy seconds. After two launches without confirmation, the third restores the previous app. ### Command line [#command-line] ```sh noodle update check noodle update stage noodle update install noodle update confirm noodle update rollback noodle update status ``` The commands read the feed address and release key from the app's `Info.plist`. Without them, or without `--feed-base` and `--public-key`, they stop with `updates are not configured`. `install` acts on the app that contains the `noodle` binary, or on `--app PATH`. When containers are running, `install` and `rollback` ask before they stop the engine. Without a terminal they refuse unless you pass `--yes`. **Checked:** the Swift unit tests (`UpdateTests.swift`, `UpdatePolicyTests.swift`) passed with the rest of `swift test`, and `tests/update.sh` passed 14 of 14 against a local feed with ad-hoc signed test apps. **Not verified:** no real update between two signed builds has been done, and updating a Developer ID signed, notarized build to a later version has not been tried. ## noodle migrate-disk [#noodle-migrate-disk] Older experimental homes have a data disk (`~/.noodle/data.img`) without an ext4 journal. The daemon refuses to use one and prints the exact `migrate-disk` command, including `NOODLE_HOME` when it is not the default. ```sh noodle stop noodle migrate-disk --dry-run noodle migrate-disk ``` - `--dry-run` reports the space needed and available and changes nothing. You need the data actually stored in the old disk plus 80 MiB free on the same volume. - The daemon must be stopped. A running daemon or a second migration blocks it. - The original is never written to. Noodle copies it sparsely to `data.img.migrating`, compares the copy byte for byte, runs `e2fsck -p` on the copy (up to four passes), adds a 16 MiB journal, and runs a read-only check. Only then does `data.img` point at the copy. The original stays as `data.img.legacy-backup`, a hard link that costs no extra space. - Noodle never deletes the backup. Delete it yourself when you are satisfied. - If the process dies mid-copy, the original is unchanged and the disk is still refused. Run the command again. - A disk that already has a journal prints a message and exits. A file that is not ext4 is left untouched and reported. **Checked:** `tests/migrate-disk.sh` (which kills a migration mid-copy and then retries) passed, and `DiskMigrationTests` passed in the same `swift test` run. **Not verified:** a home written by the retired formatter after real use, and host power loss during a migration. # Images and builds (/docs/containers/images) Local image builds, build history, vulnerability scans, and a list of every file Noodle fetches after install, with what triggers it. ## Building and BuildKit [#building-and-buildkit] ```sh docker --context noodle build -t local/demo . docker --context noodle compose build docker buildx build --load -t local/demo . ``` The first native build pulls `moby/buildkit` v0.35.0 (linux/arm64, pinned by digest, so the pull is checked) and starts it inside the VM. It stops after the last client disconnects. The image size was not measured. Builds produce local arm64 images. `DOCKER_BUILDKIT=0` selects the classic build API instead. BuildKit support (Noodle's build adapter) ships inside the app, with its licences, and runs in place from `Noodle.app/Contents/Helpers`. If a build has no bundled copy, the adapter is fetched on demand: its byte size and SHA-256 are checked before it is unpacked under `~/.noodle/tools` (or `$NOODLE_HOME/tools`), and again before reuse. **Checked:** these end-to-end cases passed: `build-buildkit-default`, `build-native-gateway-secret`, `build-native-parallel-sessions`, `build-worker-cache-reuse`, `build-native-cancel-retry`, `buildx-load`, `compose-local-build`. ## noodle builds [#noodle-builds] Every build leaves a record under `~/.noodle/builds`. These commands read those files and never start the daemon. ```sh noodle builds list noodle builds inspect ID noodle builds logs ID noodle builds rm ID noodle builds rm --all noodle image layers IMAGE --json ``` - `list` prints `ID`, `STATUS`, `SECONDS`, `CACHED/TOTAL` steps and tags, newest first. `--json` prints the records without logs. - `inspect` and `logs` take an exact build ID, not a path or a prefix. - Logs have a size limit, and secrets passed to a build are redacted in them. **Checked:** these end-to-end cases passed: `noodle-cli-builds`, `build-history-success-cache-and-layers`, `build-history-failure-and-redaction`, `build-history-retention-restart-and-sleep`, `build-history-native-buildx-secret-and-cache`, `build-history-native-failed-secret`, `build-history-log-limit`, `build-history-cancelled`. ## noodle scan and noodle sbom [#noodle-scan-and-noodle-sbom] ```sh noodle scan alpine:3.22 noodle scan myapp:latest --fail-on high --json noodle scan --history myapp:latest noodle scan --clear-cache noodle sbom myapp:latest --output sbom.json ``` - The image is exported from the engine to a private temporary folder and scanned there. A missing image fails before anything is downloaded. - `scan` uses Grype 0.121.3. `sbom` uses Syft 1.57.1 and writes CycloneDX JSON to stdout or to `--output FILE`. - Both tools download from github.com/anchore on first use. The archive's SHA-256 is checked against a pin before extraction, and the executable's hash is checked on every later run. - The first scan also downloads the vulnerability database. Noodle prints a notice: about 3.2 GB on disk, several minutes. `scan --clear-cache` deletes it. - `--fail-on SEVERITY` (`negligible`, `low`, `medium`, `high`, `critical`) exits 2 when any match is at or above that level. Without it the exit code stays 0 even with findings. - `scan --history [IMAGE]` prints saved results as a JSON array. Noodle keeps the latest 50. **Checked:** these end-to-end cases passed: `scan-unused-and-missing-image`, `scan-known-cve-and-fail-on`, `scan-sbom-cyclonedx`, `scan-history-offline-and-clear-cache`, `scan-tampered-helper-refused`, `scan-tampered-archive-refused`. ### In the app [#in-the-app] Select an image on the Images page to see the **Info**, **Layers** and **Security** tabs. The Security tab runs the same scan and package list on this Mac. - **Scan** (then **Scan Again**) lists vulnerabilities with counts per severity and, for each match, its ID, package and the fixed version or "No fix listed". The first scan asks before it downloads the scanner and the 3.2 GB database. - **Scan history** picks an earlier result, or "Latest scan". - **List Packages** shows every package in the image, as `noodle sbom` does. It may download Syft first. **Export** saves the list as CycloneDX. - **Clear Scan Database…** removes the database. Saved results stay. ## Everything Noodle downloads after install [#everything-noodle-downloads-after-install] These downloads happen on demand. Noodle checks pinned executables and images against a checksum or digest. The vulnerability database comes from the scanner’s update service. | File | Trigger | Size | | --- | --- | --- | | Docker CLI 29.9.3 (`download.docker.com`) | setup, when no compatible CLI is installed | 19,641,900 bytes | | Docker Compose 5.7.1 (`github.com/docker/compose`) | first `docker compose` | 31,976,450 bytes | | Docker Buildx 0.39.0 (`github.com/docker/buildx`) | first `docker buildx` or `docker build` | 65,238,512 bytes | | Docker Model CLI 1.2.9 (Docker's registry) | first `docker model` | not measured | | kubectl 1.37.2 (`dl.k8s.io`) | setup, when no `kubectl` is on your PATH | not measured | | BuildKit v0.35.0 image | first native build | not measured | | Grype 0.121.3, Syft 1.57.1 | first `scan` or `sbom` | not measured | | Vulnerability database | first `scan` | about 3.2 GB on disk | | k3s image v1.37.2+k3s1 | `noodle kubernetes start` | not measured | | cloudflared 2026.11.0 | first `noodle link` | not measured | ### Optional tools [#optional-tools] Two more tools are pinned. A bare `noodle tools install` skips them; name them to fetch one. - `kubectl` 1.37.2 is linked into `~/.local/bin` when that name is free. Setup fetches it only when no `kubectl` is on your PATH. - `act` 0.2.98 (`github.com/nektos/act`) runs GitHub Actions workflows locally. `noodle tools install act` downloads it and links it into `~/.local/bin` when that name is free. `--no-link` skips the link. `noodle tools status` lists them once installed. ### The Docker tools [#the-docker-tools] - Setup downloads only a missing Docker CLI, about 19.6 MB. Compose and Buildx arrive on first use. Keep using `docker compose`, `docker buildx` and `docker build`. - Files go to `~/.noodle/tools`. Setup links lazy plugins into `~/.docker/cli-plugins` (or `$DOCKER_CONFIG/cli-plugins`) only when that name is absent. Docker Desktop's links and your own binaries are preserved. A lazy plugin answers Docker's metadata request locally, then replaces its link with the real upstream binary after the first verified download. - A download whose SHA-256 differs from the pin is discarded and nothing is installed. - `noodle tools status` lists what is installed. `noodle tools remove` unlinks only the links Noodle made and deletes `~/.noodle/tools`. - Before going offline, run `noodle setup --tools` to prefetch missing clients, including deferred plugins, or `noodle tools install` to install every pinned client: `docker`, `docker-compose`, `docker-buildx` and `docker-model`, plus BuildKit support when the app supplies it. Name tools to fetch only those, for example `noodle tools install docker-compose`. There is no combined size, because the Docker Model CLI size is not recorded. An offline first-use failure keeps the stub and prints the matching install command. `NOODLE_TOOLS_MIRROR` replaces the download host; the SHA-256 pins still apply. - `noodle uninstall` removes stubs and plugin links it created. Downloaded tools stay unless you remove them or delete Noodle data. BuildKit support also lives under `tools`. `noodle tools status` lists it as `buildkit` when the app supplies the download manifest. `noodle tools remove` deletes it, as does `noodle uninstall --delete-data --yes` along with all other Noodle data. The BuildKit archive includes `BuildKitAdapter-Licenses.txt`. **Checked:** `tests/tools.sh` passed with `TOOLS_OFFLINE=1` and cached pinned binaries. Its local `file://` fixture covers setup-created stubs, metadata without downloads, simultaneous first uses, stdin and environment forwarding, `docker build` dispatch and uninstall. **Not verified:** upstream network downloads were not repeated; the sizes above are those supplied for the pinned files. # Containers and Compose (/docs/containers) Run containers and Compose stacks with your standard `docker` CLI against the `noodle` context. The app's [Overview](/docs/containers/overview/) shows problems, ports, memory and disk at a glance. [Volumes and networks](/docs/containers/volumes-networks/) covers their pages and commands. ## Container lifecycle [#container-lifecycle] ```sh docker --context noodle run -d --name web -p 127.0.0.1:8080:80 nginx:alpine docker --context noodle logs web docker --context noodle stop web docker --context noodle rm web ``` Plain `docker run`, `docker logs`, `docker stop`, and `docker rm` work identically when Noodle is selected as the default context. ## Compose projects [#compose-projects] The Containers window groups services by project. Use the project header to start or stop its existing containers. Select a row to see the container’s details and logs, or open its published TCP port on localhost from the row. From the folder containing your Compose file: ```sh docker --context noodle compose up -d docker --context noodle compose ps docker --context noodle compose logs docker --context noodle compose down ``` Plain `docker compose up -d` works identically. Named volumes remain after `down` unless you pass `--volumes`. The real Docker suite covered Compose up/down, local builds, multiple networks, scaling and an unhealthy service with `up --wait`. See [Images and builds](/docs/containers/images/) for Buildx and first-use downloads. ## Shared folders [#shared-folders] A bind mount (`-v ~/project:/app`) shows a Mac folder inside the container. Reads, writes, renames and appends from several containers behave as on Linux. Two things do not carry across the boundary between the Mac and a container: - **Do not append to one file from the Mac and a container at the same time.** A test with both sides appending 2,000 lines each to one file lost lines. Several containers appending to one file together lost none. Give each side its own file, or let only one side write while the other reads. - **Do not rely on `flock` between the Mac and a container.** A lock held in a container does not block a Mac process, and a lock held on the Mac does not block a container. `flock` between two containers on the same bind mount does exclude. A lock taken on one side cannot stop a writer on the other, so keep every writer to a shared file or database on one side, or put a service that both sides reach (a database server, for example) in front of it. ## noodle pod [#noodle-pod] A pod is a set of containers that share one network namespace and reach each other over `localhost`. Pods are made of container labels only, so `docker ps` shows every member and the infra container. ```sh noodle pod create --name web -p 8080:80 noodle pod start web infra=$(docker --context noodle ps -aq --no-trunc --filter label=dev.noodle.pod=web --filter label=dev.noodle.pod.role=infra) docker --context noodle run -d --network "container:$infra" \ --label dev.noodle.pod=web --label dev.noodle.pod.role=member --label "dev.noodle.pod.infra=$infra" \ nginx:alpine noodle pod ps noodle pod logs web noodle pod rm -f web ``` | Command | What it does | | --- | --- | | `pod create [--name NAME] [-p SPEC] [-l KEY=VALUE] [--share net] [--json]` | Creates the infra container, stopped. It runs `/bin/sleep infinity` in `alpine:3.22` and owns the network namespace. Start it with `pod start` before adding members. | | `pod ps \| inspect \| start \| stop \| restart \| logs \| top POD` | Lifecycle and inspection. `logs` shows the last 1000 lines per container. | | `pod rm [-f] POD` | Removes the pod and its members. | To add a member, run it with `docker run --network container:INFRA` and three labels: `dev.noodle.pod=POD`, `dev.noodle.pod.role=member` and `dev.noodle.pod.infra=INFRA`, where `INFRA` is the full ID of the infra container. Without the labels, `pod ps`, `pod restart` and `pod rm` do not see the container. ### Limits [#limits] - Only network sharing exists (`--share net`, the default). IPC, UTS and PID sharing are not available. - Ports belong on `pod create`. Members cannot publish their own. - `pod restart` stops members, then the infra, then starts the infra before the members so they join its new namespace. It needs members started without `--rm`, and refuses otherwise. **Checked:** these end-to-end cases passed: `pod-create-inspect-and-validation`, `pod-localhost-and-shared-publish`, `pod-restart-shared-network`, `pod-restart-refuses-autoremove`, `pod-stop-and-rm`, `pod-logs-and-top`. **Checked:** `pod-foreground-run-has-no-deadline` also passed. These cases add members with `docker run` and the labels above. ## noodle kube [#noodle-kube] Runs a small subset of Kubernetes YAML directly on the engine, with no cluster. ```sh noodle kube play app.yaml noodle kube generate web noodle kube play app.yaml --down ``` - `kube play FILE` accepts `Pod`, `Deployment` (replicas must be 1), `ConfigMap` and `PersistentVolumeClaim`. Any other kind is refused with `unsupported kind`. Fields outside the supported set print a warning and are ignored. - A `hostPort` without `hostIP` binds `127.0.0.1`. A PersistentVolumeClaim becomes a local named volume and its `spec` is ignored. - `kube play FILE --down` removes the containers that play created from that file. - `kube generate CONTAINER-OR-POD` prints a `Pod` manifest for a running container or pod, using the same subset, so the output plays back. **Checked:** these end-to-end cases passed: `kube-play-port-env`, `kube-deployment-volumes-configmap`, `kube-down-removes-owned-containers`, `kube-generate-round-trip`, `kube-refuses-unsupported`, `kube-warns-unknown-fields`. **Checked:** the loopback default for `hostPort` is asserted by `kube-play-hostport-defaults-to-loopback`, which passed. ## noodle kubernetes [#noodle-kubernetes] One managed single-node k3s cluster. Nothing runs and nothing downloads until `start`. ```sh noodle kubernetes start noodle kubernetes use-context kubectl get nodes noodle kubernetes stop noodle kubernetes delete --yes ``` | Command | What it does | | --- | --- | | `start [--api-port N] [--ports LIST] [--timeout SECONDS]` | Creates or resumes the `noodle-k3s` container. The first start pulls `rancher/k3s` v1.37.2+k3s1, pinned by digest, so the engine checks the download. The size was not measured. API server on `127.0.0.1:6443` unless `--api-port` says otherwise. | | `stop`, `status [--json]` | A stopped cluster is a stopped container: no k3s process, no host helper. | | `delete [--yes]` | Removes the container, the data volume `noodle-k3s-data` and the kubeconfig folder. Refuses without a terminal unless `--yes` is given. | | `kubeconfig` | Prints the path of the kubeconfig, `~/.noodle/kubernetes/kubeconfig`, mode 0600. | | `use-context [--remove] [--kubeconfig PATH]` | The only command that touches `~/.kube/config`. It backs the file up first and edits only the entries named `noodle`. Needs `kubectl`. | | `shared-folders [on\|off]` | Shows or changes whether the cluster and privileged containers can use your [approved folders](/docs/cli/). The first `start` of a new cluster turns it on and says so. Changing it restarts the workload VM. Also under **Settings > File Sharing**. | ### What to know before using it [#what-to-know-before-using-it] - k3s runs as a privileged container in the workload VM. With shared folders on, each folder approved with `noodle share add` is mounted into the node at its own path, so a pod's `hostPath` naming that path is the Mac folder. Any other `hostPath`, such as an unapproved `/Users/…` path, points inside the node and sees nothing from the Mac. Run `noodle kubernetes start` after approving a folder so the node picks it up. - With shared folders on, every privileged workload in that VM can reach every approved folder, not only its own. `noodle share remove FOLDER` ends access at the next VM restart; add `--restart` to end it now. - Pods see Mac edits only when they read again. File-change events are not relayed into the workload VM. - Traefik and metrics-server are disabled. CoreDNS and local-path storage are on. The network backend is flannel `host-gw`. - `LoadBalancer` services work on any port: while the node runs, a small helper checks Services every two seconds and publishes each port on `127.0.0.1`. A port the Mac already uses fails for that service only. `NodePort` ports need `--ports` (for example `--ports 8080-8089,8443`, at most 256). - Changing `--api-port` or `--ports` recreates the container and keeps the data volume. - The workload VM's device policy has not been security reviewed. Do not run workloads in it that you would not run as root in a VM that shares a network with your Mac. **Checked:** these end-to-end cases passed: `k8s-start-ready`, `k8s-start-is-idempotent`, `k8s-stop-leaves-nothing-running`, `k8s-delete-leaves-nothing`, `k8s-nothing-until-start`, `k8s-state-survives-daemon-restart`, `k8s-pvc-survives-stop-start`, `k8s-port-forward`, `k8s-pod-dns-resolves-service`, `k8s-loadbalancer-any-port`, `k8s-loadbalancer-on-localhost`, `k8s-use-context-edits-only-ours`, `k8s-ordinary-containers-keep-working`. ## noodle container edit and ports [#noodle-container-edit-and-ports] Change a container without recreating it. Use `docker --context noodle container` for every other container subcommand. ```sh noodle container edit web --publish 127.0.0.1:9090:80 --dry-run noodle container edit web --env LOG=debug --restart noodle container ports web --json ``` - `--publish [HOST_IP:]HOST_PORT:CONTAINER_PORT[/tcp|udp]` and `--unpublish SPEC` apply to a running container live. The process keeps its PID, and a conflicting port leaves all state unchanged. - `--env K=V` and `--unset-env K` apply at the next start. `--restart` restarts now. The writable layer, network and volumes survive either way. - `--dry-run` prints what would change and changes nothing. - `container ports NAME` lists the TCP and UDP ports the container listens on and whether each is published. It refuses a stopped container. - Edits survive a daemon restart, and Compose containers stay in their project. **Checked:** these end-to-end cases passed: `edit-running-port-preserves-pid-and-releases-binding`, `edit-conflict-leaves-all-state-unchanged`, `edit-ipv6-and-loopback-specs`, `edit-env-applies-on-restart-and-keeps-writable-layer`, `edit-restart-keeps-live-ports-network-and-volume`, `edit-dry-run-changes-nothing`, `edit-ports-discovers-unpublished-tcp-udp-and-rejects-stopped`, `edit-compose-container-stays-in-project`, `edit-state-survives-daemon-restart`. # macOS machines (/docs/containers/mac-machines) A macOS machine is one macOS guest that runs inside Noodle. You manage it in the app only. There is no `noodle` command for it. Open **Machines** and choose the **macOS** chip. The **Linux** chip shows [Linux machines](/docs/containers/machines/). ## Install [#install] 1. Press **Choose IPSW…** and pick an Apple macOS restore image. **Find Apple Restore Image** looks up Apple's download link, which you can open or copy with **Copy Link**. 2. Press **Choose Folder…** for the place to keep the machine. The folder needs at least 40 GiB free. 3. Press **Install macOS**. Progress shows on the page, with **Cancel Installation**. Noodle creates a `Noodle Mac.noodlemac` folder there with a 64 GiB virtual disk. It takes the restore image's most capable supported setup: at least 4 CPUs and 4 GiB of memory, more if the image requires it. Noodle does not ask you to set these. The network is NAT and the display is 1440 by 900. **Open Existing…** attaches a `.noodlemac` folder you made earlier. ## Run [#run] **Start macOS** boots the machine and shows its screen in the window. The header shows the state, and CPU and host memory use. **Shut Down** asks macOS to quit, and the button turns into **Retry Shutdown** when it does not. **Force Stop…** appears when a shutdown is pending or an error shows. It cuts the power, and unsaved work in the guest can be lost. ## Limits [#limits] - One macOS machine at a time. - The restore image must support this Mac. Otherwise the install stops with a message to choose a compatible image. - No file sharing or snapshots. # Machines (/docs/containers/machines) A machine is a persistent Linux VM of its own. A raw VM runs one command and disappears. For a macOS guest, see [macOS machines](/docs/containers/mac-machines/). ## noodle machine [#noodle-machine] ```sh noodle machine create dev --cpus 4 --memory 4G --disk 40 --share ~/Code noodle machine shell dev noodle machine shell dev -- uname -a noodle machine list noodle machine stop dev noodle machine delete dev --yes ``` | Command | What it does | | --- | --- | | `create NAME [--distro ubuntu\|alpine] [--image REF] [--cpus N] [--memory SIZE] [--disk GiB] [--share PATH] [--systemd]` | Names use lowercase letters, digits and dashes. Defaults: Ubuntu 24.04, 2 CPUs, 2 GiB memory, a 20 GiB sparse disk. Needs the Docker CLI, and starts the daemon, because the root filesystem is pulled and exported through the engine. | | `list [--json]`, `status NAME` | State, resources, and the helper's resident memory. | | `start`, `stop`, `restart NAME` | A stopped machine has no host process. | | `shell [NAME] [-- CMD…]` | A login shell, or one command, as your own Mac user name and uid with passwordless sudo. Starts the machine if it is stopped. The exit code is the command's. | | `delete NAME [--yes]` | Removes the machine and its disk. | - Distros are Ubuntu 24.04 and Alpine 3.22, pinned by digest. `--image REF` takes any image and is your choice; Noodle does not pin it. - No Mac folder is visible unless you pass `--share PATH`. That one folder appears at `/mnt/share`. - Each machine is its own VM with its own kernel, so a machine does not share a kernel with your containers. ### \--systemd [#--systemd] `--systemd` makes systemd the machine's init, so `systemctl` and services work. - It installs systemd for `--distro ubuntu`. Alpine is refused. - With `--image REF` the image must already contain systemd, an executable `/sbin/init` that points to it, and `/usr/bin/systemctl` (glibc: Ubuntu, Debian or Fedora). - Without the flag the machine runs a small init instead, and `systemctl` does not work. - `stop` asks systemd to shut down. If it does not, Noodle forces the VM off and says so, pointing at `console.log` and `helper.log` in the machine's folder under `~/.noodle/machines`. ### Memory [#memory] Measured: an idle Ubuntu machine with `--memory 1G` had a helper footprint of 3505 KB and used 155 MiB of its sparse disk. Guest RAM is on top of that and is bounded by `--memory`. Those numbers predate `--systemd`. **Verification:** the cases are in `tests/machines.sh`, which is separate from the main end-to-end suite. The systemd block of that script alone passed 19 of 19 on the custom kernel after a boot-order fix. The full script (machines, systemd and the raw-run checks) then passed 97 of 97 on the custom kernel 6.18.60. The fixed guest was not run on Apple's kernel, and the 97 results are a count without per-case results. Networking inside a raw VM was not checked. ## Raw run [#raw-run] One throwaway VM, with no daemon and no Docker socket involved. ```sh noodle debug run ./rootfs /bin/sh -c 'uname -a' noodle debug run alpine:3.22 /bin/echo hi ``` - Use `noodle debug run` for a disposable VM and `docker --context noodle run` for containers. - The first argument is a root filesystem directory, or an image already stored in your Noodle home (linux/arm64 only; it is not pulled). A command is required. - The VM has 2 CPUs, 2048 MiB of memory, a fresh 16 GiB sparse ext4 disk, runs as root, and shares no Mac folder. Everything is deleted when the command exits. SIGINT and SIGTERM end it with 128 plus the signal number. - It needs the signed `noodle-machine` helper next to `noodle`, which the app bundle has. Without it the command exits 127 with `signed VM executable not found next to noodle; reinstall Noodle`. **Checked:** the raw-run checks in `tests/machines.sh` (`raw-run-stored-image-output`, `raw-run-rootfs-unchanged` and the rest) are part of the 97 of 97 pass. **Not verified:** networking inside a raw VM. ## Boot console [#boot-console] `noodle debug boot-console` prints the last 256 KiB of the main VM's boot console. Capture is off by default. The first call turns it on for the next boot and says so. `--disable` turns it off. Reading it never starts the daemon. **Checked:** these end-to-end cases passed: `debug-boot-console`, `debug-boot-console-capture-opt-in-and-ring`. # Migrate from Docker Desktop, OrbStack or Podman (/docs/containers/migrating) Keep both engines installed and use their Docker contexts to choose where each command runs. Start with data you can recreate, then verify the destination before deleting anything from the source. ## Import [#import] In the app’s setup assistant, keep your current engine selected if you want to try Noodle alongside it. When a running source has data to copy, choose the source and select tagged images, volumes, or stopped containers. Source data stays in place. From the terminal, use `docker context ls` to find the source context. Start your source engine and Noodle first. ```sh noodle import SOURCE --list noodle import SOURCE --images ``` Replace `SOURCE` with the context name. For volumes, stop every container that writes to them first, and check the copy before you delete the source. Listing shows what the source holds. Use `--volumes` or `--containers` to copy other categories, or `--all` for all three. Container import covers stopped containers. The end-to-end checks `import-cross-engine` and `import-interrupted-transfer` used isolated engines. Migration from an actual Docker Desktop or OrbStack install still needs verification. ## From Podman [#from-podman] Start the Podman machine and Noodle, then use `podman` as the source name. ```sh podman machine start noodle import podman --list noodle import podman --images ``` Noodle finds the running machine with `podman machine list`, then asks `podman machine inspect NAME` for its Docker-compatible socket. A named machine such as `noodle-bench` works the same as `podman-machine-default`. Without `podman` on your PATH it looks in `~/.local/share/containers/podman/machine` and in `$TMPDIR/podman`. If it finds nothing, pass the socket yourself: `noodle import unix:///path/to/podman.sock --list`. Rootless Podman images and volumes copy the same way as Docker ones. Before `--volumes`, stop every container that writes to those volumes: the import reads each volume while the source engine keeps running, so a database that writes mid-copy can land in Noodle with files from different moments, and the verification does not detect that. After the import, check the data in Noodle before you delete anything from Podman. Pods are not copied. Recreate them from the image. Podman commands you already type map to the `docker` CLI pointed at Noodle: | Podman | Against Noodle | |---|---| | `podman run`, `ps`, `stop`, `rm`, `logs`, `exec` | same subcommand with `docker` | | `podman build -t app .` | `docker build -t app .` | | `podman pull`, `push`, `images`, `rmi` | same subcommand with `docker` | | `podman volume create`, `ls`, `rm` | same subcommand with `docker` | | `podman network create`, `ls`, `rm` | same subcommand with `docker` | | `podman compose up` | `docker compose up` | | `podman machine start` | `noodle start` | Podman-only commands such as `podman pod` and `podman generate systemd` have no Noodle equivalent. ## Keep both engines [#keep-both-engines] `noodle setup --no-use` adds the `noodle` context without selecting it. Address either engine per command with `--context`, or switch with `docker context use`. ## Images [#images] ```sh # replace OLD with your existing context name, see: docker context ls docker --context OLD save -o images.tar IMAGE:TAG [IMAGE:TAG ...] docker --context noodle load -i images.tar ``` Noodle runs arm64 and, through Rosetta, amd64 images. An image built only for another architecture will not start. ## Volumes [#volumes] Stream each volume through a tar archive. Stop containers that write to it first. ```sh docker --context OLD run --rm -v myvol:/v alpine:3.22 tar c -C /v . > myvol.tar docker --context noodle volume create myvol docker --context noodle run --rm -i -v myvol:/v alpine:3.22 tar x -C /v < myvol.tar ``` Check ownership and modes on a copy before you delete the original. ## Containers and Compose projects [#containers-and-compose-projects] Recreate them from the image and the Compose file. Run `docker --context noodle compose up`. For a single-file bind, approve its containing folder with `noodle share add` first. ## What does not carry over [#what-does-not-carry-over] - Running containers and Kubernetes workloads. Recreate them from the image or the manifest. - Privileged containers run in a separate VM, and their volumes are separate from ordinary containers' volumes. A Mac bind mount works for them only inside a folder approved with `noodle share add`, and only while `noodle kubernetes shared-folders` is on. - Swarm services. # Networking (/docs/containers/networking) A container with a web port is served at `.localhost` on port 80, with no port to publish or remember. `noodle names` lists the names. Publish a port only for a non-web service or a fixed address. Bind to loopback for a local-only service. ```sh docker --context noodle run -d --name web -p 127.0.0.1:8080:80 nginx:alpine curl http://web.localhost/ ``` Noodle supports TCP and UDP publishing, DNS on user networks, and IPv6 networks. An ordinary container on a non-internal network reaches a Mac service bound only to `127.0.0.1` through `host.docker.internal`, by a TCP relay. Internal networks, UDP and privileged containers do not use the relay. ## Local names [#local-names] Every running container that has a web port gets a `*.localhost` name served by the daemon on loopback. `noodle names` lists them. ```sh noodle names noodle names --json ``` - A container needs a published port, an `EXPOSE`, or the label `app.noodle.http.port`. - Name a process already running on your Mac with `noodle names add NAME PORT`, for example `noodle names add api.myapp 3000`. It answers at `api.myapp.localhost` and `api.myapp.noodle.local` over HTTP and HTTPS, WebSockets included. `noodle names remove NAME` drops it. The name survives a daemon restart, needs no root and edits no system file. A container with the same name always wins, and `add` tells you when that happens. `noodle names --json` marks each name as `host` or `container`. - A request to a name with no route, or to an app that is not listening, gets a JSON body (`error`, `name`, `hint`) with 404 or 502 unless the client asks for HTML, as a browser does. A request that has already passed through Noodle is refused with 508. - HTTP uses port 80 and HTTPS port 443 on loopback, without root and without editing system files. If another app holds one, Noodle uses 10080 or 10443 instead and `noodle names` says why. `NOODLE_LOCAL_NAMES=0` turns names off. - HTTPS is served from a local certificate authority that Noodle creates. A certificate is chosen by the name the client asks for. - Browsers distrust the authority until you add it. `noodle names ca` prints the certificate path. `noodle names trust` adds it to your login keychain as a trusted root for SSL, and macOS asks for your password. `noodle names untrust` removes it. Noodle never runs `trust` by itself. - HTTPS names accept TLS 1.3 and HTTP/2, and fall back to HTTP/1.1 for clients that do not offer h2. WebSocket upgrades pass through. **Checked:** these end-to-end cases passed: `names-container-name-serves-http`, `names-standard-port-taken-falls-back-with-message`, `names-https-selects-certificate-by-sni`, `names-dev-https-uses-noodle-ca`, `names-dev-tls13-and-h2-falls-back-to-http11`, `names-dev-websocket-upgrade-echo`. **Not verified:** `names trust` and `names untrust` change the keychain and were not run for this page. ## noodle dev [#noodle-dev] Runs a dev server on your Mac, not in a container, under a name like `myapp.localhost`. ```sh noodle dev api.myapp -- node server.js ``` - Noodle reserves a free loopback port and starts your command with `PORT` set to it and `HOST=127.0.0.1`. Your server must listen on `$PORT`. - It prints the HTTPS URL, then runs the command in the foreground. The name exists only while the command runs. SIGINT, SIGTERM, SIGHUP and SIGQUIT are forwarded to the command's process group, and the exit code is the command's. - The name comes from the first argument if it is not an executable. Put `--` before the command to infer the name, or after a name that is also an executable. A name may be several dot-separated lowercase labels such as `api.myapp`. - Inferred names use the `name` in `package.json` (the part after a scope), then the Git root folder, then the current folder. In a linked Git worktree the branch's last segment is prefixed, so `fix-login` in a worktree of `myapp` becomes `fix-login.myapp.localhost`. A detached worktree uses the short commit. - A dev name and a container name can collide. The container stays reachable and the later arrival gets a suffixed alias. If the owning `noodle dev` process is killed, the daemon removes its route. - The daemon must be running. **Checked:** these end-to-end cases passed: `dev-explicit-name-exports-free-loopback-port`, `dev-concurrent-processes-get-distinct-free-ports`, `dev-default-package-name-and-executable-ambiguity`, `dev-default-git-root-name`, `dev-default-folder-name`, `dev-worktree-prefix-uses-sanitized-last-branch-segment`, `dev-explicit-separator-allows-executable-name`, `dev-exit-status-and-registration-removal`, `dev-term-forwards-signal-and-removes-name`, `dev-int-forwards-signal-and-removes-name`, `dev-term-ignored-by-child-still-unregisters-route`, `dev-killed-owner-is-reaped`, `dev-last-route-removal-closes-both-listeners`, `names-dev-and-container-collision-keeps-container-reachable`, `names-container-after-dev-collision-gets-suffixed-alias`, `names-dev-and-container-have-independent-lifetimes`. ## noodle link [#noodle-link] Publishes one container's HTTP service at a temporary `https://…trycloudflare.com` address through a Cloudflare quick tunnel. Anyone with the URL can reach the service. Read the exposure and consent rules before running the command. ```sh noodle link web:8080 noodle link list noodle link stop --all ``` - Every HTTP path on that port becomes reachable by anyone who has the URL. The URL is not authentication, and Noodle adds none. Cloudflare terminates HTTPS and can read headers, cookies, credentials and bodies. - Each create prints the container, its address and port and these warnings, then asks for `yes`. `--yes` skips the question. Without a terminal and without `--yes` the command fails before anything starts. Consent is never remembered. - With no `:PORT` the container must declare exactly one TCP port. UDP and Docker API ports (2375, 2376) are refused. Host networking, no networking, `container:` network mode, and mounts of the Docker socket or the Noodle home are refused. A privileged container, or one with `seccomp=unconfined`, needs `--allow-privileged`. - `--json` prints one status object. `link list` shows state and URL. `link stop ID` or `--all` closes the tunnel. - A link ends when the container stops, is removed, paused, restarted or leaves its network. No link survives a daemon restart or a reboot. - The first use downloads cloudflared 2026.11.0 from GitHub and checks its SHA-256 before extraction. A Cloudflare account is not required. **Checked:** these end-to-end cases passed: `link-requires-explicit-confirmation`, `link-json-and-helper-arguments-pin-one-service`, `link-invalid-targets-fail-without-starting-helper`, `link-docker-api-port-and-host-network-are-refused`, `link-privileged-container-requires-separate-consent`, `link-stop-reaps-helper-and-closes-relay`, `link-container-stop-reaps-helper`, `link-daemon-restart-does-not-restore-public-access`, `link-download-archive-mismatch-is-refused`. Those cases run against a stand-in for cloudflared. **Not verified:** no real tunnel has been opened. `link-real-tunnel-reaches-selected-container` was skipped in the recorded run, and the pinned cloudflared download has not been fetched. ## noodle finder [#noodle-finder] Serves container and volume files read-only over WebDAV on loopback, and optionally mounts them where Finder can see them. ```sh noodle finder mount noodle finder mount ~/noodle-files noodle finder mount --serve-only noodle finder status noodle finder unmount ``` - The default mount point is `~/.noodle/run/finder`. A mount point you name must be an empty, real directory that you own, with no symlinks and no `..`. It is created if the last component is missing. - The mount uses `/sbin/mount_webdav` with `rdonly,nosuid,nodev,noexec`. Writes, path traversal and symlink escapes are rejected. Browsing a stopped container does not start it. - `--serve-only` starts the server without mounting. `status` prints JSON with `url`, `mounted` and `mountpoint`. - `unmount` runs `umount` and then stops the server. If the mount is busy the server stays up, and you can retry. **Checked:** these end-to-end cases passed: `finder-real-mount-is-read-only-and-unmounts`, `finder-cli-repeated-operations-and-invalid-mountpoint`, `finder-rejects-writes-traversal-and-symlinks`, `finder-stopped-container-browsing-does-not-start-it`, `finder-live-container-and-volume-reads`, `finder-listener-rejects-non-loopback`, `finder-unmount-closes-listener-and-rotates-token`, `finder-range-reads-large-file`. # Overview (/docs/containers/overview) Overview is the first page of the Containers section. It reads from the engine while the Noodle window is visible and stops when you hide or close it. A card with nothing to show is not drawn. ## Needs attention [#needs-attention] Up to three problems sit at the top, newest first: - a container that exited with a non-zero code in the last 24 hours (exit code 143, a plain stop, does not count), - a container that keeps restarting, or is dead, - a running container whose health check fails (shown as a warning). Each row has **Logs** and **Restart**. When the engine is stopped, the page shows the stopped state with a **Start** button. ## Projects [#projects] Compose projects and standalone containers. Each project row shows how many of its containers run, with **Logs**, **Stop** or **Start**, and **Restart**. The row's menu adds **Copy Name** and **Delete Project…**. Selecting a row opens it on the Containers page. A standalone container row has **Start** or **Stop** and a menu with **Copy Name** and **Copy ID**. The card lists five rows, with **Show All** for the rest. With nothing running it shows a `docker run` command and **Browse Images**. ## Ports [#ports] Each published port with the container or service that owns it. A web port (such as 80, 443, 3000, 8080) opens in your browser when you select it. Other ports, and all UDP ports, copy their address. Ports on data stores such as Postgres or Redis are copied rather than opened. The address is the container's `.localhost` name when Noodle serves one. ## Memory [#memory] The total memory used by running and paused containers and the three largest. Selecting a row opens the container. If some containers cannot be measured, the card says how many were counted. ## Disk [#disk] How much space images, volumes and container layers use, and how much **Clean Up** can free. Clean Up shows what it will remove before it deletes anything: stopped containers, images with no tag and no digest that no container uses, and unused networks. Running containers, tagged images and volumes stay. It is the same as Docker's standard prune. ## Machines [#machines] Your [Linux machines](/docs/containers/machines/) with their state. Selecting a row opens the machine. **Open Shell** starts a shell in the first running one. # Quick Start (/docs/containers/quickstart) After [setting up Noodle](/docs/install/#setup), run your first container directly. ## 1\. Start the daemon [#1-start-the-daemon] Skip this step if you finished setup in the app. It already started Noodle and ran a test container. ```sh noodle setup noodle start ``` ## 2\. Run a container [#2-run-a-container] Setup makes Noodle your Docker context when no other engine is running; otherwise add `--context noodle` or run `noodle setup --use`. ```sh docker run --rm alpine echo hello docker run -d -p 127.0.0.1:8080:80 --name web nginx:alpine ``` Noodle does not wrap `docker`; `--context noodle` points the standard CLI at Noodle's socket. When Noodle is your default Docker context, plain `docker run` works identically. ## 3\. Bring up a Compose project [#3-bring-up-a-compose-project] ```sh docker compose up -d docker compose ps docker compose down ``` Run this from a folder with a `compose.yaml` or `docker-compose.yml` file. If another engine is your default, use `docker --context noodle compose up -d`. ## 4\. Build an image [#4-build-an-image] ```sh docker --context noodle build -t local/demo . docker --context noodle compose build ``` These build local arm64 Dockerfiles. Noodle automatically starts its BuildKit worker on the first build and stops it when idle. ## 5\. Share a folder [#5-share-a-folder] Noodle attaches no Mac folder by default. A directory bind explicitly attaches its directory: ```sh noodle share add /Users/you/code/shop docker --context noodle run --rm -v /Users/you/code/shop:/src:ro alpine:3.22 ls /src noodle share list ``` ## Name a dev server on your Mac [#name-a-dev-server-on-your-mac] Containers with a web port already answer at `http://NAME.localhost`, with no port to remember. A dev server running on the Mac itself (Vite, Next, Rails) can have a name too: ```sh noodle names add api.myapp 3000 noodle names remove api.myapp ``` `https://api.myapp.localhost` now reaches port 3000, WebSockets and hot reload included. The name survives a restart. Run `noodle names trust` once so browsers accept the HTTPS certificate. See [networking](/docs/containers/networking/) for the rules. Volumes and networks have pages in the app too. See [Volumes and networks](/docs/containers/volumes-networks/). ## Stop [#stop] ```sh docker --context noodle rm -f web noodle stop ``` # Volumes and networks (/docs/containers/volumes-networks) Both pages are tables with the same behavior: search from the toolbar, select rows, then delete with the Delete key, the right-click menu or the **Delete** button. Noodle asks before it deletes. ## Volumes [#volumes] Volumes keep data between container runs. Compose creates them for you. The table shows **Name**, **Driver** and **Location** (the volume's path, hidden in a narrow window). Deleting a volume removes the data inside it for good. ```sh docker --context noodle volume create data docker --context noodle volume ls docker --context noodle volume inspect data docker --context noodle run --rm -v data:/data alpine:3.22 ls /data docker --context noodle volume rm data docker --context noodle volume prune ``` Named volumes survive `docker compose down` unless you pass `--volumes`. See [Containers and Compose](/docs/containers/#compose-projects). ## Networks [#networks] Containers on the same user-defined network reach each other by name. The table shows **Name**, **Driver**, **Scope**, **Subnet** and the number of attached **Containers**. The built-in `bridge`, `host` and `none` networks carry a "built-in" tag and cannot be deleted. A network with attached containers cannot be deleted either. ```sh docker --context noodle network create app docker --context noodle network ls docker --context noodle network inspect app docker --context noodle run -d --network app --name db postgres:17 docker --context noodle network connect app web docker --context noodle network rm app docker --context noodle network prune ``` # Local API (/docs/models/api) The base URL is `http://models.noodle.local/v1`. Inference requires an API key. Noodle creates it on first use and keeps it until `noodle model key --rotate` replaces it. `noodle model endpoint` prints the URL, the model ID and the key. Each Noodle home has one active model and a 4,096-token context. ## Endpoints [#endpoints] Every model answers model listing and chat completions (OpenAI Chat Completions), with server-sent events when `stream` is true. Chat models also answer `/v1/responses` (OpenAI Responses) and `/v1/messages` (Anthropic Messages), and the key works as a Bearer token or as `x-api-key`. Any tool that lets you set an OpenAI base URL can talk to it. Speech and embedding models have their own endpoints, served under the same base URL and key: | Endpoint | Catalog model | What it does | |---|---|---| | `/v1/embeddings` | `qwen3-embedding-0.6b` | Text to vectors | | `/v1/audio/transcriptions` | `qwen3-asr-0.6b` | WAV file to text | | `/v1/audio/speech` | `kokoro-82m` | Text to a WAV file | ```sh curl http://models.noodle.local/v1/embeddings \ -H "Authorization: Bearer $NOODLE_API_KEY" \ -H 'Content-Type: application/json' \ -d '{"model":"qwen3-embedding-0.6b","input":"Hello!"}' curl http://models.noodle.local/v1/audio/transcriptions \ -H "Authorization: Bearer $NOODLE_API_KEY" \ -F file=@speech.wav -F model='qwen3-asr-0.6b' curl http://models.noodle.local/v1/audio/speech \ -H "Authorization: Bearer $NOODLE_API_KEY" \ -H 'Content-Type: application/json' \ -d '{"model":"kokoro-82m","input":"Hello from Noodle."}' -o speech.wav ``` Image and video models answer one JSON request each. The reply carries a base64 PNG for images and frames for video. ```sh curl http://models.noodle.local/v1/images/generations \ -H "Authorization: Bearer $NOODLE_API_KEY" \ -H 'Content-Type: application/json' \ -d '{"model":"flux2-klein-4b","prompt":"A paper boat on a pond","size":"1024x1024","steps":4}' ``` Video goes to `/v1/video/generations` with `num_frames` (49 is 2 seconds, 97 is 4). The app's Connections page prints the same samples for the running model. Ollama's own API (`/api/chat`, `/api/tags`) is not served, so point Ollama-aware tools at the OpenAI base URL instead. ## Named URL [#named-url] When the daemon is running, Models registers `models.noodle.local` for the live runner and checks an authenticated request before it shows the name. The records are local-only and need no hosts-file or resolver edit. If another app holds port 80, the app prints the fallback port, for example `http://models.noodle.local:10080/v1`. When names are off (`NOODLE_LOCAL_NAMES=0`) or the route is unavailable, `noodle model endpoint` prints the direct `http://127.0.0.1:11345/v1` instead. To stay on the direct address, create an empty `models/direct-connection` file inside the Noodle home. `NOODLE_LOCAL_NAMES=0` turns names off for one command. HTTPS uses a separate authority limited to `noodle.local`: `noodle names ca noodle.local` prints it and `noodle names trust noodle.local` asks you to trust it. Nothing is trusted automatically. ## Compose services and Kubernetes pods [#compose-services-and-kubernetes-pods] Guest access is opt-in. Keep a container or the managed k3s cluster running so the VM bridge stays up, find the bridge address, and serve on it: ```sh gateway=$(docker --context noodle run --rm alpine:3.22 awk '$2 == "host.docker.internal" { print $1 }' /etc/hosts) noodle model stop noodle model serve qwen3.5-4b --workloads "$gateway" noodle model endpoint ``` For a Compose service use the printed workload URL, or `OPENAI_BASE_URL=http://host.docker.internal:11345/v1`, and pass the key as `OPENAI_API_KEY`. For a pod, use the printed workload URL and read the key from a Kubernetes Secret. The listener never binds all host interfaces. This path uses plain HTTP on the VM network, so prompts and keys travel in cleartext there. Use it with workloads you trust. ## Models workspace [#models-workspace] The app's Models section has Chat, Create, Library, Apps and Connections. Follow-up messages include the completed exchanges of the current conversation. A cancelled or failed partial reply stays visible and is left out of later context. History is local and bounded to 30 conversations. Downloads in Library show byte progress and then checksum verification. Response metrics use a monotonic clock and the token counts the server reports. `tok/s avg` includes the wait for the first token, so it is not a GPU decode benchmark. # Apps (/docs/models/apps) The Apps page in the Models section lists a short catalog of web apps. Each one runs on your Mac and opens in your browser. Two of them are already pointed at your local model. ## The catalog [#the-catalog] | App | Category | Uses your model | Port on your Mac | | --- | --- | --- | --- | | Open WebUI | Chat | yes | 3000 | | AnythingLLM | Documents | yes | 3001 | | n8n | Automation | no | 5678 | n8n does not use your model on its own. To use it, add an OpenAI step and paste the address from **Connections**. See the [local API](/docs/models/api/). ## Install [#install] Press **Get** on a card. The card shows what is happening: downloading the app (the first time takes a few minutes), setting up, then starting. - Each app is a Compose project named `noodle-app-ID`, for example `noodle-app-open-webui`. The app needs Noodle Containers running, because it runs as containers. It uses the same engine as everything under [Containers](/docs/containers/). - Noodle writes the app's `compose.yaml` to `~/.noodle/apps/ID/` (under `NOODLE_HOME` when set) with owner-only permissions, because the file holds your model address, which works as a key. Then it runs `docker compose up -d`. - Apps that use your model get its address and the model ID filled in. The model ID is the model that is running, or else the one selected in the Library. Without a model address, **Get** stops with a message. - The web page is published on `127.0.0.1` only, so nothing outside your Mac can reach it. - Open WebUI and AnythingLLM keep their chats and files in a Docker volume. The first account you create in Open WebUI is the owner. ## Open, stop and start [#open-stop-and-start] The button on a card follows the state: **Get** when not installed, **Open** when running, **Start** when stopped. **Open** goes to the app's local `.localhost` name when Noodle serves one, and to `http://localhost:PORT` otherwise. Select a card to see the address and a **Stop** button. ## Update and remove [#update-and-remove] - **Update** (on the detail pane) checks for a newer image and recreates the app. Your data stays. - **Remove…** asks twice. The first confirms removing the app: it stops and leaves the list. The second asks whether to keep or delete its data. **Keep my data** brings your chats and files back if you install the app again. **Delete data** removes the volumes and cannot be undone. # Catalog and import (/docs/models/catalog) ## Catalog [#catalog] ```sh noodle model catalog noodle model pull qwen3-0.6b-mlx noodle model list ``` | ID | What it does | Size | License | |---|---|---|---| | `qwen3-0.6b-mlx` | Chat, smallest | 0.35 GB | Apache-2.0 | | `qwen3.5-2b` | Chat, small | 1.75 GB | Apache-2.0 | | `qwen3.5-4b` | Chat, the default on 16 GB Macs and larger | 3.06 GB | Apache-2.0 | | `gemma4` | Chat, GGUF | 3.35 GB | Apache-2.0 | | `qwen3-embedding-0.6b` | Embeddings | 0.35 GB | Apache-2.0 | | `qwen3-asr-0.6b` | Speech to text | 0.71 GB | Apache-2.0 | | `kokoro-82m` | Text to speech | 0.36 GB | Apache-2.0 | | `flux2-klein-4b` | Images | 4.62 GB | Apache-2.0 | | `ltx-2.5-video` | Video with sound, needs 24 GB or more | 38.79 GB | LTX-2 Community, free under 10 million dollars of yearly revenue | ## Which chat model for a 16 GB Mac [#which-chat-model-for-a-16-gb-mac] Qwen 3.5 4B, and the app recommends it there. We ran five candidates on an M4 Mac with 16 GB and picked it by measurement. It passed all 12 of our helper checks and peaked at 3,920 MB, inside the 6 GB we allow so containers keep their share of memory. Qwen 3.5 2B passed 11 of 12 and peaked at 2,406 MB. The 4B model decodes at about 35 tokens per second against 85 for the 2B, and started answering an 860-token prompt in 2.1 s against 0.8 s (time to first token). [Raw results](/data/models-default-pick.json). The 2B stays in the catalog as the small option and is the pick on Macs with less memory. Every catalog file and runtime download has a pinned SHA-256. Installation is atomic: weights appear only after every checksum passes. An interrupted download starts again on retry. Pause and resume is not implemented. For scripts, `--progress-json` prints one JSON object per line with `phase`, `receivedBytes` and `totalBytes`. The phases are `downloading`, `verifying` and `installed`. ## Hugging Face [#hugging-face] Public repositories with a single-file GGUF pull directly: ```sh noodle model pull hf.co/bartowski/Llama-3.2-1B-Instruct-GGUF:Q4_K_M noodle model run hf.co/bartowski/Llama-3.2-1B-Instruct-GGUF:Q4_K_M "Hello" ``` The form is `hf.co//[:]`. Quantization matching is case-insensitive and matches the whole token. Without a tag, Noodle prefers Q4_K_M, then the smallest GGUF by size. Projection files and draft sidecars are skipped. Split shards, missing quantizations and repositories without runnable GGUF weights are rejected with an error. Noodle reads the commit and each file's SHA-256 from the Hub metadata API, downloads over HTTPS at that commit and verifies the hash before install. If you sign in to Hugging Face under **Settings > Docker > Sign in**, Noodle sends that token to `huggingface.co` only, for metadata and downloads. Private and gated repositories have not been tested. ## Import [#import] ```sh noodle model import path/to/model.gguf my-gguf noodle model import path/to/mlx-folder my-mlx ``` Imports copy data into Noodle's store. An MLX folder needs a config, a tokenizer and Safetensors weights, flat. Symlinks, escaping shard references and executable Python files are refused, and Noodle does not enable remote model code. An accepted folder is not a promise that every architecture runs: support depends on the runtime. `noodle model rm ` removes Noodle's copy and nothing else. ## Idle sleep [#idle-sleep] Models unload after five idle minutes by default and reload on the next request, which frees the memory they used. The process, port and API key stay the same. Override the policy with `--keep-alive` or `NOODLE_MODEL_KEEP_ALIVE`; the flag wins. ```sh noodle model serve qwen3.5-4b --keep-alive 1h noodle model run qwen3.5-4b "Hello" --keep-alive 0 ``` Durations follow Ollama's convention: `5m`, `1h`, `1h30m`, `250ms`, bare integers as seconds, and any negative value to stay loaded until stopped. Changing the policy of a running model is rejected, so stop it first. Larger models take longer to reload than small ones. # Create (/docs/models/create) The Create tab turns a prompt into a picture, a spoken clip or a short video. It runs on this Mac, so nothing is uploaded. Download a model for the kind you want first. The tab shows only the kinds you have a model for. ## Pictures, speech and video [#pictures-speech-and-video] | Kind | Catalog model | Size | Notes | |---|---|---|---| | Image | `flux2-klein-4b` | 4.62 GB | Pick a size, the number of steps and an optional seed. A preview updates while it works. | | Speech | `kokoro-82m` | 0.36 GB | Type the text, pick a voice. | | Video | `ltx-2.5-video` | 38.79 GB | 2 or 4 second clips with sound. Needs a Mac with 24 GB of memory or more. | ```sh noodle model pull flux2-klein-4b noodle model pull kokoro-82m ``` Anything you make is kept in a grid on the Create tab. The video model is under a community license that is free below 10 million dollars of yearly revenue. Read it before you use clips commercially. Licenses for every catalog model are in the [catalog](/docs/models/catalog/). ## From code [#from-code] Each kind has an endpoint on the [local API](/docs/models/api/#create): `/v1/images/generations`, `/v1/audio/speech` and `/v1/video/generations`. # Noodle Models (/docs/models) Noodle Models lets you chat with an AI model that runs on your Mac, and connect your other tools to it. GGUF and MLX models both run natively on Apple silicon. The Models page in the app and the model commands work with the container daemon off. ```sh noodle model run qwen3.5-4b ``` That downloads Qwen 3.5 4B (3.06 GB, 4-bit MLX, Apache-2.0), checks it against a pinned checksum, starts it and opens a chat in the terminal. Nothing leaves the Mac after the download. If you would rather click, open the Models page in the app, pick a model and press Run. ## What you get [#what-you-get] - A local endpoint at `http://models.noodle.local/v1` with a saved API key. `noodle model endpoint` prints both, and `noodle model key --rotate` replaces the key. - A Models section in the app with Chat, Create, Library, Apps and Connections. Library shows downloads in progress, and Apps installs Open WebUI, AnythingLLM or n8n in one click. - Chat with images, one video and one audio clip per message: attach, paste or drag them into the message box. Each is offered only when the model can take it. A message holds up to four images. - Create pictures, speech and video from a prompt, see [Create](/docs/models/create/). - Embeddings, speech to text and text to speech through the same API. - Control-Option-Space opens chat from any app. Shortcuts and Spotlight get two actions, Ask Noodle and Open Noodle Chat. - A choice of how long a model stays in memory, and a model folder that can live on an external drive. See [Settings](/docs/models/settings/). - Optional access from your phone or another computer on your network, off until you turn it on. - Imports from a GGUF file, an MLX folder or a public Hugging Face repository. - Optional access for Compose services and Kubernetes pods, bound to the VM bridge only when you ask. ## Where to go next [#where-to-go-next] - [Quickstart](/docs/models/quickstart/) runs a model and sends a request. - [Catalog and import](/docs/models/catalog/) covers pulling, Hugging Face IDs, imports and idle sleep. - [Create](/docs/models/create/) covers images, speech and video. - [Apps](/docs/models/apps/) installs Open WebUI, AnythingLLM or n8n. - [Settings](/docs/models/settings/) covers memory, the model folder and network access. - [Local API](/docs/models/api/) covers endpoints, named URLs and workload access. Noodle Models runs models. It does not train them. # Quickstart (/docs/models/quickstart) You need Noodle [installed](/docs/install/). The container daemon can stay off. ## 1. Run a model [#1-run-a-model] ```sh noodle model run qwen3.5-4b ``` The first run downloads the model and the engine that runs it, checks both against their SHA-256 hashes, and opens a chat. Prefer the app? Open Models, pick a model and press Run. Type `/exit` to leave. To send one prompt and exit, pass it after the model ID: ```sh noodle model run qwen3.5-4b "Why does nginx return 502?" ``` For an MLX model, the small catalog entry is Qwen3 0.6B in four-bit weights (351 MB): ```sh noodle model run qwen3-0.6b-mlx ``` ## 2. Start only the API [#2-start-only-the-api] ```sh noodle model serve qwen3.5-4b noodle model endpoint ``` `endpoint` prints the base URL, the model ID and the API key. Noodle creates the key on first use and keeps it until you run `noodle model key --rotate`. ## 3. Call it [#3-call-it] ```sh curl http://models.noodle.local/v1/chat/completions \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '{"model":"","messages":[{"role":"user","content":"Hello"}]}' ``` Replace `` and `` with the values from `noodle model endpoint`. Any OpenAI client works with the same base URL and key. Streaming uses server-sent events when `stream` is true. ## 4. Ask from anywhere [#4-ask-from-anywhere] With the app running, press Control-Option-Space to open chat from any app. You can also run Ask Noodle or Open Noodle Chat from Shortcuts or Spotlight. Chat takes pictures, a video and an audio clip too: attach, paste or drag them into the message box when the model can read them. ## 5. Stop [#5-stop] ```sh noodle model status noodle model stop ``` `stop` ends the server. The key stays the same for the next start. A model also unloads after idle time and reloads on the next request. See [idle sleep](/docs/models/catalog/#idle-sleep). # Settings (/docs/models/settings) Open Settings in the app and choose Models. Every setting here has a command too. ## Keep a model loaded [#keep-a-model-loaded] Pick how long a model stays in memory after you last used it: 30 seconds, 5 minutes, 1 hour or keep loaded. The default is 5 minutes. When time is up the model unloads and gives its memory back, and the next request loads it again. Unload Now does it right away. ```sh noodle model keep-alive # show the saved choice noodle model keep-alive 1h # save a new one noodle model keep-alive --reset # back to 5m ``` A new choice applies the next time a model starts. A model that is running keeps its current setting until you unload it. The command also takes durations such as `250ms` or `1h30m`, `0` to unload after one idle second, and any negative value to stay loaded. See [idle sleep](/docs/models/catalog/#idle-sleep). ## Model folder [#model-folder] New downloads and imports go to the folder you choose, including a folder on an external drive. Models you already installed stay where they are. ```sh noodle model location # print the folder noodle model location /Volumes/Fast/models noodle model location --reset # back to the default ``` If the drive is not connected, Settings says so. Connect it or choose another folder. ## Use from other devices [#use-from-other-devices] Off by default, so only this Mac can reach your models. Turn on "Allow other devices to use my models" and the app shows an address and a key. Another device on your network can then chat with the models on this Mac, and the prompts run here. ```sh noodle model network on noodle model network # on
, or off noodle model key # print the key noodle model key --rotate # make a new key, the old one stops working ``` Every request needs the key. Turning access on or rotating the key restarts a running model. Traffic on the network is plain HTTP, so use it on a network you trust. Details are in [Security](/docs/security/#models-network). ## Open chat from anywhere [#open-chat-from-anywhere] Control-Option-Space opens Models chat from any app. Noodle also adds two actions to Shortcuts and Spotlight: Ask Noodle, which takes a prompt and returns the answer, and Open Noodle Chat. # Free disk space (/docs/runners/clean) ```sh noodle runners clean --dry-run noodle runners clean ``` `--dry-run` deletes nothing and prints what would be freed. `--older-than DAYS` sets the cutoff for tiers that look at age (default 14). `--json` prints the report for scripts, including `engine: false` when the Noodle engine was down and the container, cache and image tiers were skipped. The exit code is 1 when a deletion failed. ## Tiers [#tiers] Each tier runs in this order. The report shows the space freed per tier. 1. **Leftovers from finished or crashed jobs.** Work folders untouched for 10 minutes and not in use by any process, partial runner downloads and stopped job containers. A container that is only created, or belongs to a running runner, is kept. 2. **Runner logs** not written to within the cutoff. 3. **Old GitHub runner downloads.** The version Noodle currently uses is kept. 4. **Per-repo toolchain caches** of repos with no job within the cutoff. A repo with no recorded job is kept. The next job there reinstalls its tools. 5. **Runner images** of older runner versions (plain `N.N.N` tags only), unused within the cutoff. ## What it never touches [#what-it-never-touches] - A repo with a job in progress, and anything a running job holds. These are listed as skipped. - Anything outside the Runners folder, and any path that resolves outside it through a symlink. - Your own containers, images and volumes, and folders such as Xcode's DerivedData or Homebrew. A macOS job runs as you, so its build output may sit in those folders. Noodle reports their size and leaves them. # Check this Mac (/docs/runners/doctor) ```sh noodle runners doctor ``` Prints one line per check: `ok`, `warning` or `problem`, with a one-line fix where there is one. It exits with 1 when any check is a problem, so a script can stop on it. `--json` prints the same findings as JSON. The command only reads: it changes no setting and needs no `sudo`. ## What it checks [#what-it-checks] - **GitHub sign-in.** A token is saved, and it can manage runners for each added repo (the repo scope and admin access). - **GitHub is reachable.** The API host resolves and answers over HTTPS. - **Free disk space.** On the volume that holds the Noodle home. Under 15 GB is a warning. Under 10 GB is a problem, and the helper holds new jobs until there is room again. - **Runners helper.** It is running, and set to start again after a crash or a restart. - **GitHub runner download.** The pinned runner is installed (it was checked against its SHA-256 when downloaded), or it can be downloaded. - **Runner starts.** A problem when the last runner start of a kind failed and none has worked since. It shows the last line of the runner log and where the log is. - **Container engine.** It answers, which Linux jobs need. - **Sleep.** Whether this Mac sleeps while idle on power, and, on a laptop, that a closed lid stops jobs. When a repo has macOS jobs turned on, it also checks: - **Xcode.** One is selected, its licence is accepted and its first-launch setup is done. The fixes for these need `sudo`, so you run them yourself. - **Automatic login.** After a restart a Mac waits at the login screen until someone signs in, and macOS jobs run in your session. This is a warning, never changed for you. Automatic login is not available while FileVault is on. # Noodle Runners (/docs/runners) Change one line in a workflow and its jobs run on your Mac instead of a GitHub-hosted machine: ```yaml jobs: test: runs-on: [self-hosted, noodle] ``` Noodle Runners uses GitHub's official runner, one single-use runner per job. When GitHub queues a job that asks for `noodle`, Noodle registers a runner, the job runs, and the runner is unregistered and deleted. Right after a job, one fresh runner waits for 5 minutes so a quick follow-up push does not wait for registration. - **Linux jobs** run in a container on Noodle's engine, arm64. - **macOS jobs** run directly on your Mac with the Xcode you have installed. Turn them on per repo. - **Nothing runs while idle.** With runners off there is no process, no timer and no network traffic. With runners on, the helper asks GitHub about each added repo every 10 seconds, and a warm runner stays up for 5 minutes after a job. - **Care for the Mac.** Before it starts a runner, the helper checks free disk on the volume holding the Noodle home and the system's memory pressure. Below 10 GB free, or when the Mac reports critical memory pressure, it starts no new runner and the job stays queued on GitHub. A job already running is never stopped. It resumes by itself once there is 15 GB free and memory is back to normal. `noodle runners status` and `noodle runners list` show a line such as `Holding new jobs: 6 GB free on the Noodle volume, needs 10 GB`. - **Fast follow-ups.** After a job, one runner per repo and kind stays registered for 5 minutes, so the next push skips registration. A repo's first job starts on the first poll, within about 10 seconds. - **Toolchains stay installed.** Each repo keeps one cache volume. `~/.cache` (with the runner tool cache inside it) and `.bun`, `.cargo`, `.rustup`, `.npm`, `.gradle`, `.m2`, `.nuget`, `.deno` and `.local` live there, so `setup-*` steps are near instant on the next job. - **Your Mac stays awake** while a job runs, and sleeps normally once the last one ends. On a public repo, a pull request from a fork can start a job on your Mac. Noodle refuses public repos unless you pass `--allow-public`. Read [Security](/docs/runners/security/) first. ## Next [#next] - [Quickstart](/docs/runners/quickstart/): sign in, add a repo, push. - [Labels](/docs/runners/labels/): which `runs-on` lines Noodle picks up. - [macOS jobs](/docs/runners/macos/): Xcode builds on your Mac. # Labels (/docs/runners/labels) GitHub gives a job to a runner that has every label in its `runs-on` list. Noodle only claims a job whose labels fit one of its runner kinds and include `noodle` or `noodle-macos`. Other self-hosted jobs are left alone. | Kind | Labels the runner has | Example `runs-on` | | --- | --- | --- | | Linux | `self-hosted`, `noodle`, `linux`, `arm64` | `[self-hosted, noodle]` | | macOS | `self-hosted`, `noodle-macos`, `macos`, `arm64`, `xcode-` | `[self-hosted, noodle-macos]` | A plain `[self-hosted, noodle]` job can never land on the Mac itself, because the macOS runner does not carry the `noodle` label. To pin a Xcode version, add its label, for example `[self-hosted, noodle-macos, xcode-26]`. The job waits if this Mac has a different Xcode. ## How many at once [#how-many-at-once] Noodle starts as many runners as there are queued jobs, up to two Linux runners and one macOS runner at a time. After a job, one runner per repo and kind stays registered for 5 minutes to take the next push. Runners that end or fail to start are unregistered, so none pile up offline on GitHub. ## What a Linux job has [#what-a-linux-job-has] Linux jobs run in GitHub's own runner image, `ghcr.io/actions/actions-runner`. It is smaller than the hosted `ubuntu-latest` image: a job installs the system packages it needs with `sudo apt-get`. Node's arm64 build, for example, needs `libatomic1`. ## Not supported [#not-supported] - Windows jobs. - x86-only Linux jobs. Linux runners are arm64. - Organisation-level runners. Add each repo. # macOS jobs (/docs/runners/macos) macOS jobs are off until you turn them on for a repo: ```sh noodle runners add owner/repo --macos ``` Then use `runs-on: [self-hosted, noodle-macos]`. ## What happens per job [#what-happens-per-job] 1. Noodle downloads GitHub's osx-arm64 runner once and checks it against a pinned SHA-256. 2. Each job gets a copy of that install as a fresh work folder (an APFS clone, so it is instant and takes no extra space). 3. The job runs as you, with a clean environment. 4. The folder is deleted when the job ends. The runner adds an `xcode-` label from the Xcode on this Mac. ## Toolchains [#toolchains] ```sh noodle runners toolchains [--json] ``` Lists the build tools a macOS job sees: the selected Xcode (and other installed ones), Swift, Node, Bun, Python, Rust, Cargo, Go, Ruby, CocoaPods and the Docker CLI. Noodle looks for them on the same PATH a job gets, only reads versions, and never installs anything or opens an install dialog. Tools that are not there are left out, and a tool that does not answer in time keeps its previous version instead of counting as removed. It also prints the labels this Mac offers. When a macOS runner starts, Noodle saves this list (at most once every 5 minutes). The command compares the tools now with that list and prints each change, for example `Xcode 26.1 -> 26.2 since the last job`, so a build that turned red after an update is easy to explain. `noodle runners status` reads that saved list without running any tool, and shows one line only until a macOS job has run after the change. A macOS job runs on your Mac as you. A workflow can read and change anything you can, including other folders and the keychain prompts you accept. Turn this on only for repos whose workflows you trust. ## Sleep [#sleep] While a job runs, Noodle keeps the Mac from idle sleep. A laptop with its lid closed still sleeps unless it is on power with an external display. GitHub fails a job after a long loss of contact and does not rerun it on its own. # Quickstart (/docs/runners/quickstart) You need Noodle [installed](/docs/install/) and a repo you administer. ## 1. Sign in to GitHub [#1-sign-in-to-github] In the app, open **Settings → Docker**, choose **GitHub Container Registry** under **Service**, turn on **Also use for git clone and runners**, then sign in with the browser and save the token. That gives the token the `repo` scope that runner registration needs. Noodle reads the token through `git credential fill` and never writes it to a file or a log. ## 2. Add a repo [#2-add-a-repo] In the app, open **Runners**, pick a repo from the list and turn it on. Or from a terminal inside the repo: ```sh noodle runners add ``` With no name, Noodle uses the folder's GitHub `origin`. You can also name it: `noodle runners add owner/repo`. Adding the first repo turns runners on. ## 3. Change one line [#3-change-one-line] ```yaml jobs: test: runs-on: [self-hosted, noodle] ``` Not sure which jobs fit? `noodle runners check owner/repo` reads the workflow files through the GitHub API and suggests a `runs-on` line per job. It never edits them. Its suggestions come from keyword matching, so treat them as hints. ## 4. Push [#4-push] The first job shows up within about 10 seconds. For 5 minutes after a job, a warm runner waits, so the next push skips registration. Watch it in the app or with: ```sh noodle runners status noodle runners list ``` `list` shows each repo's last job, its result and a link. ## Turn it off [#turn-it-off] ```sh noodle runners stop ``` This ends idle runners, cancels a job in progress and removes their containers and folders. Off stays off after a restart. `noodle runners remove owner/repo` also deletes that repo's cache volume. # Security (/docs/runners/security) A self-hosted runner runs whatever the workflow says. Decide which repos get one with that in mind. ## Public repos [#public-repos] On a public repo, anyone can open a pull request from a fork, and that pull request can start a workflow. GitHub's own advice is to avoid self-hosted runners on public repos for this reason. `noodle runners add` checks the repo with GitHub and stops if it is public, or if it cannot confirm it is private: ```text owner/repo is a public repo. A pull request from a fork can run code with full access to Noodle's Docker engine, including every container and volume. Pass --allow-public only if you accept that. ``` If you pass `--allow-public`, also set **Settings → Actions → Fork pull request workflows → Require approval for all outside collaborators** on the repo. ## What a job can reach [#what-a-job-can-reach] | | Linux job | macOS job | | --- | --- | --- | | Runs as | a container on Noodle's engine | you, on this Mac | | Docker | the full Noodle engine, through its socket | whatever you can reach | | Files | its container, plus any volume it mounts | anything you can read or change | | Cache | one volume per repo, shared by that repo's jobs | none | Jobs of one repo share its cache volume, including its installed toolchains (`.cargo`, `.npm`, `.bun` and others), and jobs from fork pull requests share it too. A runner that waits warm for 5 minutes after a job can take the next job of that repo. Every Linux job also gets the Docker socket, so it can mount another repo's cache. This is not isolation between repos. ## The GitHub token [#the-github-token] The token is read through `git credential fill`, held in memory and sent only in the `Authorization` header. It never appears in arguments, logs, state files or errors. Three rejected requests in a row stop the runners and ask you to sign in again. ## Start failures [#start-failures] If a runner exits with an error, or dies within 30 seconds, without taking a job, Noodle waits before the next start of that kind: 30 seconds, then 60, then 120 on every failure after that. It counts a start as failed only after GitHub confirms the runner took no job, and shows a failure for one hour. `noodle runners status` and `noodle runners doctor` show the last error line and the log file. If jobs stay queued, check there first. One working start clears the notice.