local-llm

local-llm is a skill for Claude Code from TserenTserenov/FMT-exocortex-template. It costs 78 tokens per session (1,674 once invoked), scanned A, original, MIT.

A setup and control layer for running language models locally on a Mac with Apple silicon, so data can stay on the computer.

In plain words
What is it for?
Use it to install, start, check, or switch local models. It can also help assess findings about newly available models.
Why use it?
It provides an option when cloud access is unavailable, cloud usage limits are reached, or personal data should not be sent to an online service. It also keeps model installation and status handling in one workflow.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit Use it to install, start, check, or switch local models. It can also help assess findings about newly available models.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tserentserenov/fmt-exocortex-template/local-llm
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 TserenTserenov/FMT-exocortex-template --skill local-llm
Clone the repo
git clone --depth 1 https://github.com/TserenTserenov/FMT-exocortex-template

Made for: Claude Code.

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 local-llm

README.md
[![agentmods](https://agentmods.dev/badge/skills/tserentserenov/fmt-exocortex-template/local-llm/github.svg)](https://agentmods.dev/skills/tserentserenov/fmt-exocortex-template/local-llm)
Your own site
<a href="https://agentmods.dev/skills/tserentserenov/fmt-exocortex-template/local-llm"><img src="https://agentmods.dev/badge/skills/tserentserenov/fmt-exocortex-template/local-llm/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 local-llm

Your own site · 80×15
<a href="https://agentmods.dev/skills/tserentserenov/fmt-exocortex-template/local-llm"><img src="https://agentmods.dev/badge/skills/tserentserenov/fmt-exocortex-template/local-llm.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 78 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,674 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium analysis-evasion · line 1
    Suspicious Unicode normalization or mixed-script content
    Fix: Review the flagged content for security risks. Ensure no credentials, secrets, or sensitive data are exposed.
How audits are shown
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.00078 $0.01674
Opus 5 $0.00039 $0.00837
Sonnet 5 $0.00016 $0.00335
Haiku 4.5 $0.00008 $0.00167

Measured 7d ago against content hash 3c3e64045c40, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

local-llm 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 7d 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.

.claude/skills/local-llm/SKILL.md · 114 lines

How it starts

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

Локальный LLM-стек (local-llm)

Scope: NL-вход к локальному LLM-стеку (установка / запуск / статус / переключение модели) + слой суждения для оценки находок монитора новых моделей. Not in scope: механика (установка, состояния, переключение, архив) — она в детерминированных скриптах (различение «Скрипт ≠ Агент»). Скилл их вызывает, не дублирует логику. Источник истины статусов моделей — каталог + model-lifecycle.py. JOB стека: приватность (задачи с персональными данными, что нельзя слать в облако) + запасной режим (без сети / кончились токены облака). См. ADR-001-local-llm-stack.md.

Расположение бандла

Управляющие скрипты — самодостаточный бандл (каждый работает из своей директории). Путь резолвится через env, дефолт — extensions/local-llm/ внутри IWE-установки:

BUNDLE="${IWE_LOCAL_LLM_DIR:-$HOME/IWE/extensions/local-llm}"
  • venv стека: ~/.iwe-local-llm/.venv (ставит установщик).
  • Активная модель + состояние сервера: ~/.iwe-local-llm/ (active-model, server.pid, server.log).

When to use

  • «поставь / установи локальную модель» → установка под железо (Шаг 1).
  • «покажи модели» / «какие модели есть» → список по состояниям (Шаг 2).
  • «запусти / останови» / «статус» → управление сервером (Шаг 2).
  • «переключи модель» / «переключи на 14B» → смена активной модели (Шаг 3).
  • «какие новые модели вышли» / «проверь новые модели» → мониторинг + суждение об adopt (Шаг 4).

Algorithm

Шаг 1 — установка (механика → скрипт)

bash "$BUNDLE/install-local-llm.sh"          # рекомендованная модель под железо
bash "$BUNDLE/install-local-llm.sh" --max    # самая тяжёлая влезающая

Установщик идемпотентен: детект железа → выбор модели из каталога под память → venv + mlx-lm → скачивание → smoke. Показать пользователю итог (модель, что сервер поднялся).

Шаг 2 — запуск / статус / список (механика → скрипт)

bash "$BUNDLE/iwe-local-llm.sh" start    # поднять сервер (OpenAI-совместимый, localhost:8080)
bash "$BUNDLE/iwe-local-llm.sh" status   # активная модель + состояние сервера
bash "$BUNDLE/iwe-local-llm.sh" models   # все модели по четырём состояниям + факт скачивания
bash "$BUNDLE/iwe-local-llm.sh" stop     # остановить сервер
bash "$BUNDLE/iwe-local-llm.sh" test     # проверка совместимого интерфейса (SHIM_OK)

Read the full file on GitHub · 114 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. 7d ago Changed · +1 lines 3c3e64045c40
  2. 12d ago First seen · 113 lines · 78 tokens per session scan A 4e107b8d611d

Subscribe to this mod's changes

local-llm is a skill published in the GitHub repository TserenTserenov/FMT-exocortex-template (53 stars, last pushed today), licensed MIT. It adds 78 tokens to every session and 1,674 once invoked, about $0.0004 per session on Opus 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-08-30.