Skip to main content
Glama

local-models

Run decision models and LLMs locally on an Apple Silicon Mac, and use them from Claude Code, the command line, HTTP, or a Mac app.

macOS Python License

  • Decision models return calibrated probabilities instead of text: yes/no, choice, and score questions

  • LLMs draft, translate, summarize, or give a second opinion, with text and image input

  • One model per kind runs at a time; servers listen only on 127.0.0.1 and have no authentication

Decision model

Memory

Notes

Kanana-2-V-Decide-3B

10 GB

Default. Most accurate on Korean. Own license

pplx-decider-flash v1.2

15 GB

Best calibrated. Apache-2.0

LLM

Memory

Notes

Gemma 4 26B-A4B

21 GB

Fast (MoE), good at prose

Qwen3.6-35B-A3B

23 GB

Faster than Qwen3.8 (MoE)

Qwen3.8-27B

23 GB

Default

Memory is the measured peak, with a long prompt for the LLMs.

Install

You need uv. Weights go to weight/.

git clone https://github.com/phykn/local-models.git && cd local-models
uv sync --python 3.13
.venv/bin/decisionctl pull kanana-2-v-decide-3b
.venv/bin/llmctl pull qwen3.8-27b

Related MCP server: localagents

Use

Mac app: pick a model, press Start. The app stops the models it started when it quits.

scripts/build-app.sh && open LOCAL-MODELS.app

Claude Code: register the MCP servers, then ask something like "Use decision to decide whether this ticket is urgent".

claude mcp add decision --scope user -- "$PWD/.venv/bin/decision-mcp"
claude mcp add llm-local --scope user -- "$PWD/.venv/bin/llm-mcp"
  • decision provides choose, yes_no, score, decide, and list_models. Check answers marked low_confidence yourself.

  • llm-local provides ask and list_models. Pass think: true to ask for harder problems.

Command line: decisionctl and llmctl take list, status, pull, start, stop, and port.

.venv/bin/decisionctl start kanana-2-v-decide-3b
.venv/bin/decisionctl port 8091   # every decision model; stop it first

HTTP

  • Decision models serve POST /v1/systemone on port 8081: {"state": text, "questions": {id: question}}, with questions shaped as in the decide tool.

  • LLMs serve an OpenAI-compatible API at /v1/chat/completions on port 8082. Set model to the id from /v1/models, and send "enable_thinking": false to turn thinking off.

Configure

Models and the port of each kind are in decision.toml and llm.toml. Pin run to a commit. Unknown keys are an error.

Test

.venv/bin/pytest            # fake servers, a few seconds
.venv/bin/pytest -m live    # the models that are running

License

MIT. Qwen, Gemma 4, and pplx-decider are Apache-2.0. Kanana-2-V-Decide is under the Kanana Open License: some uses need a separate commercial license from Kakao, and services built on it must show "Powered by Kanana". Read its LICENSE before use.

Available Tools

2 tools
askAskA
Read-only

Send one prompt to a local model and return its answer text.

system: optional system prompt. model: a name from list_models; omit for the default. think: let the model reason before answering. Better on hard problems, but often several times slower; the reasoning itself is not returned. max_tokens: upper bound on generated tokens, reasoning included. finish_reason "length" means the answer was cut off.

Inputs: prompt (required), model, think, system, +1 more. Returns: object

list_modelsList ModelsA
Read-only

The registered local models, which one is the default, and whether each is running (with its start command if not).

Inputs: no named parameters. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 2 tools

    Disambiguation5/5

    The two tools serve entirely different phases: list_models is discovery/introspection and ask is inference. No agent could confuse them, and the descriptions reinforce the distinction by having ask explicitly reference model names from list_models.

    Naming Consistency4/5

    Both names are snake_case and concise, so the style is coherent. However, 'list_models' follows a verb_noun pattern while 'ask' is a bare verb, a minor deviation from an otherwise single convention.

    Tool Count4/5

    Two tools is thin in absolute terms, but the domain (enumerate local models, send a prompt) is genuinely small and each tool earns its place. There is no filler or redundant surface.

    Completeness3/5

    Read and inference paths are covered, but notable lifecycle operations are missing: list_models surfaces start commands for stopped models without any tool to start or stop one, and there is no multi-turn chat/session tool. Agents hitting a stopped model or wanting conversation history will dead-end.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables Claude Code to offload routine code generation and text processing tasks to a local Ollama LLM, saving Cloud API tokens and costs with automatic model selection and security features.
      11
      204 npm
      3
      Apache 2.0
    • A
      license
      A
      quality
      B
      maintenance
      Enables Claude Code to delegate agent tasks to local LLMs via llama.cpp or vLLM servers on your own hardware, reducing API usage while maintaining full agent capabilities.
      11
      22
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables Claude Code to leverage local Ollama models for tasks like summarizing large files, reviewing diffs, semantic code search, and generating boilerplate or tests, while also supporting a fully offline mode.
      6
      MIT