← 返回 Skills 市场
xdd-xund

Chinese LLM Router

作者 xund · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
971
总下载
0
收藏
3
当前安装
1
版本数
在 OpenClaw 中安装
/install chinese-llm-router
功能描述
Route OpenClaw chats to top Chinese LLMs with smart model selection, auto-fallback, cost tracking, and unified OpenAI-compatible API access.
使用说明 (SKILL.md)

Chinese LLM Router

Route your OpenClaw conversations to the best Chinese AI models — no config headaches, just pick and chat.

What It Does

Gives your OpenClaw instant access to all major Chinese LLMs through a single unified interface:

  • DeepSeek (V3.2 / R1) — Best open-source reasoning, dirt cheap
  • Qwen (Qwen3-Max / Qwen3-Max-Thinking / Qwen3-Coder-Plus) — Alibaba's flagship, strong all-rounder
  • GLM (GLM-5 / GLM-4.7) — Zhipu AI, top-tier coding & agent tasks
  • Kimi (K2.5 / K2.5-Thinking) — Moonshot AI, great for long context & vision
  • Doubao Seed 2.0 (Pro / Lite / Mini) — ByteDance, fast & cheap
  • MiniMax (M2.5) — Lightweight powerhouse, runs locally too
  • Step (3.5 Flash) — StepFun, blazing fast inference
  • Baichuan (Baichuan4-Turbo) — Strong Chinese language understanding
  • Spark (v4.0 Ultra) — iFlytek, speech & Chinese NLP specialist
  • Hunyuan (Turbo-S) — Tencent, WeChat ecosystem integration

Quick Start

Tell your OpenClaw:

Use DeepSeek V3.2 for this conversation

Or ask it to pick the best model:

Which Chinese model is best for coding? Switch to it.

Commands

Command What it does
list models Show all available Chinese LLMs with status
use \x3Cmodel> Switch to a specific model
compare \x3Cmodels> Compare capabilities & pricing
recommend \x3Ctask> Get model recommendation for a task type
test \x3Cmodel> Send a test prompt to verify connectivity
status Check which models are currently accessible

Model Selection Guide

Task Recommended Model Why
General chat Qwen3-Max Best all-rounder, strong Chinese
Coding GLM-5 / Kimi K2.5 Top coding benchmarks
Math & reasoning DeepSeek R1 Purpose-built for reasoning
Long documents Kimi K2.5 (128K) / DeepSeek V3.2 (1M) Massive context windows
Fast & cheap Step 3.5 Flash / Doubao Seed 2.0 Mini Sub-second latency
Creative writing Qwen3-Max / Doubao Seed 2.0 Pro Rich Chinese expression
Agent tasks GLM-5 / Qwen3-Max Best tool-use support

Configuration

The skill reads API keys from environment or from ~/.chinese-llm-router/config.json:

{
  "providers": {
    "deepseek": {
      "apiKey": "sk-xxx",
      "baseUrl": "https://api.deepseek.com/v1",
      "models": ["deepseek-chat", "deepseek-reasoner"]
    },
    "qwen": {
      "apiKey": "sk-xxx",
      "baseUrl": "https://dashscope.aliyuncs.com/compatible-mode/v1",
      "models": ["qwen3-max", "qwen3-max-thinking", "qwen3-coder-plus"]
    },
    "glm": {
      "apiKey": "xxx.xxx",
      "baseUrl": "https://open.bigmodel.cn/api/paas/v4",
      "models": ["glm-5", "glm-4-plus"]
    },
    "kimi": {
      "apiKey": "sk-xxx",
      "baseUrl": "https://api.moonshot.cn/v1",
      "models": ["kimi-k2.5", "kimi-k2.5-thinking"]
    },
    "doubao": {
      "apiKey": "xxx",
      "baseUrl": "https://ark.cn-beijing.volces.com/api/v3",
      "models": ["doubao-seed-2.0-pro", "doubao-seed-2.0-lite", "doubao-seed-2.0-mini"]
    },
    "minimax": {
      "apiKey": "xxx",
      "baseUrl": "https://api.minimax.chat/v1",
      "models": ["minimax-m2.5"]
    },
    "step": {
      "apiKey": "xxx",
      "baseUrl": "https://api.stepfun.com/v1",
      "models": ["step-3.5-flash"]
    },
    "baichuan": {
      "apiKey": "xxx",
      "baseUrl": "https://api.baichuan-ai.com/v1",
      "models": ["baichuan4-turbo"]
    },
    "spark": {
      "apiKey": "xxx",
      "baseUrl": "https://spark-api-open.xf-yun.com/v1",
      "models": ["spark-v4.0-ultra"]
    },
    "hunyuan": {
      "apiKey": "xxx",
      "baseUrl": "https://api.hunyuan.cloud.tencent.com/v1",
      "models": ["hunyuan-turbo-s"]
    }
  },
  "default": "qwen3-max",
  "fallback": ["deepseek-chat", "doubao-seed-2.0-pro"]
}

Setup

  1. Get API keys from the providers you want (most offer free tiers):

  2. Run the setup script:

    node scripts/setup.js
    
  3. Done! Your OpenClaw can now use any configured model.

Pricing Reference (Feb 2026)

