AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Add Gemini Nano

skill-khadinakbarlabs-expo-mobile-app-builder-add-gemini-nano · by khadinakbarlabs

Add on-device LLM via Gemini Nano (Pixel 8+, Galaxy S24+) using MediaPipe LLM Inference or ML Kit. Use when the user says 'gemini nano', 'on-device ai android', 'on-device llm android', 'no-cloud llm'.

No reviews yet
0 installs
19 views
0.0% view→install

Install

$ agentstack add skill-khadinakbarlabs-expo-mobile-app-builder-add-gemini-nano

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-khadinakbarlabs-expo-mobile-app-builder-add-gemini-nano)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
1mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Add Gemini Nano? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Add Gemini Nano (On-Device LLM)

Android's equivalent of Apple Foundation Models. Free, offline, private.

Hardware required

  • Pixel 8 Pro / 8a / 9 / 9 Pro
  • Samsung Galaxy S24 / S25 series
  • Some OnePlus 12+
  • ~4GB+ RAM for model

Options

Option A: MediaPipe LLM Inference (recommended)

# Add to expo prebuild via config plugin
pnpm add @1mt/expo-on-device-ai
import { generateText } from '@1mt/expo-on-device-ai';
const result = await generateText({ prompt: 'Summarize: ...' });

Option B: AI Edge SDK (Google native)

Requires native Kotlin module — drop down via expo-modules-core.

Option C: ML Kit GenAI (newer, 2025+)

For specific tasks: summarization, image description, etc.

When to use vs cloud LLM

  • Privacy-sensitive (no data leaves device)
  • Offline functionality required
  • Cost reduction (no API bill)
  • Avoid Google Play AI policy disclosure (no third-party transfer)

Cross-platform pattern

  • iOS: Foundation Models (skill: add-foundation-models)
  • Android: Gemini Nano
  • Wrapper: @1mt/expo-on-device-ai covers both with same API

Limitations

  • Smaller context window than cloud (~1k-4k tokens)
  • Generation speed: 10-30 tok/sec
  • Only ~50% of Android devices support
  • Quality below GPT-4 — good for summarization, classification, simple chat

Fallback for unsupported devices

if (await isGeminiNanoAvailable()) {
  return await generateText({ prompt });
}
return await callCloudLLM({ prompt });  // with 5.1.2(i) consent

Pair with

  • add-openai-streaming-android for cloud fallback
  • play-ai-disclosure for compliance (still needed even for on-device if it's AI-generated content)

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.