Skip to main content
Install, register a backend, initialize, generate. The same four steps everywhere.

1. Install

Add the package in Xcode via File → Add Package Dependencies… with the URL https://github.com/RunanywhereAI/runanywhere-swift, or declare it:
Package.swift
Requires iOS 17.5+ or macOS 14.5+.

2. Register a backend, then initialize

Register backends before initialize(). The C++ plugin registry has to know which engines exist before the first model load, otherwise loading fails with “No provider could handle the request”.

3. Generate

4. Stream

Full Swift guide →

What happens on the first call

Generation auto-loads whatever it needs. When options.model names a model that is not on disk, the SDK downloads it first, so the first call is slow and later calls are not. To control when that cost is paid, download and load explicitly:

Next

SDK overview

What differs between platforms

Tool calling

Let the model call your functions