# Embed Loom

> Run Loom inside an app, including on iPhone, with the same answers as on a Mac.

Loom is headless, so an app can either call an agent's API or embed Loom itself. Embedded, the app
calls the same functions the HTTP API calls, in process.

## On iPhone

Loom runs inside an iPhone app as the same package with fewer parts. iOS allows no extra processes,
so the phone has no API server, MLX, `codex` or `claude` CLI, or Singer taps. Instead the app supplies
what it can:

| Bundle value | The app supplies |
|---|---|
| `inference.provider: host` | The model and its transport, such as Apple Foundation Models. |
| `transport: host` | A running adapter for a source. |
| `timezone: host` | The time zone, each cycle. |

## One rule holds it together

A bundle gives the **same answer** on every host, or the host **refuses it at load**, with the reason.
Nothing behaves differently in silence, and accommodations for one platform never change Loom on
another.

## Providers for apps

The Loom repository's `connectors/providers/` holds an Apple Foundation Models provider and a bridge
example for wiring a host's model into Loom.