← Back to Skills Marketplace
dhardie

LLM Supervisor

by dhardie · GitHub ↗ · v0.3.0
cross-platform ⚠ suspicious
2900
Downloads
3
Stars
11
Active Installs
7
Versions
Install in OpenClaw
/install llm-supervisor
Description
Graceful rate limit handling with Ollama fallback. Notifies on rate limits, offers local model switch with confirmation for code tasks.
README (SKILL.md)

LLM Supervisor 🔮

Handles rate limits and model fallbacks gracefully.

Behavior

On Rate Limit / Overload Errors

When I encounter rate limits or overload errors from cloud providers (Anthropic, OpenAI):

  1. Tell the user immediately — Don't silently fail or retry endlessly
  2. Offer local fallback — Ask if they want to switch to Ollama
  3. Wait for confirmation — Never auto-switch for code generation tasks

Confirmation Required

Before using local models for code generation, ask:

"Cloud is rate-limited. Switch to local Ollama (qwen2.5:7b)? Reply 'yes' to confirm."

For simple queries (chat, summaries), can switch without confirmation if user previously approved.

Commands

/llm status

Report current state:

  • Which provider is active (cloud/local)
  • Ollama availability and models
  • Recent rate limit events

/llm switch local

Manually switch to Ollama for the session.

/llm switch cloud

Switch back to cloud provider.

Using Ollama

# Check available models
ollama list

# Run a query
ollama run qwen2.5:7b "your prompt here"

# For longer prompts, use stdin
echo "your prompt" | ollama run qwen2.5:7b

Installed Models

Check with ollama list. Configured default: qwen2.5:7b

State Tracking

Track in memory during session:

  • currentProvider: "cloud" | "local"
  • lastRateLimitAt: timestamp or null
  • localConfirmedForCode: boolean

Reset to cloud at session start.

Usage Guidance
This skill is not obviously malicious, but review and test it before enabling in production: - Behavior mismatch: SKILL.md/README give the impression of 'ask before switching', but the code immediately switches to local on rate-limit events and only blocks code tasks. If you need an explicit ask-before-switch flow for non-code tasks, modify the onLLMError handler. - Configuration inconsistencies: The code checks ctx.config.confirmationPhrase but skill.json lists requireConfirmationForCode; there's no guaranteed default confirmationPhrase. Without a configured confirmationPhrase, local code tasks will be blocked until you set one. Verify and set these config keys (e.g., localModel, confirmationPhrase, requireConfirmationForCode) as desired. - Confirmation detection is a simple substring match of the last user message (case-insensitive). That can produce false positives or be accidentally triggered; consider a stricter confirmation mechanism if needed. - The skill forces 'anthropic:default' in cloud mode, which may override your intended cloud provider/profile. If you use different cloud profiles, adjust onAgentStart. - The skill points local Ollama at http://127.0.0.1:11434 — ensure the local Ollama server is trusted and secured. Recommended actions before install: inspect/adjust config defaults, test in a non-production workspace, and consider adding explicit user prompts for switching non-code workloads if you want user consent prior to any auto-switch.
Capability Analysis
Type: OpenClaw Skill Name: llm-supervisor Version: 0.3.0 The OpenClaw AgentSkills skill 'llm-supervisor' is designed to manage LLM usage, gracefully handling cloud rate limits by switching to a local Ollama model. The code and documentation consistently align with this stated purpose, implementing features like automatic fallback, user notification, and explicit confirmation for code generation tasks when using local models. There is no evidence of data exfiltration, malicious execution, persistence mechanisms, prompt injection attempts against the agent, obfuscation, or suspicious supply chain practices. All operations are performed through the OpenClaw SDK and are transparently communicated to the user, indicating benign intent.
Capability Assessment
Purpose & Capability
The skill's name/description align with the implementation: it listens for LLM errors, switches the agent to a local Ollama model (baseUrl http://127.0.0.1:11434), and blocks code tasks until confirmation. It does not request external credentials or unusual binaries. Note: onAgentStart forces 'anthropic:default' when in cloud mode which may override user-selected cloud providers unexpectedly.
Instruction Scope
SKILL.md and README describe offering a fallback and asking the user; the implementation actually auto-switches to local when a rate-limit error is detected and then notifies users. Code tasks are blocked until the user confirms, but the auto-switch happens immediately for non-code work. The confirmation check looks for ctx.config.confirmationPhrase inside the last user message (case-insensitive substring match), which may be brittle (false positives/negatives) and can be bypassed or accidentally satisfied. If confirmationPhrase is not configured, the current code will always treat it as not confirmed, effectively blocking local code tasks indefinitely.
Install Mechanism
Instruction-only + bundled source; no install spec, no downloads, and no external package installation. Risk from install mechanism is low.
Credentials
The skill requires no environment variables, no credentials, and no special config paths. The requested capabilities (changing agent LLM profile, storing a small state) are proportionate to its stated purpose.
Persistence & Privilege
The skill registers hooks that alter new agents' LLM profiles and can block task execution — this is expected for a supervisor-type skill. always:false (not force-included) is appropriate. Be aware that it broadcasts notifications via ctx.notify.all when switching modes (may notify all users).
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install llm-supervisor
  3. After installation, invoke the skill by name or use /llm-supervisor
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v0.3.0
Initial release
v0.2.0
Clean publish - rate limit detection, cloud/local switching, safety confirmation
v0.1.3
Clean publish with SKILL.md, dist, all hooks
v0.1.2
- Updated skill version to 0.1.2 in skill.json. - No functional or documentation changes.
v0.1.1
- Simplified and condensed documentation in SKILL.md for easier reading. - Clarified supported features and commands. - Added explicit confirmation phrase for local code generation. - Listed the default local model directly. - Reduced description length for improved accessibility.
v0.1.0
Initial release. - Automatically switches between cloud and local LLMs to prevent downtime from rate limits - Ensures new agents inherit the current LLM mode - Explicit user confirmation required before local LLMs can generate code - Offers commands to check status and switch LLM modes manually - Provides configuration options for switching behavior and safety
v1.0.0
LLM Supervisor 1.0.0 – Automatic LLM Fallbacks and Safe Switching - Automatically detects cloud LLM (e.g., Anthropic) rate limits and switches the main agent to a local LLM (Ollama) to prevent downtime. - Ensures new agents inherit the current (cloud or local) LLM mode. - Requires explicit user confirmation before allowing code-generation via local LLMs to maintain code quality. - Provides commands for status checking and manual switching between cloud and local modes. - Offers configurable options for model selection, switching behavior, and confirmation safety.
Metadata
Slug llm-supervisor
Version 0.3.0
License
All-time Installs 14
Active Installs 11
Total Versions 7
Frequently Asked Questions

What is LLM Supervisor?

Graceful rate limit handling with Ollama fallback. Notifies on rate limits, offers local model switch with confirmation for code tasks. It is an AI Agent Skill for Claude Code / OpenClaw, with 2900 downloads so far.

How do I install LLM Supervisor?

Run "/install llm-supervisor" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is LLM Supervisor free?

Yes, LLM Supervisor is completely free (open-source). You can download, install and use it at no cost.

Which platforms does LLM Supervisor support?

LLM Supervisor is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created LLM Supervisor?

It is built and maintained by dhardie (@dhardie); the current version is v0.3.0.

💬 Comments