pubspec.yaml
The core package is required. Add only the backends you use.pubspec.yaml
pubspec.yaml
Requirements
iOS
Info.plist:
Android
android/app/src/main/AndroidManifest.xml
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Add the RunAnywhere Flutter SDK to your app
dependencies:
runanywhere: ^0.20.24
runanywhere_llamacpp: ^0.20.24
runanywhere_onnx: ^0.20.24
runanywhere_qhexrt publishes at 0.20.19, not 0.20.24. Pin it separately rather than aligning
it with the others; 0.20.24 does not exist on pub.dev for that package.dependencies:
runanywhere: ^0.20.24
runanywhere_llamacpp: ^0.20.24
runanywhere_onnx: ^0.20.24
runanywhere_mlx: ^0.20.24
runanywhere_qhexrt: ^0.20.19
dependencies:
runanywhere: ^0.20.24
runanywhere_llamacpp: ^0.20.24
dependencies:
runanywhere: ^0.20.24
runanywhere_onnx: ^0.20.24
dependencies:
runanywhere: ^0.20.24
runanywhere_llamacpp: ^0.20.24
runanywhere_onnx: ^0.20.24
dependencies:
runanywhere: ^0.20.24
runanywhere_mlx: ^0.20.24
runanywhere_qhexrt: ^0.20.19
flutter pub get
| Item | Minimum |
|---|---|
| Dart SDK | >=3.12.0 <4.0.0 |
| iOS | 17.5 |
| Android | API 24, arm64 |
cd ios && pod install
Info.plist:
<key>NSMicrophoneUsageDescription</key>
<string>Used for on-device speech recognition</string>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
import 'package:runanywhere/runanywhere.dart';
import 'package:runanywhere/runanywhere_protos.dart';
import 'package:runanywhere/runanywhere.dart';
import 'package:runanywhere_llamacpp/runanywhere_llamacpp.dart';
await LlamaCpp.register();
await RunAnywhere.initialize(apiKey: '', baseUrl: '');