ollama

ollama is a skill for Claude Code, Codex from znlgis/opengis-skills. It costs 124 tokens per session (6,041 once invoked), scanned E, original, MIT.

A local runtime for downloading, managing, and serving large language models on your own computer or server. It exposes REST and OpenAI-compatible APIs for text generation, chat, embeddings, streaming, and other model calls.

In plain words
What is it for?
Use it to download and run models such as Llama, Qwen, or Gemma; define reusable model settings; call them from applications; and generate embedding vectors for search.
Why use it?
It provides a local alternative to sending prompts and data to a hosted model service. It also removes the need to manage model files and hardware settings manually for common local setups.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for hermes-agent. Also seen: mentions Claude Code; built for hermes-agent; mentions OpenCode.

Good fit Use it to download and run models such as Llama, Qwen, or Gemma; define reusable model settings; call them from applications; and generate embedding vectors for search.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/znlgis/opengis-skills/ollama
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 znlgis/opengis-skills --skill ollama
Clone the repo
git clone --depth 1 https://github.com/znlgis/opengis-skills

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 ollama

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/znlgis/opengis-skills/ollama"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/ollama.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 124 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,041 The whole file, excluding the scripts and references it only reads on demand.
Security scan E 4 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.00124 $0.06041
Opus 5.5 $0.00050 $0.02416
Sonnet 5.5 $0.00025 $0.01208
Haiku 4.5 $0.00012 $0.00604

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

Security

Grade E, and why

ollama scanned grade E with 4 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 19d 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.

Sends data to an external URLmediumData exfiltration

A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.

resp = requests.post( "http://localhost:11434/api/chat",

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

sudo systemctl edit ollama.service

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl -fsSL https://ollama.com/install.sh | sh

Makes network callslowCapability

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

curl -fsSL https://ollama.com/install.sh | sh
ai/ollama/SKILL.md · 450 lines

How it starts

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

项目地址: https://github.com/ollama/ollama

官网: https://ollama.com/

官方文档: https://docs.ollama.com/(仓库文档目录:https://github.com/ollama/ollama/tree/main/docs)

许可证: MIT

最新版本: v0.40.16(截至 2026-11,实测 releases/latest 重定向;2026-11-09 发布,v0.40.17 仍为 -rc0 预发布;见 GitHub Releases)

npm SDK: ollama(0.6.4,实测 npm registry)

v0.40.16 变化(可选读):新增 Ripple Preview(65B 稠密模型,面向 agentic coding,ollama run ripple-preview);Qwen3.8 Flash Next 在 Apple silicon 上少占约 27 GiB 内存;ollama launch claude 总是把 Claude Code 路由到所选模型;/v1/responses 遵守 truncation、不再静默截断;/v1/models 无模型时返回空数组而非 null;支持 Windows on ARM 的 CUDA 13.5。

概述

Ollama 是本地运行与管理大语言模型的开源工具,用 Modelfile 把模型权重、提示词模板与运行参数打包成可复用的本地模型。服务默认监听 127.0.0.1:11434,自动检测 NVIDIA CUDA、AMD ROCm、Apple Metal、Vulkan 并调度 GPU 加速。除原生 REST API 外还提供 OpenAI 兼容层,现有 OpenAI SDK 代码可基本零改动切换到本地模型。支持文本生成、多模态输入、工具调用、结构化输出与嵌入向量。

  • 模型管理:pull / ls / ps / rm / cp / create,模型库覆盖 Llama、Qwen、DeepSeek、Gemma、gpt-oss 等
  • Modelfile:FROM / PARAMETER / SYSTEM / TEMPLATE / MESSAGE,定义私有模型
  • REST API:/api/generate、/api/chat、/api/embed、/api/tags、/api/ps、/api/pull 等,默认 NDJSON 流式
  • OpenAI 兼容:/v1/chat/completions、/v1/completions、/v1/embeddings、/v1/models、/v1/responses
  • GPU 加速:CUDA / ROCm / Metal / Vulkan 自动调度,多卡按显存分摊
  • 性能调优:num_ctx、num_gpu、keep_alive 与一组 OLLAMA_* 环境变量

环境准备

方式一:Linux / macOS 一键脚本

curl -fsSL https://ollama.com/install.sh | sh

方式二:Windows(PowerShell)

irm https://ollama.com/install.ps1 | iex

方式三:Docker

# CPU
docker run -d -v ollama:/root/.ollama -p 11434:11434 --name ollama ollama/ollama

# NVIDIA GPU
docker run -d --gpus=all -v ollama:/root/.ollama -p 11434:11434 --name ollama ollama/ollama

# AMD GPU(ROCm 镜像)
docker run -d --device /dev/kfd --device /dev/dri -v ollama:/root/.ollama -p 11434:11434 --name ollama ollama/ollama:rocm

# 在容器内运行模型
docker exec -it ollama ollama run llama3.2

Read the full file on GitHub · 450 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. 19d ago Changed · +5 lines 503eaf265f73
  2. 21d ago Changed · -6 lines fc2602bde58f
  3. 1mo ago Changed · +1 lines · +41 tokens per session fc520433f2e0
  4. 1mo ago First seen · 450 lines · 83 tokens per session scan E 44c6b2b0a25e

Subscribe to this mod's changes

ollama is a skill published in the GitHub repository znlgis/opengis-skills (87 stars, last pushed 20d ago), licensed MIT. It adds 124 tokens to every session and 6,041 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it E with 4 findings (sends data to an external url, asks for root, downloads and executes remote code). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-16.

Related

ollama compared with skills from other repositories

ollama next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ollamaznlgis/opengis-skillsSkill8720d agoMITE124Claude Code, Codex
agent-platform-model-registrygoogle/skillsSkill25ktodayApache-2.0A60Claude Code, Codex
llm-evaluationsickn33/agentic-awesome-skillsSkill51ktodayMITA25Claude Code
google-cloud-solution-agentic-analytics-spark-knowledge-cataloggoogle/skillsSkill25ktodayApache-2.0A132Claude Code, Codex
training-checkwanshuiyin/Auto-claude-code-research-in-sleepSkill20kyesterdayMITA35Claude Code
tao-run-inference-serviceNVIDIA/skillsSkill4.2ktodayApache-2.0A92Claude Code
nemo-automodel-launcher-configNVIDIA/skillsSkill4.2ktodayApache-2.0A30Claude Code