- Swift
- Kotlin
- React Native
- Flutter
- Web
1. Install
Add the package in Xcode via File → Add Package Dependencies… with the URLhttps://github.com/RunanywhereAI/runanywhere-swift, or declare it:Package.swift
2. Register a backend, then initialize
Register backends beforeinitialize(). 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
What happens on the first call
Generation auto-loads whatever it needs. Whenoptions.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