Route all LLM calls through Astrai for 40%+ cost savings with intelligent routing and privacy controls
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install astrai-inference-router或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install astrai-inference-router⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/astrai-inference-router/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: astrai-inference-router description: Route all LLM calls through Astrai for 40%+ cost savings with intelligent routing and privacy controls version: 1.0.0 homepage: https://github.com/beee003/astrai-openclaw metadata: clawdbot: emoji: "⚡" requires: env: ["ASTRAI_API_KEY", "ANTHROPIC_API_KEY"] primaryEnv: "ASTRAI_API_KEY" files: ["plugin.py", "config.example.toml"] tags: [inference, routing, privacy, cost-optimization, gdpr, eu, savings, llm-gateway] ---
Route every LLM call through Astrai's intelligent router. Save 40%+ on API costs. Privacy controls built in.
ASTRAI_API_KEY in your environment or skill configenhanced)| Variable | Required | Description | Default | |---|---|---|---| | ASTRAI_API_KEY | Yes | Your API key from as-trai.com | — | | PRIVACY_MODE | No | standard, enhanced, max | enhanced | | REGION | No | any, eu, us | any | | DAILY_BUDGET | No | Max daily spend in USD (0 = unlimited) | 10 |
| Endpoint | Purpose | Data Sent | |---|---|---| | https://as-trai.com/v1/chat/completions | LLM inference routing | Prompts (with PII stripped if enhanced/max mode) | | https://as-trai.com/v1/signup | Free API key registration | Email address |
This skill intercepts outgoing LLM API calls and reroutes them through the Astrai gateway. The gateway selects the optimal provider and model based on task type, cost, and quality. Your prompts are processed by third-party LLM providers (Anthropic, OpenAI, Google, Mistral, etc.) according to your region and privacy settings.
安装 Astrai Inference Router 后,可以对 AI 说这些话来触发它
Help me get started with Astrai Inference Router
Explains what Astrai Inference Router does, walks through the setup, and runs a quick demo based on your current project
Use Astrai Inference Router to route all LLM calls through Astrai for 40%+ cost savings with intel...
Invokes Astrai Inference Router with the right parameters and returns the result directly in the conversation
What can I do with Astrai Inference Router in my general tools workflow?
Lists the top use cases for Astrai Inference Router, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/astrai-inference-router/ 目录(个人级,所有项目可用),或 .claude/skills/astrai-inference-router/(项目级)。重启 AI 客户端后,用 /astrai-inference-router 主动调用,或让 AI 根据上下文自动发现并使用。
Astrai Inference Router 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Astrai Inference Router 可免费安装使用。请查阅仓库了解许可证信息。
Route all LLM calls through Astrai for 40%+ cost savings with intelligent routing and privacy controls
Astrai Inference Router 属于「General Tools」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my general tools tasks using Astrai Inference Router
Identifies repetitive steps in your workflow and sets up Astrai Inference Router to handle them automatically