Higress is a cloud-native API gateway built on Istio and Envoy that routes and manages APIs and can be extended with WebAssembly plugins. It is used to manage APIs for AI models and MCP servers as well as general services, and the catalogue entries provide agent workflows and integrations for operating it.
Borrowing it
Nothing to install: this file belongs to higress-group/higress. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/higress-group/higress/main/.agents/skills/higress-auto-router/SKILL.mdgit clone --depth 1 https://github.com/higress-group/higressWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/higress-group/higress/higress-auto-router)<a href="https://agentmods.dev/skills/higress-group/higress/higress-auto-router"><img src="https://agentmods.dev/badge/skills/higress-group/higress/higress-auto-router/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/higress-group/higress/higress-auto-router"><img src="https://agentmods.dev/badge/skills/higress-group/higress/higress-auto-router.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00088 | $0.01082 |
| Opus 5.5 | $0.00035 | $0.00433 |
| Sonnet 5.5 | $0.00018 | $0.00216 |
| Haiku 4.5 | $0.00009 | $0.00108 |
Grade A, and why
higress-auto-router scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 140 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Higress Auto Router
Configure automatic model routing using the get-ai-gateway.sh CLI tool for intelligent model selection based on message content triggers.
Prerequisites
- Higress AI Gateway running (container name:
higress-ai-gateway) - get-ai-gateway.sh script downloaded
CLI Commands
Add a Routing Rule
./get-ai-gateway.sh route add --model <model-name> --trigger "<trigger-phrases>"
Options:
--model MODEL(required): Target model to route to--trigger PHRASE: Trigger phrase(s), separated by|(e.g.,"深入思考|deep thinking")--pattern REGEX: Custom regex pattern (alternative to--trigger)
Examples:
# Route complex reasoning to Claude
./get-ai-gateway.sh route add \
--model claude-opus-4.5 \
--trigger "深入思考|deep thinking"
# Route coding tasks to Qwen Coder
./get-ai-gateway.sh route add \
--model qwen-coder \
--trigger "写代码|code:|coding:"
# Route creative writing
./get-ai-gateway.sh route add \
--model gpt-4o \
--trigger "创意写作|creative:"
# Use custom regex pattern
./get-ai-gateway.sh route add \
--model deepseek-chat \
--pattern "(?i)^(数学题|math:)"
List Routing Rules
./get-ai-gateway.sh route list
Output:
Default model: qwen-turbo
ID Pattern Model
----------------------------------------------------------------------
0 (?i)^(深入思考|deep thinking) claude-opus-4.5
1 (?i)^(写代码|code:|coding:) qwen-coder
Remove a Routing Rule
./get-ai-gateway.sh route remove --rule-id <id>
Example:
# Remove rule with ID 0
./get-ai-gateway.sh route remove --rule-id 0
Common Trigger Mappings
| Scenario | Suggested Triggers | Recommended Model |
|---|---|---|
| Complex reasoning | 深入思考|deep thinking |
claude-opus-4.5, o1 |
| Coding tasks | 写代码|code:|coding: |
qwen-coder, deepseek-coder |
| Creative writing | 创意写作|creative: |
gpt-4o, claude-sonnet |
| Translation | 翻译:|translate: |
gpt-4o, qwen-max |
| Math problems | 数学题|math: |
deepseek-r1, o1-mini |
| Quick answers | 快速回答|quick: |
qwen-turbo, gpt-4o-mini |
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 140 lines · 88 tokens per session scan A 771ed634fa08
higress-auto-router is a skill published in the GitHub repository higress-group/higress (9,720 stars, last pushed today), licensed Apache-2.0. It adds 88 tokens to every session and 1,082 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
higress-auto-router compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| higress-auto-routerhigress-group/higress | Skill | 9.7k | today | Apache-2.0 | A | 88 | Claude Code, Codex |
| omni-inferencediegosouzapw/OmniRoute | Skill | 83k | 5d ago | MIT | A | 47 | Claude Code, Codex |
| omni-compressiondiegosouzapw/OmniRoute | Skill | 83k | 5d ago | MIT | A | 42 | Claude Code, Codex |
| cli-evaldiegosouzapw/OmniRoute | Skill | 83k | 5d ago | MIT | A | 34 | Claude Code, Codex |
| omni-modelsdiegosouzapw/OmniRoute | Skill | 83k | 5d ago | MIT | A | 32 | Claude Code, Codex |
| cli-batchesdiegosouzapw/OmniRoute | Skill | 83k | 5d ago | MIT | A | 34 | Claude Code, Codex |
| cli-compressiondiegosouzapw/OmniRoute | Skill | 83k | 5d ago | MIT | A | 34 | Claude Code, Codex |