ollama-localhost-guardian

ollama-localhost-guardian is a skill for Claude Code, Codex from Stijnman/grok-custom-skills. It costs 51 tokens per session (535 once invoked), scanned A, original, MIT.

A safety check for local large-language-model services such as Ollama, which runs AI models on your own computer. It checks whether the service is listening only on the local machine or exposed to a network.

In plain words
What is it for?
Use it to inspect Ollama's listener and related settings, check the OLLAMA_HOST value, and review relevant service configuration.
Why use it?
It helps identify accidental network exposure before another program connects to the service. The check is read-only and does not change configuration or install models.

Skill for Claude CodeCodex

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

Good fit Use it to inspect Ollama's listener and related settings, check the OLLAMA_HOST value, and review relevant service configuration.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/stijnman/grok-custom-skills/ollama-localhost-guardian"><img src="https://agentmods.dev/badge/skills/stijnman/grok-custom-skills/ollama-localhost-guardian.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 535 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.00051 $0.00535
Opus 5 $0.00026 $0.00267
Sonnet 5 $0.00010 $0.00107
Haiku 4.5 $0.00005 $0.00053

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

Security

Grade A, and why

ollama-localhost-guardian 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 12d 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.

.grok/skills/ollama-localhost-guardian/SKILL.md · 64 lines

What it actually says

Ollama Localhost Guardian

When to Use

  • User says ollama security or task matches this capability
  • User says is ollama exposed or task matches this capability
  • User says secure local LLM or task matches this capability
  • User says ollama localhost or task matches this capability

Workflow

  1. Check listener on default Ollama port (11434) via ss or netstat.
  2. Pass if bound to 127.0.0.1; warn if 0.0.0.0 or ::.
  3. Optionally check OLLAMA_HOST env and systemd override files (read-only).
  4. Recommend binding to 127.0.0.1; hitl-approver before config changes.
  5. Note installed AI packages (mcp, openai, etc.) for inventory only.

Integrations

  • defensive-mcp-audit
  • exposed-service-triage
  • hitl-approver

Error Handling

Failure Response
Ollama not running Report not listening; no install assumed.

Gotchas

  • Check-only; config edits require user approval.

Safety & Ethics (Publication-Ready)

This skill is designed for public distribution. Constraints:

  • Read-only checks; no model pulling or inference API abuse.
  • No exposure of API keys or model weights.

Prohibited actions

  • No unauthorized access, malware, or harmful automation
  • No silent exfiltration of data, credentials, or telemetry
  • No destructive system changes without hitl-approver
  • No publication of user PII or environment secrets in outputs

Example

Input: User request matching triggers above. Output: Structured result per workflow; local artifacts only unless user opts in.

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. 12d ago First seen · 64 lines · 51 tokens per session scan A 13cfee16c11a

Subscribe to this mod's changes

ollama-localhost-guardian is a skill published in the GitHub repository Stijnman/grok-custom-skills (9 stars, last pushed yesterday), licensed MIT. It adds 51 tokens to every session and 535 once invoked, about $0.0003 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-31.

Related

Other skills, from other repositories

goal-meta-skill

A guide for turning an unclear or complex task into a reviewable /goal instruction for coding agents.

bahayonghang/my-ai-cli-toolkit · 190 tokens

workflow-to-skill

Turn a goal and existing CLI, MCP, HTTP, API, or external workflow capabilities into one reviewable reusable Agent Skill. Use when the user asks to create or revise a workflow SKILL.md without a dedicated interface for invocation or result presentation. A webpage, UI, image, or report produced as workflow output does…

ailiheizi/workflow-to-skill · 104 tokens

rss-digest

Collect RSS or Atom sources and produce a traceable intelligence digest through the configured Weft workflow.

ailiheizi/workflow-to-skill · 23 tokens

workflow-docs-sync

A project-documentation synchronisation workflow for rebuilding project facts from a local Git folder, GitHub repository, or current working directory, then updating core workflow documents.

wlvh/coding-workflow · 119 tokens

workflow-to-skill-with-surface

Create or revise one reusable workflow Skill plus an optional harness-native Prompt Surface that maps a dedicated form, Page, button set, command UI, or result view to ordinary Skill messages and Harness results. Use only when the user explicitly requests a dedicated interface for invoking the Skill or presenting its…

ailiheizi/workflow-to-skill · 91 tokens

setup-matt-pocock-skills

A setup skill that configures engineering skills for a repository, including its issue tracker, labels, and documentation layout. A repository is the project folder managed by version control.

devcxl/mattpocock-skills-zh · 43 tokens