# 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 and points you there. See the [CLI reference](/docs/cli/) for every command. ## 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 and MCP [#skills-and-mcp] Noodle ships no MCP server. A skill is a plain instruction file, so the starter below is enough to teach a coding tool the three surfaces. Paste it into the tool's skill or rules file. ```md # Noodle Noodle runs Docker-compatible containers and local models on this Mac. - Check state first: `noodle status --json` (exit 3 means the daemon is down; run `noodle start`). - Run containers with `docker --context noodle run`. Compose: `docker --context noodle compose up -d`. - The Docker API socket path is `paths.socket` in the status JSON. - Local models: `noodle model serve `, then `noodle model endpoint` for the OpenAI base URL and key. - Docs as text: /llms.txt and /llms-full.txt on the Noodle site. ``` # Benchmarks (/docs/benchmarks) These are development 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. 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. | Test | Noodle | Kiri 0.2.2 | OrbStack | Docker Desktop | Result | | --- | ---: | ---: | ---: | ---: | --- | | `docker run`, bridge | 14.99 ms | 50.85 ms | 171.67 ms | 130.02 ms | Noodle | | `docker run --network none` | 14.18 ms | 13.65 ms | 106.35 ms | 97.88 ms | Noodle and Kiri tie | | API lifecycle, bridge | 2.01 ms | 44.08 ms | 155.11 ms | 112.88 ms | Noodle | | API lifecycle, no network | 1.76 ms | 1.82 ms | 84.43 ms | 72.50 ms | Noodle and Kiri tie | | Parallel starts | 161.36/s | 26.51/s | 11.87/s | 14.13/s | Noodle | | Cold pull (network) | 2560.20 ms | 896.79 ms | 3612.31 ms | 3591.59 ms | Kiri, 2.9× faster | | `docker build`, uncached and cached | failed | 525.13 / 460.80 ms | 744.11 / 231.56 ms | 472.13 / 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. Against Noodle's own targets: 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.45 s 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. # CLI (/docs/cli) `noodle` manages the runtime, models and runners. Docker commands go to the real `docker` CLI with `--context noodle`. Run `noodle help` or a command's help for its full options. | Command | What it does | | --- | --- | | `noodle setup [--use|--no-use] [--tools] [--path]` | Sets up clients, the Docker context and LaunchAgent. Selects the context when no other engine is running; `--use` forces it, `--no-use` never. `--tools` prefetches plugins. | | `noodle uninstall [--delete-data --yes]` | Removes Noodle-owned setup items; data is kept unless deletion is selected. | | `noodle start` | Starts the daemon. | | `noodle stop` | Stops the daemon. | | `noodle status [--json]` or `noodle status --startup` | Reports daemon status or Docker API, VM and guest readiness. | | `noodle doctor [--fix]` | Reports or repairs stale installation items. | | `noodle tools install [--no-link] [name...]`, `status`, `remove` | Manages pinned Docker clients and BuildKit. | | `noodle model` | Runs `catalog`, `pull`, `import`, `list`, `run`, `serve`, `stop`, `status`, `endpoint`, `rm`, `logs`, `location`, `keep-alive`, `key` and `network`. `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, and `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`. | | `noodle proxy [--json]` or `noodle proxy set --stdin` | Reads or changes the registry proxy and optional new-container environment. | | `noodle import SOURCE [--list] [--all] [--images] [--volumes] [--containers] [--only names] [--on-conflict skip\|overwrite\|rename] [--retries N] [--dry-run]` | Copies from a Docker context, Unix socket or running `podman` machine. Stop volume writers before copying. | | `noodle diagnostics [--list] [-o file.tar.gz]` | Lists or writes a scrubbed local diagnostic archive. | | `noodle names [--json]`, `names add NAME PORT`, `names remove NAME` or `noodle names ca\|trust\|untrust [localhost\|noodle.local]` | Lists local names, names a process on this Mac or manages the local CA. | | `noodle dev [name] [--] command [args...]` | Runs a host development server at a named local URL. | | `noodle link CONTAINER[:PORT] [--yes] [--allow-privileged] [--json]`, `list [--json]`, `stop ID\|--all` | Manages public HTTPS links. | | `noodle finder mount [mountpoint]`, `unmount`, `status` | Opens a read-only Finder view of Noodle data. | | `noodle share list`, `add FOLDER`, `remove FOLDER [--restart]` | Manages approved absolute folders for file binds. `--restart` ends access for the privileged VM and the Kubernetes node now instead of at their next restart. | | `noodle machine` | Manages Linux machines: `create`, `list`, `start`, `stop`, `restart`, `shell`, `delete` and `status`. See [Machines and raw VMs](/docs/containers/machines/). | | `noodle kubernetes` | Manages the local k3s cluster: `start`, `stop`, `status`, `delete`, `kubeconfig`, `use-context` and `shared-folders [on\|off]`. | | `noodle pod` | Manages pods with `create`, `ps`, `inspect`, `start`, `stop`, `restart`, `rm`, `logs` and `top`. Add members with `docker run`, see [noodle pod](/docs/containers/#pod). | | `noodle runners add [owner/repo] [--macos] [--allow-public]`, `remove`, `list`, `repos`, `check`, `start`, `stop`, `status` | Manages GitHub Actions runners on this Mac. See [Runners](/docs/runners/). | | `noodle kube play FILE [--down]` or `noodle kube generate NAME` | Runs or generates local YAML workloads. | | `noodle update check\|stage\|install\|confirm\|rollback\|status` | Manages signed app updates. | | `noodle migrate-disk [--dry-run]` | Backs up and converts an old non-journaled data disk. | | `noodle builds list [--json]`, `inspect ID`, `logs ID`, `rm ID\|--all` | Reads or removes build history. | | `noodle image layers IMAGE [--json]` | Shows image layers. Use `docker --context noodle image` for other image commands. | | `noodle scan IMAGE [--json] [--fail-on SEVERITY]`, `--history [IMAGE]`, `--clear-cache` | Scans images or manages scan history. | | `noodle sbom IMAGE [--output FILE]` | Generates an SBOM. | | `noodle container edit NAME` or `noodle container ports NAME [--json]` | Edits container settings or lists ports. Use `docker --context noodle container` for other container commands. | | `noodle logs [engine\|linux\|privileged] [-n N] [--grep text] [-f] [--raw]` | Reads Noodle component logs. Use `docker --context noodle logs NAME` for container logs. `--raw` disables secret redaction. | | `noodle debug boot-console [--disable]` or `noodle debug run ROOTFS COMMAND [args...]` | Captures the boot console or runs a command in a throwaway VM. | | `noodle debug bench [--run [IMAGE]]` | Times the API and optionally `docker run`. | | `noodle version` | Prints the version. | | `noodle help` | Prints usage. | 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. ## 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. ## 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. 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) Noodle is a development build. 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. Volumes and tmpfs 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, with no exception. `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. # 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 and there is no notarized build, so there is nothing to update to today. The updater is off in the current build. ### 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`. **Checked:** the Swift unit tests (`UpdateTests.swift`, `UpdatePolicyTests.swift`) passed with the rest of `swift test` (205 tests in 42 suites, plus 31 in 5 suites), 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. The first native build also downloads BuildKit support from the release asset URL sealed into the app. Its byte size and SHA-256 must match before extraction. The download and its licenses stay under `~/.noodle/tools` (or `$NOODLE_HOME/tools`) and are checked before reuse. A corrupt or partial copy is fetched again. Run `noodle tools install buildkit` while online to prefetch it. Offline builds need that cached copy. **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`. ## 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 | | **All three tools, if used** | `noodle tools install` prefetches them all | **117,369,550 bytes**, about 112 MiB | | BuildKit v0.35.0 image | first native build | not measured | | BuildKit support (the GitHub release) | first native build or `noodle tools install` | release-specific size in the app's `on-demand.json` | | 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 | ### 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. Name `docker-compose` or `docker-buildx` with `tools install` to fetch one. 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. ## 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`. # Machines (/docs/containers/machines) A machine is a persistent Linux VM of its own. A raw VM runs one command and disappears. ## 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 noodle-machine helper not found`. **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. A service on the Mac bound only to `127.0.0.1` is unreachable from a container through `host.docker.internal`; that name resolves to the Mac side of the VM's NAT link. ## 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`. # 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. ## Stop [#stop] ```sh docker --context noodle rm -f web noodle stop ``` # 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. # 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 | see the model card | | `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 | see the model card | | `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 answered an 860-token prompt in 2.1 s against 0.8 s. The 2B stays in the catalog as the small option and is the pick on Macs with less memory. Raw numbers are in `docs/performance/models-default-pick` in the repository. 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. - [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. # 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. - **Fast follow-ups.** After a job, one runner per repo and kind stays registered for 5 minutes, so the next push starts in about 3 seconds. 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. ## 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. 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 starts in about 3 seconds. 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 runners of one kind die three times in a row within 30 seconds without taking a job, Noodle pauses that kind for five minutes and shows the last error line, so a broken setup does not keep registering runners on GitHub.