Model Input (¥/M tokens) Output (¥/M tokens) Notes
DeepSeek V3.2 ¥0.5 (cache ¥0.1) ¥2.0 Cheapest flagship
Qwen3-Max ¥2.0 ¥6.0 Free tier available
GLM-5 ¥5.0 ¥5.0 Just launched, may change
Kimi K2.5 ¥2.0 ¥6.0 Open source, self-host free
Doubao Seed 2.0 Pro ¥0.8 ¥2.0 ByteDance subsidy
Doubao Seed 2.0 Mini ¥0.15 ¥0.3 Ultra cheap
MiniMax M2.5 ¥1.0 ¥3.0 Can run locally
Step 3.5 Flash ¥0.7 ¥1.4 Fastest inference

Prices as of Feb 2026. All providers offer free tiers or credits for new users.

All APIs are OpenAI-Compatible

Every provider listed uses the OpenAI chat/completions format. No special SDKs needed — just change baseUrl and apiKey.

Features

  • Auto-fallback: If one provider is down, automatically try the next
  • Cost tracking: See per-model token usage and estimated cost
  • Smart routing: Describe your task, get the best model recommendation
  • Batch compare: Send the same prompt to multiple models, compare outputs
  • Context-aware: Remembers your model preference per conversation topic

Links

安全使用建议
Key points before installing: - Function/purpose: The code is a straightforward router that reads API keys from ~/.chinese-llm-router/config.json (setup.js) and sends chat requests to provider baseUrls; this matches the skill description. Expect to provide API keys for any provider you want to use. - SKILL.md inaccuracies: The README says it reads keys from environment variables OR the config file, but the provided code only reads the config file. Also several advertised features (cost tracking, persistent per-conversation model preferences) are not present in the provided scripts — they may be planned features, not implemented. - Sensitive data: The setup script saves your provider API keys to ~/.chinese-llm-router/config.json. Protect that file (set permissions, e.g., chmod 600) and only enter keys for providers you trust. Any prompt you send through this router will be transmitted to the configured provider(s) and may be logged or retained by them. - Bug to be aware of: router.js constructs the request URL in a way that duplicates the path (it appends '/chat/completions' twice), which will likely break calls to providers as-is. If you encounter failures, inspect chatCompletion() and adjust the path construction (use the URL's pathname without re-appending '/chat/completions'). - Operational advice: Review the config file after running setup to confirm keys/baseUrls are correct. If you prefer not to type keys interactively, you can create the config.json yourself with correct structure. Test providers with the CLI 'node scripts/router.js test <model>' before relying on the skill. Overall recommendation: The skill appears coherent and not malicious, but review and harden the local config file and be aware of the documentation/code mismatches and the URL path bug before use.
功能分析
Type: OpenClaw Skill Name: chinese-llm-router Version: 1.0.0 The skill's core router (`scripts/router.js`) dynamically determines whether to use HTTP or HTTPS based on the `baseUrl` provided in the configuration. While all default `baseUrl`s listed in `SKILL.md` and `scripts/setup.js` are HTTPS, this design choice means that if the `config.json` file (located at `~/.chinese-llm-router/config.json`) were tampered with to include an HTTP URL for a provider, API keys could be transmitted unencrypted. This constitutes a sensitive data exposure vulnerability, classifying the skill as suspicious due to a risky capability that could be exploited, rather than clear malicious intent.
能力评估
Purpose & Capability
The code (router.js + setup.js) implements a model router for the listed Chinese providers and requires provider API keys — this matches the skill's description. Minor mismatch: SKILL.md claims it 'reads API keys from environment or from ~/.chinese-llm-router/config.json', but the shipped code only reads/writes the config file (no environment-variable fallback is implemented).
Instruction Scope
Runtime instructions are limited to running the interactive setup and using the router CLI or exported functions. The scripts only read/write ~/.chinese-llm-router/config.json and make HTTP(S) calls to provider baseUrls. SKILL.md mentions features like 'cost tracking' and 'context-aware' preferences which are advertised but not implemented in the provided code (no persistent per-conversation preference store or token accounting found).
Install Mechanism
There is no install spec; this is instruction-plus-scripts only. Nothing is downloaded from external URLs during install. Risk is low because no archive/executable is pulled from unknown hosts.
Credentials
The skill asks the user to provide API keys for multiple Chinese LLM providers — this is proportionate to a router that can use many providers. Registry metadata declared no required env vars, but SKILL.md suggests env-var support (which the code does not implement). API keys are stored in a config file under the user's home directory; that is expected but sensitive.
Persistence & Privilege
The skill writes a config file to ~/.chinese-llm-router/config.json and creates the directory if needed. It does not request elevated or system-wide privileges, does not set always:true, and does not modify other skills or agent-wide settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install chinese-llm-router
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /chinese-llm-router 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of Chinese LLM Router. - Unified interface to access all major Chinese LLMs in OpenClaw. - Supports model selection, comparison, recommendations, and testing via commands. - Auto-fallback, cost tracking, and smart routing between multiple providers. - Simple configuration with OpenAI-compatible APIs and quick setup script. - Comprehensive model/task recommendations and up-to-date pricing included.
元数据
Slug chinese-llm-router
版本 1.0.0
许可证
累计安装 3
当前安装数 3
历史版本数 1
常见问题

Chinese LLM Router 是什么?

Route OpenClaw chats to top Chinese LLMs with smart model selection, auto-fallback, cost tracking, and unified OpenAI-compatible API access. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 971 次。

如何安装 Chinese LLM Router?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install chinese-llm-router」即可一键安装,无需额外配置。

Chinese LLM Router 是免费的吗?

是的,Chinese LLM Router 完全免费(开源免费),可自由下载、安装和使用。

Chinese LLM Router 支持哪些平台?

Chinese LLM Router 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Chinese LLM Router?

由 xund(@xdd-xund)开发并维护,当前版本 v1.0.0。

💬 留言讨论