higress-auto-router

Route user prompts to AI models via trigger-based rules for Higress AI Gateway.

9.1k|1.2k|Updated Oct 27, 2022
One-click install
npx skills add https://github.com/alibaba/higress --skill higress-auto-router
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: higress-auto-router
Source: https://github.com/alibaba/higress/tree/main/.claude/skills/higress-auto-router
Command: npx skills add https://github.com/alibaba/higress --skill higress-auto-router

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Route user requests to the most suitable AI model using trigger-based rules for Higress AI Gateway. This skill enables dynamic routing of prompts to specialized models based on content patterns and predefined triggers, reducing manual routing decisions.

Core Features & Use Cases

  • Rule-based routing: Define triggers and associated models, enabling automatic model selection.
  • Regex and phrase triggers: Support for simple phrases or complex patterns to capture diverse intents.
  • Lifecycle management: Add, list, and remove routing rules with hot-reload without restarting the gateway.

Quick Start

Configure a rule to route deep-thinking prompts to claude-opus-4.5 using the trigger phrase "深入思考" to see automatic routing in action.

Frequently Asked Questions about higress-auto-router

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I route AI model requests automatically based on prompt content?

You can route AI model requests automatically by configuring trigger-based rules that map prompt content patterns to specific models like claude-opus-4.5 or gpt-4o using the Higress AI Gateway.

Can I use regex patterns for AI gateway routing rules?

Yes, AI gateway routing rules support both simple trigger phrases and complex regex patterns to capture diverse user intents and map prompts to specialized models accurately.

How do I manage AI routing rules without restarting the gateway?

You can add, list, and remove routing rules with hot-reload functionality using the get-ai-gateway.sh CLI, enabling lifecycle management without restarting the Higress AI Gateway.

What is the best way to route deep-thinking prompts to a specialized model?

The best way to route deep-thinking prompts is to define a trigger phrase like "深入思考" and associate it with a capable model such as claude-opus-4.5 to handle complex reasoning requests.

Do I need the get-ai-gateway.sh CLI to configure Higress AI Gateway routing?

Yes, the get-ai-gateway.sh CLI is required to operate the Higress AI Gateway and execute commands for adding, listing, and removing your trigger-based routing rules.

Why configure trigger phrases instead of manual AI model selection?

Configuring trigger phrases eliminates manual routing decisions by automatically matching prompt content to the most suitable AI model, reducing operational overhead and latency.