← 返回
开发者工具 中文

NadirClaw

Install, configure, and run NadirClaw LLM router to cut AI API costs by 40-70%. Use when the user wants to reduce LLM spending, route prompts to cheaper mode...
安装、配置并运行 NadirClaw LLM 路由,降低 AI API 费用 40-70%。在用户希望降低 LLM 支出、将提示路由至更低价模式时使用。
doramirdor
开发者工具 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 594
下载
💾 6
安装
1
版本
#latest

概述

NadirClaw Skill

NadirClaw is an open-source LLM router that classifies prompts in ~10ms and routes simple ones to cheap/local models while keeping complex work on premium models.

Install

pip install nadirclaw

Setup

Run the interactive wizard:

nadirclaw setup

Or auto-configure for OpenClaw:

nadirclaw openclaw onboard

This writes NadirClaw as a provider in OpenClaw config with model nadirclaw/auto. No restart needed.

Start

nadirclaw serve --verbose

Runs on http://localhost:8856. Any OpenAI-compatible tool can use it by pointing to this URL.

Point tools at NadirClaw

# OpenClaw (auto)
nadirclaw openclaw onboard

# Claude Code
ANTHROPIC_BASE_URL=http://localhost:8856/v1 claude

# Any OpenAI-compatible tool
OPENAI_BASE_URL=http://localhost:8856/v1 <tool>

Routing profiles

Pass x-routing-profile header or use these models:

  • nadirclaw/auto - smart routing (default)
  • nadirclaw/eco - maximize savings
  • nadirclaw/premium - always use best model
  • nadirclaw/free - Ollama/local only
  • nadirclaw/reasoning - chain-of-thought optimized

Monitor savings

nadirclaw savings      # cost savings report
nadirclaw report       # detailed routing analytics
nadirclaw dashboard    # live terminal dashboard

Key features

  • ~10ms classification overhead
  • Session persistence (no model bouncing mid-conversation)
  • Rate limit fallback (auto-retry on 429)
  • Agentic task detection (forces premium for tool use)
  • Context-window filtering (auto-swaps for long conversations)
  • Supports: OpenAI, Anthropic, Google Gemini, Ollama, any LiteLLM provider

Troubleshooting

  • If nadirclaw serve fails, check API keys: nadirclaw setup
  • For Ollama: ensure ollama serve is running first
  • Logs: nadirclaw report --last 20 to see recent routing decisions
  • Raw debug: nadirclaw serve --verbose --log-raw

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 04:56 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Agent Browser

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

CodeConductor.ai

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

Gog

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