Skip to main content
The RunAnywhere Kotlin SDK runs language, speech, and vision models on the device. Prompts, audio, and images stay on the phone, and everything keeps working with no network. On Snapdragon hardware it runs on the Hexagon NPU.
The namespaces are Kotlin extension properties, declared in com.runanywhere.sdk.public.api. Without the wildcard import above, RunAnywhere.llm does not resolve and nothing on this page compiles.

Requirements

This is an Android library, not Kotlin Multiplatform.

The namespaces

Suspending functions where Swift is async, and Flow where Swift returns a stream. If you know one SDK, the other reads the same.
The flat verbs from earlier releases (RunAnywhere.generate, RunAnywhere.loadModel, and the rest) are deprecated in favour of these namespaces and will be removed.

Artifacts

QHexRT carries its own version. It stopped being published to Maven Central after 0.20.19 and cannot advance there, so it does not move with the other three.

Where to go next

Installation

Gradle setup

Quick Start

A working chat

Text generation

Prompts and options

Voice agent

Speech in, speech out