> ## Documentation Index
> Fetch the complete documentation index at: https://docs.runanywhere.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Introduction

> RunAnywhere React Native SDK for iOS and Android

The RunAnywhere React Native SDK runs language, speech, and vision models on the device.
Prompts, audio, and images stay on the phone, and everything keeps working offline.

```ts theme={"theme":"css-variables"}
import { RunAnywhere } from '@runanywhere/core'
import { LlamaCPP } from '@runanywhere/llamacpp'

await LlamaCPP.register()
await RunAnywhere.initialize({})

const result = await RunAnywhere.llm.generate('Name three colours')
console.log(result.text)
```

## Requirements

| Item | Minimum |
| - | - |
| React Native | 0.83.1 (peer dependency) |
| React | 19.0.0 (peer dependency) |
| iOS | 17.5 |
| Android | API 24, compile and target SDK 36 |

## Packages

| Package | Published version | Role |
| - | - | - |
| `@runanywhere/core` | 0.20.27 | SDK lifecycle and every capability API. Required. |
| `@runanywhere/llamacpp` | 0.20.27 | LlamaCPP backend: GGUF LLM and VLM |
| `@runanywhere/onnx` | 0.20.27 | ONNX and Sherpa: STT, TTS, VAD |
| `@runanywhere/mlx` | 0.20.27 | Apple MLX, physical iOS devices only |
| `@runanywhere/qhexrt` | 0.20.19 | Qualcomm Hexagon NPU, Android arm64-v8a only |

> [!NOTE]
>
> `@runanywhere/qhexrt` publishes at **0.20.19**, not 0.20.27. Four of the five move together;
> QHexRT does not.

## The namespaces

| Namespace | What it does |
| - | - |
| `llm` | Text generation, streaming, tools, structured output |
| `vlm` | Image plus prompt |
| `stt` | Speech to text |
| `tts` | Text to speech |
| `vad` | Voice activity detection |
| `voice` | A full spoken conversation |
| `rag` | Retrieval over your own documents |
| `models` | Registry, download, load, unload |
| `embeddings` | Text vectors |
| `rerank` | Reorder results against a query |
| `lora` | Adapters on the loaded base model |
| `images` | Image generation |
| `diarization` | Who spoke when |
| `segmentation` | Labelled regions in an image |
| `cua` | Computer-use prompt and parse scaffold |

Plus five platform services: `storage`, `logging`, `auth`, `pluginLoader`, `solutions`.

Streaming is `AsyncIterable` throughout.

## Differences worth knowing up front

React Native's surface is close to the other SDKs but not identical:

* Input constructors are **plural**: `AudioInputs` and `ImageInputs`.
* There is no `stt.openStream` or `vad.openStream`. Use the pull-shaped
  `transcribeStream` and `detectStream`.
* There is no `models.get`. There is `models.loaded(category)`.
* `RunAnywhere.deviceId` is a **promise**.
* `capabilities()` is synchronous.

## Where to go next

> [card] [Installation](https://docs.runanywhere.ai/react-native/installation.md)
>
> Packages and native setup

> [card] [Quick Start](https://docs.runanywhere.ai/react-native/quick-start.md)
>
> A working chat

> [card] [Text generation](https://docs.runanywhere.ai/react-native/llm/generate.md)
>
> Prompts and options

> [card] [Voice agent](https://docs.runanywhere.ai/react-native/voice-agent.md)
>
> Speech in, speech out


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.