Nativ SDK: open-weight models inside your Swift app

Neywa Labs released nativ-sdk-swift, an MIT-licensed MLX Swift package for running Hugging Face models on-device in Apple apps.

Swift developers can now add on-device chat, image generation, embeddings and yes/no decision calls to an Apple app with a few lines of code, without running a separate local server. Neywa Labs published nativ-sdk-swift on Nov 24, 2026. It is MIT-licensed, built on MLX Swift, and targets macOS, iOS, iPadOS, tvOS and visionOS. @deliprao flagged it as a release from @Prince_Canuma that brings open-weight Hugging Face models to Apple devices.

The README shows four model types. NativModel handles text and multimodal chat, NativImageModel runs FLUX.2-klein-4B, NativEmbeddingModel loads all-MiniLM-L6-v2, and NativDecisionModel answers typed questions about an input, such as whether a support message asks for a refund. The APIs use Swift concurrency, with streaming, conversation history, tool calls and cancellation. Models download from Hugging Face on first use and are cached. You can also load a local checkpoint with .directory(url). AGI Hunt reports the SDK was announced at the first Nativ event, alongside a Swift multimodal engine called Build Kit and an agentic model called Tia.

This fills a different slot from the local-server tools many builders already run. oMLX and Neywa's own Nativ Mac app both expose OpenAI-compatible endpoints on localhost for agents and editors. The SDK puts the model inside your shipped app, which is the route that matters for iPhone and iPad.

The requirements are specific. You need Swift 6.3+, and inference runs only on an Apple silicon Mac or a physical device with a supported Metal GPU. The README also says model checkpoints carry their own licenses, separate from the SDK's MIT license. It doesn't give memory figures per model. It only says to pick a size and quantization that fit the device. The tweet mentions watchOS, but the README's platform list doesn't include it. The install instructions pin the package to branch: "main", so expect it to move under you.

Try it: on an Apple silicon Mac, clone the repo and run swift run nativ chat --model nativ-community/LFM3-Omni-2B-4bit. If a chat starts in your terminal after the first model download, the stack works on your machine. That's your cue to try the decision model on a classification step you currently send to a cloud API.

Sources