Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add google-ai-edge/litert-samples --skill litert-lmgit clone --depth 1 https://github.com/google-ai-edge/litert-samplesWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/google-ai-edge/litert-samples/litert-lm)<a href="https://agentmods.dev/skills/google-ai-edge/litert-samples/litert-lm"><img src="https://agentmods.dev/badge/skills/google-ai-edge/litert-samples/litert-lm/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/google-ai-edge/litert-samples/litert-lm"><img src="https://agentmods.dev/badge/skills/google-ai-edge/litert-samples/litert-lm.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00179 | $0.04268 |
| Opus 5.5 | $0.00072 | $0.01707 |
| Sonnet 5.5 | $0.00036 | $0.00854 |
| Haiku 4.5 | $0.00018 | $0.00427 |
Grade A, and why
litert-lm scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 27d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 373 lines — stays where its author put it; the contents beside it link to each section on GitHub.
This skill provides step-by-step guidance for building an Android app that runs
an open text LLM through the LiteRT-LM Kotlin API
(com.google.ai.edge.litertlm) on the CPU or the GPU. The model is one
.litertlm file. Images, audio, tool calling, and NPU backends aren't covered.
For vision and audio models with .tflite files, suggest the litert-runtime
skill.
When a LiteRT-LM class or method that this skill uses doesn't compile, you must read the LiteRT-LM Android guide and the LiteRT-LM README before changing the code.
Prerequisites
- A Kotlin Android project (the Android Studio Empty Activity template is enough). The
litertlm-android0.18.0 AAR declaresminSdk24. - The dependency in the app-level
build.gradle.ktsfile from Google Maven:implementation("com.google.ai.edge.litertlm:litertlm-android:0.18.0"). Google Maven lists the later releases. - For the GPU backend, two
uses-native-libraryentries inside<application>inAndroidManifest.xml. Add theINTERNETpermission if the app downloads the model. - The model file lives on the device's file system (hundreds of MB to a few GB), never in
assets/or in the APK.
Critical mandates
- Dependency first : Before writing code that imports
com.google.ai.edge.litertlm, add thelitertlm-androiddependency from Step 1 if the project lacks it. Verify with./gradlew assembleDebug. - Background initialization :
Engine(config).initialize()loads the weights and blocks for seconds. Call it on a background thread, never on the main thread. - Single owner : One single-thread executor owns the
Engineand theConversation. Creation, streaming, cancellation, and closing run on it. - Close once :
EngineandConversationareAutoCloseable. A secondcloseon either throwsIllegalStateException. So doescloseon an engine whoseinitializethrew. Store the engine only afterinitializereturns. - Model outside the APK : Pass an absolute path to
EngineConfig. Never bundle a.litertlmfile inassets/.
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 27d ago Changed · +237 lines · +37 tokens per session 9b8c8aa13f28
- 1mo ago Changed · +2 lines · +36 tokens per session 5b63724e45ea
- 1mo ago Changed 00912a56cd86
- 1mo ago Changed · +23 lines ef7c5ccc345d
- 2mo ago First seen · 111 lines · 106 tokens per session scan A 90f4118e4982
litert-lm is a skill published in the GitHub repository google-ai-edge/litert-samples (508 stars, last pushed 5d ago), licensed Apache-2.0. It adds 179 tokens to every session and 4,268 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-02.
litert-lm compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| litert-lmgoogle-ai-edge/litert-samples | Skill | 508 | 5d ago | Apache-2.0 | A | 179 | Claude Code, Codex |
| maui-essentials-aidotnet/maui-labs | Skill | 244 | yesterday | MIT | A | 86 | Claude Code, Codex |
| swift-mlx-lmkellyvv/PhoneClaw | Skill | 1.3k | 3mo ago | Apache-2.0 | A | 52 | Claude Code, Codex |
| swift-mlxkellyvv/PhoneClaw | Skill | 1.3k | 3mo ago | Apache-2.0 | A | 25 | Claude Code, Codex |
| vision-frameworkTalissonVitorino/kmp-ios-skills | Skill | 16 | today | MIT | A | 237 | Claude Code, Codex |
| apple-on-device-aiTalissonVitorino/kmp-ios-skills | Skill | 16 | today | MIT | A | 188 | Claude Code, Codex |
| coremlTalissonVitorino/kmp-ios-skills | Skill | 16 | today | MIT | A | 255 | Claude Code, Codex |