hoodini avatar

Local Llm Router

Routes your coding queries to locally running LLMs like Ollama, LM Studio, or Jan when you're offline or in air-gapped networks. The big idea here is Serena MCP integration, which you call first to get actual semantic code understanding (symbols, references, type info) before hitting the LLM. This cuts down on token waste and makes edits more precise since you're working with symbol-level operations instead of grep-style text matching. The implementation includes service discovery, task classification, and automatic model selection based on query type. Honestly most useful in secure or defense environments where internet-connected AI is off the table.

skills.sh installs
160
GitHub stars
296
last updated
Jun 10, 2026

Install

$ npx -y skills add hoodini/ai-agents-skills --skill local-llm-router --agent claude-code

Installs into .claude/skills of the current project.

Files

Local LLM Router for Air-Gapped Networks

Intelligent routing of AI coding queries to local LLMs with Serena LSP integration for secure, offline-capable development environments.

Prerequisites (CRITICAL)

Before using this skill, ensure:

  1. Serena MCP Server installed and running (PRIMARY TOOL)
  2. At least one local LLM service running (Ollama, LM Studio, Jan, etc.)
# Install Serena (required)
pip install serena
# Or via uvx
uvx --from git+https://github.com/oraios/serena serena start-mcp-server

# Verify local LLM service
curl http://localhost:11434/api/version  # Ollama
curl http://localhost:1234/v1/models     # LM Studio
curl http://localhost:1337/v1/models     # Jan

Quick Start

import httpx
import asyncio
from dataclasses import dataclass
from enum import Enum
from typing import Optional

class TaskCategory(Enum):
    CODING = "coding"
    REASONING = "reasoning"
    ANALYSIS = "analysis"
    DOCUMENTATION = "documentation"

Sponsors

Details

Repository
github.com/hoodini/ai-agents-skills
Category
AI & Agent Building
First seen
Jun 11, 2026

More from hoodini/ai-agents-skills

All 37
1codeaholicguy avataragent-orchestrationcodeaholicguy/ai-devkitAI DevKit · Proactively orchestrate running AI agents — scan statuses, assess progress, send next instructions, and coordinate multi-agent workflows. Use when u0skills.sh installs
2langchain-ai avatarlanggraph-persistencelangchain-ai/langchain-skillsINVOKE THIS SKILL when your LangGraph needs to persist state, remember conversations, travel through history, or configure subgraph checkpointer scoping. Covers18.8Kskills.sh installs
3launchdarkly avataraiconfig-ai-metricslaunchdarkly/agent-skillsaiconfig ai metrics2Kskills.sh installs
4github avatarmicrosoft-agent-frameworkgithub/awesome-copilotCreate, update, refactor, explain, or review Microsoft Agent Framework solutions using shared guidance plus language-specific references for .NET and Python.2Kskills.sh installs
5webmaxru avatargithub-agentic-workflowswebmaxru/ai-native-devAuthors, reviews, installs, and debugs GitHub Agentic Workflows in repositories, including workflow markdown, frontmatter, gh aw compile and run flows, safe out486skills.sh installs
6elastic avatarobservability-llm-obselastic/agent-skills>0skills.sh installs