add-litert-omni-model

add-litert-omni-model is a skill for Claude Code, Codex from google-ai-edge/litert-samples. It costs 148 tokens per session (7,205 once invoked), scanned A, original, Apache-2.0.

A development guide for adding a new LiteRT Omni multimodal model to the LiteRT samples repository. LiteRT Omni supports models that work with combinations of text, images, audio, and speech.

In plain words
What is it for?
Use it to add a model with a C++ runtime, Python export workflow, custom metadata definitions, Bazel builds, and tests under the models directory.
Why use it?
It provides a defined way to add model-specific runtime and export code without changing the shared LiteRT-LM or litert-torch packages.

Skill for Claude CodeCodex

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

Good fit Use it to add a model with a C++ runtime, Python export workflow, custom metadata definitions, Bazel builds, and tests under the models directory.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/google-ai-edge/litert-samples/omni
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 google-ai-edge/litert-samples --skill omni
Clone the repo
git clone --depth 1 https://github.com/google-ai-edge/litert-samples

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 add-litert-omni-model

README.md
[![agentmods](https://agentmods.dev/badge/skills/google-ai-edge/litert-samples/omni/github.svg)](https://agentmods.dev/skills/google-ai-edge/litert-samples/omni)
Your own site
<a href="https://agentmods.dev/skills/google-ai-edge/litert-samples/omni"><img src="https://agentmods.dev/badge/skills/google-ai-edge/litert-samples/omni/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 add-litert-omni-model

Your own site · 80×15
<a href="https://agentmods.dev/skills/google-ai-edge/litert-samples/omni"><img src="https://agentmods.dev/badge/skills/google-ai-edge/litert-samples/omni.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 148 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,205 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00148 $0.07205
Opus 5.5 $0.00059 $0.02882
Sonnet 5.5 $0.00030 $0.01441
Haiku 4.5 $0.00015 $0.00720

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

Security

Grade A, and why

add-litert-omni-model 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 4d 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.

skills/omni/SKILL.md · 521 lines

How it starts

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

Add a New LiteRT Omni Model

Bring up a new multimodal model under models/{model_family}/{model_name}/ (for example, lfm/lfm2_5_audio/, deepseek/janus_pro/, omnigen/omnigen2/, or tongyi/z_image_turbo/) without modifying upstream google-ai-edge/LiteRT-LM (@litert_lm) or google-ai-edge/litert-torch. Use the LFM2.5-Audio implementation as the canonical end-to-end template (all four models use the runner/ + export/ layout, shared LiteRT-LM Omni helpers, and the export/requirements.txt workflow).

1. Scope & Zero-Touch Mainline Invariants

  • Keep all new files under models/{model_family}/{model_name}/. Register C++ runtimes, custom protos, and Python exporters out-of-tree rather than adding per-model code, enum values, or visibility exceptions to google-ai-edge/LiteRT-LM (@litert_lm) or google-ai-edge/litert-torch.
  • Keep package visibility scoped cleanly. Set package(default_visibility = ["//models:__subpackages__"]) in runner/BUILD so cross-model targets stay encapsulated while tests can depend on sibling package targets.
  • Separate C++ runtime (runner/) from Python export (export/). Build and test the C++ runtime via Bazel (--config=omni) under runner/, and run the PyTorch-to-LiteRT exporter via pip/venv + protoc using export/requirements.txt (do not add an export/BUILD that references unwired @litert_torch or PyPI repos, so bazel test --config=omni //models/{model_family}/{model_name}/... stays green).
  • Split delivery into two stacked pull requests and keep edits strictly inside models/{model_family}/{model_name}/ (no upstream LiteRT-LM or litert-torch changes in the same PR):
    1. PR 1 (C++ runtime + proto + runner): models/{model_family}/{model_name}/runner/ (plus top-level README.md) containing the .proto, C++ pipeline stages, OmniRegistry registration, omni_runner_binary, per-stage unit tests, and integration + runner tests. Include runnable bazel run command(s) in the PR description to invoke //models/{model_family}/{model_name}/runner:{model_name}_runner with --config=omni and representative modality inputs.
    2. PR 2 (Python exporter + E2E): models/{model_family}/{model_name}/export/ containing requirements.txt, the ModelExtension, export_main.py CLI, exporter unit tests, and optional export_and_run_test.py reference (requires Bazel runfiles; see §5), plus pip/venv + protoc export instructions in {model_family}/{model_name}/README.md. Include runnable python3 -m and bazel run --config=omni commands in the PR description for both export_main and runner:{model_name}_runner on the exported .litertlm artifact.

Read the full file on GitHub · 521 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. 4d ago First seen · 521 lines · 148 tokens per session scan A f3e54d435c6e

Subscribe to this mod's changes

add-litert-omni-model is a skill published in the GitHub repository google-ai-edge/litert-samples (508 stars, last pushed 3d ago), licensed Apache-2.0. It adds 148 tokens to every session and 7,205 once invoked, about $0.0006 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-11-26.

Related

add-litert-omni-model compared with skills from other repositories

add-litert-omni-model next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
add-litert-omni-modelgoogle-ai-edge/litert-samplesSkill5083d agoApache-2.0A148Claude Code, Codex
cudnn-installNVIDIA/skillsSkill4.2k2d agoApache-2.0A49Claude Code, Codex
transform-modelNVIDIA/TensorRT-Model-ConnectSkill3032d agoApache-2.0A33Codex
tilelang-cuda-examples-torchmindspore-ai/akgSkill269yesterdayApache-2.0A20Claude Code, Codex
swift-mlx-lmkellyvv/PhoneClawSkill1.3k3mo agoApache-2.0A52Claude Code, Codex
swift-mlxkellyvv/PhoneClawSkill1.3k3mo agoApache-2.0A25Claude Code, Codex
mlops-industrializationMLOps-Courses/mlops-coding-skillsSkill231mo agoMITB48Claude Code, Codex