CUDA Ollama Fleet Router for Openclaw

A high-performance routing layer that unifies multiple NVIDIA GPUs into a single, load-balanced CUDA Ollama inference cluster.

twinsgeeks
v1.0.0
Apr 4, 2026
0
810
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install cuda-ollama

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install cuda-ollama using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is CUDA Ollama Fleet Router?

The CUDA Ollama skill, powered by Ollama Herd, transforms individual NVIDIA GPUs scattered across different machines into a cohesive, high-performance computing cluster. By providing a single unified endpoint, it eliminates the need for developers to manually manage which GPU handles specific LLM requests. This Openclaw Skills integration ensures that your local inference infrastructure scales efficiently, whether you are running a single RTX 4090 or an enterprise-grade cluster of H100s.

At its core, this skill optimizes resource utilization by using a sophisticated 7-signal scoring system. It monitors real-time metrics like thermal state, vRAM availability, and queue depth to route requests to the most capable NVIDIA hardware. This results in lower latency, higher throughput, and a more resilient local AI environment for models like Llama 3.3, DeepSeek, and Qwen.

CUDA Ollama Fleet Router Use Cases

  • Distributing high-demand LLM inference across multiple workstations or servers containing NVIDIA GPUs.
  • Managing a heterogeneous GPU fleet (e.g., mixing consumer RTX cards with professional A100/H100 units) under one API.
  • Implementing automatic failover and retry logic for local AI services to ensure 100% uptime.
  • Scaling local embedding and image generation tasks across several CUDA-enabled nodes.
  • Protecting GPU context to prevent expensive model reloads during heavy multi-user access.

How CUDA Ollama Fleet Router Works

  1. The central router is initialized on a primary machine to act as the gateway for all Openclaw Skills inference requests.
  2. Individual nodes running NVIDIA GPUs launch a discovery agent that broadcasts their availability and hardware specs via mDNS.
  3. When a request arrives (via OpenAI SDK or curl), the router evaluates all active nodes based on 7 unique health and performance signals.
  4. The system checks vRAM capacity to ensure the requested model fits the target GPU's memory profile.
  5. The request is routed to the optimal node, with transparent retries and fallbacks if the primary selection is occupied or fails.
  6. Real-time monitoring data is fed back to a web dashboard for live tracking of cluster health and model status.

CUDA Ollama Fleet Router Setup

Prerequisites

Ensure you have curl, wget, and the NVIDIA CUDA drivers installed on all nodes.

Installation

Install the fleet manager via pip:

pip install ollama-herd

Running the Fleet

  1. Start the Router:
herd
  1. Join Nodes: On each machine with an NVIDIA GPU, run:
herd-node
  1. Verify CUDA:
nvidia-smi
ollama ps

CUDA Ollama Fleet Router Data Schema & Taxonomy

The skill manages configuration and logs within a local directory structure to maintain cluster state and history.

Path Description
~/.fleet-manager/latency.db SQLite database tracking response times per node for optimized routing.
~/.fleet-manager/logs/herd.jsonl Structured logs containing request metadata and cluster events.
/fleet/status API endpoint providing real-time JSON schema of all connected NVIDIA nodes.

All model data remains within the standard Ollama storage paths, while this skill manages the routing metadata and health checks.

CUDA Ollama Fleet Router Advanced Features

  • 7-Signal Scoring Engine: Dynamically weights thermal state, vRAM fit, queue depth, latency history, role affinity, availability trends, and context fit.
  • Thinking Model Support: Automatically adjusts num_predict parameters for reasoning-heavy models on CUDA hardware.
  • vRAM-Aware Fallback: Intelligent overflow handling that redirects traffic when a specific GPU's memory is saturated.
  • Context Protection: Intelligent routing that prioritizes nodes already hosting the requested model to avoid reload overhead.
  • Request Tagging: Support for granular usage tracking across the cluster for per-project resource accounting.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Requires
Github Stars: 0
forks: 0

Featured*