Xpersona
L

Local Llm Router

CLAWHUB · Unverified

Local LLM model router for Llama, Qwen, DeepSeek, Phi, Mistral, and Gemma across multiple devices. Self-hosted local LLM inference routing on macOS, Linux, a... Skill: Local Llm Router Owner: twinsgeeks Summary: Local LLM model router for Llama, Qwen, DeepSeek, Phi, Mistral, and Gemma across multiple devices. Self-hosted local LLM inference routing on macOS, Linux, a... Tags: apple-silicon:1.0.3, codestral:1.3.0, deepseek:1.0.3, gemma:1.0.3, inference-routing:1.0.3, latency:1.1.0, latest:1.0.4, llama:1.0.3, llm-routing:1.0.2, load-balancing:1.2.0, local-ai:1.0.3, local-llm:1

62
Rank
84
Safety
1.2k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.2K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17dgy27g44azc3tday4qh394d83ensj:local-llm-router
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-twinsgeeks-local-llm-router/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

77,014 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: local-llm-router
description: Local LLM model router for Llama, Qwen, DeepSeek, Phi, Mistral, and Gemma across multiple devices. Self-hosted local LLM inference routing on macOS, Linux, and Windows. Local LLM 7-signal scoring engine picks the optimal machine for every local LLM request. OpenAI-compatible local LLM API with context protection, VRAM-aware fallback, and auto-retry. 本地LLM路由 inference router | LLM local enrutador de inferencia. Use when the user wants to optimize local LLM routing, reduce local LLM latency, or load balance local LLM across machines.
version: 1.0.4
homepage: https://github.com/geeks-accelerator/ollama-herd
metadata: {"openclaw":{"emoji":"router","requires":{"anyBins":["curl","wget"],"optionalBins":["python3","sqlite3","pip"]},"configPaths":["~/.fleet-manager/latency.db","~/.fleet-manager/logs/herd.jsonl"],"os":["darwin","linux","windows"]}}
---

# Local LLM Router

You are managing a local LLM inference router that distributes local LLM requests across multiple Ollama instances using a 7-signal local LLM scoring engine.

## What this local LLM router solves

You have multiple machines with GPUs but your local LLM inference scripts only talk to one. Switching local LLM models between machines means editing configs and restarting. There's no way to compare local LLM latency across nodes, no automatic local LLM failover, and no visibility into which machine handles which local LLM requests.

This local LLM router sits in front of your Ollama instances and picks the optimal device for every local LLM request — based on what local LLM models are hot in memory, how much headroom each machine has, how deep the local LLM queues are, and historical local LLM latency data. Drop-in compatible with the OpenAI SDK and Ollama API.

## Setup Local LLM Router

```bash
pip install ollama-herd           # install the local LLM router
herd                              # launch the local LLM router (scores and routes)
herd-node                         # launch a local LLM node agent on each device
```

Package: [`ollama-herd`](https://pypi.org/project/ollama-herd/) | Repo: [github.com/geeks-accelerator/ollama-herd](https://github.com/geeks-accelerator/ollama-herd)

## Local LLM Router Endpoint

The local LLM router runs at `http://localhost:11435` by default. Point any OpenAI-compatible client at `http://localhost:11435/v1` for local LLM inference.

```python
# local_llm_client — connect to the local LLM router
from openai import OpenAI
local_llm_client = OpenAI(base_url="http://localhost:11435/v1", api_key="not-needed")
local_llm_response = local_llm_client.chat.completions.create(
    model="llama3.3:70b",  # local LLM model
    messages=[{"role": "user", "content": "Hello from local LLM"}],
    stream=True,
)
```

## Local LLM Scoring Engine

Every local LLM request is scored across 7 signals:

1. **Thermal state** (+50 pts) — local LLM models already loaded in GPU memory ("hot") score highest
2. **Memory fit** (+20 pts) — lo

_meta.json

{
  "ownerId": "kn72g7wz3nryt6zm4333kt1t7s818fkf",
  "slug": "local-llm-router",
  "version": "1.0.4",
  "publishedAt": 1775254701548
}

skill-card.md

## Description:

Local LLM Router helps agents route OpenAI-compatible and Ollama local LLM requests across multiple devices using fleet scoring, context protection, VRAM-aware fallback, and retry behavior.

This skill is ready for commercial/non-commercial use.

## Publisher:

[twinsgeeks](https://clawhub.ai/user/twinsgeeks)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and engineers use this skill to set up, inspect, and operate a self-hosted Ollama routing layer across local machines. It provides setup commands, local API checks, dashboard and analytics queries, and guarded guidance for model-management actions.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Installing and running the router package may execute local software with access to the user's machine and local model fleet.

Mitigation: Use a virtual environment, avoid running pip or the router as root or administrator, and review or pin the package source where possible.

Risk: Model pull and delete actions can download very large files or remove locally available models.

Mitigation: Require explicit user approval before changing settings or pulling or deleting models.

Risk: The skill references local latency, trace, and log files that may contain operational data.

Mitigation: Inspect those files read-only and do not delete or modify files under ~/.fleet-manager/ unless the user explicitly approves.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/twinsgeeks/skills/local-llm-router)
- [ollama-herd package](https://pypi.org/project/ollama-herd/)

## Skill Output:

**Output Type(s):** [Text, Markdown, Code, Shell commands, Configuration, Guidance]

**Output Format:** [Markdown guidance with bash, Python, curl, and SQLite command snippets]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Includes local setup, diagnostic, API, analytics, and guarded model-management guidance.]

## Skill Version(s):

1.0.4 (source: server release evidence and SKILL.md frontmatter)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Local Llm Router and adjacent AI workflows.