download. Models download to the device on first use; mind app size and data use.
Who it is forMobile developers adding offline chat or summaries to an app.
The problemShipping cloud AI in a mobile app adds per user cost and needs connectivity.
The outcomeAn app that generates text on the phone itself.
What you need first
- Python with pip, or npm for React Native and Web
- A supported device; models download on first use
Steps
- Run
npm install @runanywhere/core@0.20.27 @runanywhere/llamacpp@0.20.27 - Initialize RunAnywhere and load a model as the React Native example shows
- Call RunAnywhere.generate with your prompt
- Test on a real device
Prompt for your agent
Using RunanywhereAI/runanywhere-sdks, add `npm install @runanywhere/core@0.20.27 @runanywhere/llamacpp@0.20.27` to <my React Native app> and build a screen that summarises text on device.
Caveat. Pick a small model for phones; larger ones may not fit in memory.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for RunanywhereAI/runanywhere-sdks and "Add on device AI to a React Native app"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer