windows-local-ai-services

windows-local-ai-services is a skill for Claude Code, Codex from kevinnft/ai-agent-skills. It costs 26 tokens per session (1,442 once invoked), scanned A, original, MIT.

Guidance for running local AI services on Windows, including services inside WSL2, Microsoft's Linux environment for Windows.

In plain words
What is it for?
It is for fixing port-binding failures, checking Windows port reservations, choosing usable ports, and running headless graphical services in WSL2.
Why use it?
It helps diagnose blocked ports, firewall issues, and networking problems between Windows and WSL2.

Skill for Claude CodeCodex

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

Good fit It is for fixing port-binding failures, checking Windows port reservations, choosing usable ports, and running headless graphical services in WSL2.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kevinnft/ai-agent-skills/windows-local-ai-services
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 kevinnft/ai-agent-skills --skill windows-local-ai-services
Clone the repo
git clone --depth 1 https://github.com/kevinnft/ai-agent-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 windows-local-ai-services

README.md
[![agentmods](https://agentmods.dev/badge/skills/kevinnft/ai-agent-skills/windows-local-ai-services/github.svg)](https://agentmods.dev/skills/kevinnft/ai-agent-skills/windows-local-ai-services)
Your own site
<a href="https://agentmods.dev/skills/kevinnft/ai-agent-skills/windows-local-ai-services"><img src="https://agentmods.dev/badge/skills/kevinnft/ai-agent-skills/windows-local-ai-services/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 windows-local-ai-services

Your own site · 80×15
<a href="https://agentmods.dev/skills/kevinnft/ai-agent-skills/windows-local-ai-services"><img src="https://agentmods.dev/badge/skills/kevinnft/ai-agent-skills/windows-local-ai-services.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,442 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 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.00026 $0.01442
Opus 5 $0.00013 $0.00721
Sonnet 5 $0.00005 $0.00288
Haiku 4.5 $0.00003 $0.00144

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

Security

Grade A, and why

windows-local-ai-services 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 8d 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://172.17.16.1:8430/v1/models
skills/mlops/windows-local-ai-services/SKILL.md · 157 lines

How it starts

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

Windows Local AI Services

Running local AI services (enowxai, Ollama, LM Studio, vLLM, llama.cpp servers) on Windows has specific networking and port binding pitfalls. This skill covers setup, troubleshooting, and WSL2 cross-OS access.

References

  • references/windows-port-restrictions.md — Windows reserved port ranges and binding errors
  • references/headless-gui-apps.md — Running GUI apps in headless WSL2 with Xvfb

Common Pitfalls

1. Port Binding Failures

Symptom: Service crashes immediately with:

ERROR failed to start error="listen tcp4 127.0.0.1:1430: bind: An attempt was made to access a socket in a way forbidden by its access permissions."

Root Cause: Windows reserves certain port ranges for system services (Hyper-V, WinNAT, dynamic port allocation). Ports in these ranges cannot be bound by user applications.

Fix:

  1. Change the port (easiest):

    # Use a port outside reserved ranges (8000-9000 is usually safe)
    service start --port 8430
    
  2. Check reserved ranges:

    netsh int ipv4 show dynamicport tcp
    netsh int ipv4 show excludedportrange protocol=tcp
    
  3. Exclude a specific port (risky, can conflict with system services):

    netsh int ipv4 add excludedportrange protocol=tcp startport=1430 numberofports=1
    

Never kill svchost.exe — it's a Windows system service host. If netstat shows svchost using your target port, the port is reserved by Windows.

2. WSL2 Cross-OS Networking

Symptom: Service runs on Windows but WSL2 cannot connect via localhost.

Root Cause: WSL2 uses a virtualized network. localhost in WSL2 points to the WSL2 VM, not the Windows host.

Fix:

  1. Use Windows host gateway IP from WSL2:
    # Get Windows host IP (usually 172.17.16.1, but can change on reboot)
    ip route show default | awk '{print $3}'
    
    # Test connection
    curl http://172.17.16.1:8430/v1/models
    

Read the full file on GitHub · 157 lines

Files

What ships with it

2 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. 8d ago First seen · 157 lines · 26 tokens per session scan A b1d2e6603666

Subscribe to this mod's changes

windows-local-ai-services is a skill published in the GitHub repository kevinnft/ai-agent-skills (14 stars, last pushed 1mo ago), licensed MIT. It adds 26 tokens to every session and 1,442 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

modal

Modal is a serverless cloud platform for running Python on demand, including on-demand GPUs. Use when deploying or serving AI/ML models, running GPU-accelerated workloads (training, fine-tuning, inference), serving web endpoints, scheduling batch jobs, or scaling Python code to cloud containers with the Modal SDK.

K-Dense-AI/scientific-agent-skills · 65 tokens

s3-estate-calibration-auditor

Audit an estate of AWS S3 buckets for the one bucket that is genuinely publicly or cross-account exposed, without over-flagging the many buckets that READ as exposed but are neutralised. Resolves each bucket's EFFECTIVE verdict by composing four layers (Block Public Access x bucket policy x bucket ACL x access…

anyshift-io/sre-skills · 293 tokens

ml-pipeline

Use when building or operating a machine learning pipeline. Covers feature engineering, training reproducibility, train/serve skew, deployment, monitoring for drift, and retraining.

nimadorostkar/Claude-Skills-collection · 37 tokens

ai-privacy-assessment

Guides the combined DPIA and AI Act conformity assessment for AI systems processing personal data. Covers EDPB-EDPS Joint Opinion 5/2021, training data lawfulness under Art. 6 and Art. 9, Art. 22 automated decision-making, algorithmic bias detection, and NIST AI RMF MAP function. Keywords: AI privacy, DPIA, AI Act…

ThomasMoreAI/legal-skills-open · 109 tokens

leiloeiro-edital-ranbot-ai

Analise e auditoria de editais de leilao judicial e extrajudicial. Riscos ocultos, clausulas perigosas, debitos, ocupante e classificacao da oportunidade.

ThomasMoreAI/legal-skills-open · 51 tokens

infra-ragflow-ops

An operations guide for RAGFlow, an application that lets teams build systems that answer questions from a knowledge base. It covers service checks and the connected models, databases, vector stores, and file storage.

seed-forge/harness-ai-kit · 61 tokens