Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
6,000+ web scrapers for your AI agent, start free logo6,000+ web scrapers for your AI agent, start free

Apify gives your agent live web data: 6,000+ prebuilt scrapers and actors, MCP-ready. Sign up free with $5 in usage credits.

Try Apify free
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 48,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here
openclaw-triage-gate logo

openclaw-triage-gate

as3445/openclaw-triage-gate

Otheropenclawby as3445

Summary

OpenClaw plugin exposing 0 skills.

Install to Claude Code

openclaw plugin add as3445/openclaw-triage-gate

Run in Claude Code. Add the marketplace first with /plugin marketplace add as3445/openclaw-triage-gate if you haven't already.

README.md

openclaw-triage-gate

A lightweight triage gate for OpenClaw group chats. Uses a cheap model to decide if the bot should respond before the expensive main model runs.

The Problem

When an OpenClaw bot is in group chats with requireMention: false, every message triggers the main model (e.g. Opus at $15/M input, $75/M output) — even when the bot decides not to respond (NO_REPLY). In active groups, this wastes most of the token budget on messages the bot ignores anyway.

The Solution

This plugin intercepts group messages before the main model runs. It calls a cheap triage model (e.g. Haiku at $1/M input, $5/M output) to make a quick RESPOND/SKIP decision. If the triage model says SKIP, the main model never fires.

Group message → Triage model (cheap) → SKIP? → Done ($0.001)
                                      → RESPOND? → Main model (expensive) → Reply

DMs always pass through without triage.

Estimated Savings

Assuming ~80% of group messages don't need a response:

| Scenario | Cost per 100 messages | |----------|----------------------| | Without plugin (all Opus) | $5-22 | | With plugin (Haiku triage) | $1-5 |

75-90% reduction in group chat token costs.

Install

openclaw plugins install openclaw-triage-gate

Configure

Add to your OpenClaw config:

{
  "plugins": {
    "entries": {
      "triage-gate": {
        "enabled": true,
        "config": {
          "triageModel": "anthropic/claude-haiku-4-5-20251001"
        }
      }
    }
  }
}

Or via CLI:

openclaw config set plugins.entries.triage-gate.enabled true
openclaw config set plugins.entries.triage-gate.config.triageModel "anthropic/claude-haiku-4-5-20251001"

Config Options

| Option | Type | Default | Description | |--------|------|---------|-------------| | triageModel | string | anthropic/claude-haiku-4-5-20251001 | Model for triage decisions, in provider/model format | | triagePrompt | string | (built-in) | Custom prompt — must instruct the model to reply RESPOND or SKIP | | groups | string[] | all groups | Only apply triage to these group IDs | | excludeGroups | string[] | none | Skip triage for these group IDs | | maxTriageTokens | number | 10 | Max output tokens for triage response | | logDecisions | boolean | true | Log each triage decision |

Model Examples

Use any model your OpenClaw instance has configured:

{ "triageModel": "anthropic/claude-haiku-4-5-20251001" }
{ "triageModel": "minimax/minimax-m2.5" }
{ "triageModel": "openai/gpt-4.1-mini" }
{ "triageModel": "openrouter/meta-llama/llama-4-scout" }

The plugin resolves API keys from OpenClaw's existing provider config — no need to add API keys to the plugin config.

Custom Triage Prompt

You can customize when the bot responds by providing your own prompt:

{
  "triagePrompt": "You are a triage system. Reply RESPOND if the message needs the bot's attention, SKIP otherwise.\n\nAlways RESPOND to: questions, requests for help, mentions of health or emergencies.\nAlways SKIP: greetings, emoji reactions, casual chat."
}

How It Works

1. The plugin registers a before_dispatch hook in OpenClaw 2. When a group message arrives, the hook fires before the main agent 3. The plugin calls the configured triage model with the message content 4. If the model says SKIP, the plugin returns { handled: true } — the main agent never runs 5. If the model says RESPOND (or anything unclear), the message proceeds to the main agent normally

On any error (API timeout, missing key, etc.), the plugin defaults to letting the message through. Better to waste some tokens than silently drop messages.

Future Enhancements

These are planned but not yet implemented:

  • Recent message history in triage context for better accuracy
  • Per-group custom triage prompts
  • Confidence scores with configurable thresholds
  • Analytics dashboard (hit/miss ratio, tokens saved)
  • Keyword bypass list (always respond to certain words)
  • Rate-based bypass (skip triage in quiet groups)

License

MIT

Related plugins

Browse all →