llama-cpp

llama-cpp is a skill for Claude Code, Codex from braxtonROSE4/zorro-agent. It costs 76 tokens per session (1,935 once invoked), scanned A, a copy of inference-serving-llama-cpp, MIT.

A C/C++ runtime for running large language models on CPUs, Apple Silicon, and AMD or Intel GPUs, including small edge devices. It uses GGUF model files, which store compressed model weights for lower memory use.

In plain words
What is it for?
Run chat and other language-model inference on Macs, CPU-only machines, consumer GPUs, Raspberry Pi devices, and embedded systems.
Why use it?
It lets you run models without relying on NVIDIA hardware, CUDA, Python, or Docker. This is useful when deploying locally or on hardware with limited resources.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

Good fit Run chat and other language-model inference on Macs, CPU-only machines, consumer GPUs, Raspberry Pi devices, and embedded systems.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/braxtonrose4/zorro-agent/llama-cpp
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 braxtonROSE4/zorro-agent --skill llama-cpp
Clone the repo
git clone --depth 1 https://github.com/braxtonROSE4/zorro-agent

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 llama-cpp

README.md
[![agentmods](https://agentmods.dev/badge/skills/braxtonrose4/zorro-agent/llama-cpp/github.svg)](https://agentmods.dev/skills/braxtonrose4/zorro-agent/llama-cpp)
Your own site
<a href="https://agentmods.dev/skills/braxtonrose4/zorro-agent/llama-cpp"><img src="https://agentmods.dev/badge/skills/braxtonrose4/zorro-agent/llama-cpp/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 llama-cpp

Your own site · 80×15
<a href="https://agentmods.dev/skills/braxtonrose4/zorro-agent/llama-cpp"><img src="https://agentmods.dev/badge/skills/braxtonrose4/zorro-agent/llama-cpp.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 76 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,935 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 94% copy Near-identical to another mod 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.00076 $0.01935
Opus 5.5 $0.00030 $0.00774
Sonnet 5.5 $0.00015 $0.00387
Haiku 4.5 $0.00008 $0.00194

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

Security

Grade A, and why

llama-cpp 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 3mo 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://localhost:8080/v1/chat/completions \
Origin

This is a copy

94% identical to inference-serving-llama-cpp — 28 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/mlops/inference/llama-cpp/SKILL.md · 262 lines

How it starts

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

llama.cpp

Pure C/C++ LLM inference with minimal dependencies, optimized for CPUs and non-NVIDIA hardware.

When to use llama.cpp

Use llama.cpp when:

  • Running on CPU-only machines
  • Deploying on Apple Silicon (M1/M2/M3/M4)
  • Using AMD or Intel GPUs (no CUDA)
  • Edge deployment (Raspberry Pi, embedded systems)
  • Need simple deployment without Docker/Python

Use TensorRT-LLM instead when:

  • Have NVIDIA GPUs (A100/H100)
  • Need maximum throughput (100K+ tok/s)
  • Running in datacenter with CUDA

Use vLLM instead when:

  • Have NVIDIA GPUs
  • Need Python-first API
  • Want PagedAttention

Quick start

Installation

# macOS/Linux
brew install llama.cpp

# Or build from source
git clone https://github.com/ggerganov/llama.cpp
cd llama.cpp
make

# With Metal (Apple Silicon)
make LLAMA_METAL=1

# With CUDA (NVIDIA)
make LLAMA_CUDA=1

# With ROCm (AMD)
make LLAMA_HIP=1

Download model

# Download from HuggingFace (GGUF format)
huggingface-cli download \
    TheBloke/Llama-2-7B-Chat-GGUF \
    llama-2-7b-chat.Q4_K_M.gguf \
    --local-dir models/

# Or convert from HuggingFace
python convert_hf_to_gguf.py models/llama-2-7b-chat/

Run inference

# Simple chat
./llama-cli \
    -m models/llama-2-7b-chat.Q4_K_M.gguf \
    -p "Explain quantum computing" \
    -n 256  # Max tokens

# Interactive chat
./llama-cli \
    -m models/llama-2-7b-chat.Q4_K_M.gguf \
    --interactive

Server mode

# Start OpenAI-compatible server
./llama-server \
    -m models/llama-2-7b-chat.Q4_K_M.gguf \
    --host 0.0.0.0 \
    --port 8080 \
    -ngl 32  # Offload 32 layers to GPU

# Client request
curl http://localhost:8080/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "llama-2-7b-chat",
    "messages": [{"role": "user", "content": "Hello!"}],
    "temperature": 0.7,
    "max_tokens": 100
  }'

Quantization formats

GGUF format overview

Format Bits Size (7B) Speed Quality Use Case
Q4_K_M 4.5 4.1 GB Fast Good Recommended default
Q4_K_S 4.3 3.9 GB Faster Lower Speed critical
Q5_K_M 5.5 4.8 GB Medium Better Quality critical
Q6_K 6.5 5.5 GB Slower Best Maximum quality
Q8_0 8.0 7.0 GB Slow Excellent Minimal degradation
Q2_K 2.5 2.7 GB Fastest Poor Testing only

Read the full file on GitHub · 262 lines

Files

What ships with it

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

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. 3mo ago First seen · 262 lines · 76 tokens per session scan A 890cbe554b8f

Subscribe to this mod's changes

llama-cpp is a skill published in the GitHub repository braxtonROSE4/zorro-agent (11 stars, last pushed 7mo ago), licensed MIT. It adds 76 tokens to every session and 1,935 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). It is 94% identical to inference-serving-llama-cpp, differing in 28 lines, and is treated as a copy.

Related

llama-cpp compared with skills from other repositories

llama-cpp next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
llama-cppbraxtonROSE4/zorro-agentSkill117mo agoMITA76Claude Code, Codex
foundry-config-setupmicrosoft/agent-frameworkSkill146todayMITA65Claude Code, Codex
hr-datatuanductran/hr-skillsSkill953d agoMITA86Claude Code, Codex
hr-genaituanductran/hr-skillsSkill953d agoMITA80Claude Code, Codex
hr-prompt-engineeringtuanductran/hr-skillsSkill953d agoMITA83Claude Code, Codex
knowledge-retrievalopen-gitagent/opengapSkill3.2k5mo agoMITA28Claude Code
ai-engineering-curriculumoyi77/1ai-skillsSkill19todayMITA50Claude Code