minicpm5-deploy-litert

minicpm5-deploy-litert is a skill for Claude Code, Codex from OpenBMB/MiniCPM. It costs 121 tokens per session (1,532 once invoked), scanned A, original, Apache-2.0.

Instructions for running MiniCPM5 language models on phones, desktops, and other devices with Google's LiteRT-LM runtime. LiteRT-LM runs packaged models through command-line, server, Python, Kotlin, or Swift interfaces.

In plain words
What is it for?
It helps install LiteRT-LM, run a .litertlm model, start an OpenAI-compatible server, and use the model from desktop or mobile code.
Why use it?
It turns the model files and runtime choices into concrete setup steps, including CPU or GPU use and Android deployment.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps install LiteRT-LM, run a .litertlm model, start an OpenAI-compatible server, and use the model from desktop or mobile code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/openbmb/minicpm/minicpm5-deploy-litert
About the project

MiniCPM is a family of compact language models, including MiniCPM5-1B, designed to run locally on devices with limited resources. Developers use it for on-device assistants, reasoning, code, tool use, deployment, and fine-tuning, while the repository also includes a desktop-pet example. The catalogue entries support deployment and fine-tuning workflows for the models.

OpenBMB/MiniCPM · 11,959 stars · on GitHub

Install

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.

Any agent
npx skills add OpenBMB/MiniCPM --skill minicpm5-deploy-litert
Clone the repo
git clone --depth 1 https://github.com/OpenBMB/MiniCPM

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for minicpm5-deploy-litert

README.md
[![agentmods](https://agentmods.dev/badge/skills/openbmb/minicpm/minicpm5-deploy-litert/github.svg)](https://agentmods.dev/skills/openbmb/minicpm/minicpm5-deploy-litert)
Your own site
<a href="https://agentmods.dev/skills/openbmb/minicpm/minicpm5-deploy-litert"><img src="https://agentmods.dev/badge/skills/openbmb/minicpm/minicpm5-deploy-litert/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.

agentmods 80×15 button for minicpm5-deploy-litert

Your own site · 80×15
<a href="https://agentmods.dev/skills/openbmb/minicpm/minicpm5-deploy-litert"><img src="https://agentmods.dev/badge/skills/openbmb/minicpm/minicpm5-deploy-litert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 121 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,532 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00121 $0.01532
Opus 5.5 $0.00048 $0.00613
Sonnet 5.5 $0.00024 $0.00306
Haiku 4.5 $0.00012 $0.00153

Measured 2mo ago against content hash a3dea7288140, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

minicpm5-deploy-litert scanned grade A with 1 finding 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 2mo 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl http://127.0.0.1:9379/v1/chat/completions -H "Content-Type: application/json" \
skills/minicpm5-deploy-litert/SKILL.md · 80 lines

How it starts

The opening of the file, as written. The whole thing — 80 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Deploy MiniCPM5-2B / MiniCPM5-1B with LiteRT-LM (Android / iOS / desktop / IoT)

LiteRT-LM, Google's on-device runtime built on LiteRT (formerly TensorFlow Lite). One .litertlm bundle, CPU or GPU, through a CLI, an OpenAI-compatible server, Python, Kotlin and Swift. The bundles are hosted in litert-community. Human-readable reference: docs/deployment/litert.md.

Required input

Var Example Default
LITERT_REPO litert-community/MiniCPM5-2B or litert-community/MiniCPM5-1B litert-community/MiniCPM5-2B
FILE MiniCPM5-2B_int4.litertlm (1.55 GB, the phone file) or MiniCPM5-2B_int8.litertlm (2.60 GB, reasoning that has to finish); 1B: minicpm_wi4b32_wi8_afp32.litertlm (CPU) or minicpm_wi4b32_wi8_afp32_gpu_opt.litertlm (GPU) MiniCPM5-2B_int4.litertlm
BACKEND cpu or gpu cpu
THINKING true (reason first) or false (direct answer) false
PROMPT 1+1=? 1+1=?

Steps

1. Install (once)

uv tool install litert-lm

2A. Run a pre-converted bundle (desktop CLI)

litert-lm run --from-huggingface-repo="${LITERT_REPO}" "${FILE}" \
    --backend "${BACKEND}" --thinking "${THINKING:-false}" --prompt "${PROMPT}"

The first run downloads the file into ~/.litert-lm/cache/huggingface/<repo>/; later runs skip the download. With thinking on, the reasoning prints between [thought] and [/thought] and the answer follows; --thinking-budget 2048 caps the reasoning (4096 for math); THINKING=true makes the model reason first. Sampling as OpenBMB recommends: --top-k 40 --top-p 0.95 --temperature 1.0 (the CLI's default top-k is 1 = greedy, so temperature alone changes nothing).

2B. Android

  • No code: the AI Edge Gallery app, Model manager → + → Import from HF → paste the file's Hugging Face link.
  • Your own app: implementation("com.google.ai.edge.litertlm:litertlm-android:0.17.0") from Google Maven, the libOpenCL.so <uses-native-library> entries in the manifest for the GPU, then:

Read the full file on GitHub · 80 lines

Changes

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.

  1. 2mo ago First seen · 80 lines · 121 tokens per session scan A a3dea7288140

Subscribe to this mod's changes

minicpm5-deploy-litert is a skill published in the GitHub repository OpenBMB/MiniCPM (11,959 stars, last pushed 24d ago), licensed Apache-2.0. It adds 121 tokens to every session and 1,532 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-10.

Related

minicpm5-deploy-litert compared with skills from other repositories

minicpm5-deploy-litert next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
minicpm5-deploy-litertOpenBMB/MiniCPMSkill12k24d agoApache-2.0A121Claude Code, Codex
spark-environment-setupwshobson/agentsSkill43kyesterdayMITA76Claude Code
spark-memory-thermal-opswshobson/agentsSkill43kyesterdayMITA59Claude Code
spark-training-gotchaswshobson/agentsSkill43kyesterdayMITA63Claude Code
inference-serving-llama-cppdavila7/claude-code-templatesSkill35ktodayMITA80Claude Code, Codex
supercomputertrycua/cuaSkill34ktodayMITA0Claude Code, Codex
amc-run-rtsp-calibrationNVIDIA/skillsSkill4.3ktodayApache-2.0A59Claude Code, Codex