← 返回
开发者工具 Key 中文

Clawd Throttle

Routes LLM requests to the cheapest capable model across 8 providers (Anthropic, Google, OpenAI, DeepSeek, xAI, Moonshot, Mistral, Ollama) and 25+ models. Scores prompts on 8 dimensions in under 1ms, supports three routing modes (eco, standard, gigachad), and logs all decisions for cost tracking.
跨8家提供商(Anthropic、Google、OpenAI、DeepSeek、xAI、Moonshot、Mistral、Ollama)和25款以上模型,将LLM请求路由至成本最低的可用模型。在1毫秒内对提示词进行8维度评分,支持三种路由模式(eco、standard、gigachad),并记录所有决策以便成本追踪。
liekzejaws
开发者工具 clawhub v2.0.0 1 版本 99825.2 Key: 需要
★ 0
Stars
📥 1,713
下载
💾 63
安装
1
版本
#latest

概述

Clawd Throttle

Route every LLM request to the cheapest model that can handle it. Stop

paying Opus prices for "hello" and "summarize this."

Supports 8 providers and 25+ models: Anthropic (Claude), Google

(Gemini), OpenAI (GPT / o-series), xAI (Grok), DeepSeek, Moonshot (Kimi),

Mistral, and Ollama (local).

How It Works

  1. Your prompt arrives
  2. The classifier scores it on 8 dimensions (token count, code presence,

reasoning markers, simplicity indicators, multi-step patterns, question

count, system prompt complexity, conversation depth) in under 1 millisecond

  1. The router maps the resulting tier (simple / standard / complex) to a

model based on your active mode and configured providers

  1. The request is proxied to the correct API
  2. The routing decision and cost are logged to a local JSONL file

Routing Modes

ModeSimpleStandardComplex
---------------------------------
ecoGrok 4.1 FastGemini FlashHaiku
standardGrok 4.1 FastHaikuSonnet
gigachadHaikuSonnetOpus 4.6

Each cell shows the first-choice model. The router tries a preference list

and falls through to the next available provider if the first is not

configured.

Available Commands

CommandWhat It Does
----------------------
route_requestSend a prompt and get a response from the cheapest capable model
classify_promptAnalyze prompt complexity without making an LLM call
get_routing_statsView cost savings and model distribution stats
get_configView current configuration (keys redacted)
set_modeChange routing mode at runtime
get_recent_routing_logInspect recent routing decisions

Overrides

  • Heartbeats and summaries always route to the cheapest model
  • Type /opus, /sonnet, /haiku, /flash, or /grok-fast to force a specific model
  • Sub-agent calls automatically step down one tier from their parent

Setup

  1. Get at least one API key (Anthropic or Google required; others optional):
    • Anthropic: https://console.anthropic.com/settings/keys
    • Google AI: https://aistudio.google.com/app/apikey
    • xAI: https://console.x.ai
    • OpenAI: https://platform.openai.com/api-keys
    • DeepSeek: https://platform.deepseek.com
    • Moonshot: https://platform.moonshot.cn
    • Mistral: https://console.mistral.ai
  2. Run the setup script:

```

npm run setup

```

  1. Choose your routing mode (eco / standard / gigachad)

Privacy

  • Prompt content is never stored. Only a SHA-256 hash is logged.
  • All data stays local in ~/.config/clawd-throttle/
  • API keys stored in your local config file

版本历史

共 1 个版本

  • v2.0.0 当前
    2026-03-28 22:18 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,821
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,331
developer-tools

Agent Browser

matrixy
专为AI智能体优化的无头浏览器自动化CLI,支持无障碍树快照和基于引用的元素选择。
★ 427 📥 118,298