Choose Your SDK¶
Not sure which SDK to use?
Pick the right one for your platform and use case:
| React Native | Flutter | Kotlin | Swift | Python | Rust | CLI | C++ | |
|---|---|---|---|---|---|---|---|---|
| Platforms | iOS, Android | iOS, Android, macOS | Android, iOS (KMP) | iOS, macOS | Arm Linux, macOS | All | macOS, Linux | All |
| Install | npm | build | build | build | build | cargo | brew / source | header |
| LLM | ||||||||
| Streaming | ||||||||
| Vision | ||||||||
| Transcription | ||||||||
| Function Calling | ||||||||
| RAG / Embeddings | ||||||||
| Cloud Fallback |
Quick Recommendations¶
Building a mobile app?
- React Native -- already have a React Native project? Just
npm installand go - Flutter -- cross-platform mobile + Mac with full native bindings
- Kotlin -- native Android apps or Kotlin Multiplatform
- Swift -- native iOS/macOS apps with Apple NPU acceleration
Server-side or scripting?
- Python -- server-side inference, batch processing, or rapid prototyping
- CLI -- quick model testing and interactive sessions without writing code
Embedding in a native app?
- C++ -- game engines, native desktop apps, or any C/C++ project
- Rust -- systems-level integration with safe FFI bindings
SDK Documentation¶
- React Native -- npm package with React hooks (
useCactusLM) - Python -- Module-level FFI bindings, mirrors the C API
- Swift -- XCFramework for iOS/macOS with NPU support
- Kotlin / Android -- JNI bindings + Kotlin Multiplatform support
- Flutter -- Dart FFI bindings for Android, iOS, and macOS
- Rust -- Auto-generated FFI bindings via bindgen
- C++ / Engine API -- Direct C FFI for maximum control
Getting Started¶
Once you've picked your SDK, head to the Quickstart to install and run your first completion.