/install astrai-inference-router
Astrai Inference Router
Route every LLM call through Astrai's intelligent router. Save 40%+ on API costs. Privacy controls built in.
What it does
- Smart routing: Classifies each task (code, research, chat, creative) and picks the optimal model
- Cost savings: Bayesian learning finds the cheapest provider that meets your quality threshold
- Auto-failover: Circuit breaker switches providers when one goes down
- PII protection: Personally identifiable information stripped before reaching any provider
- EU routing: GDPR-compliant European-only routing with one setting
- Budget caps: Set daily spend limits to prevent runaway costs
- Real-time tracking: See exactly how much you're saving per request
Setup
- Get a free API key at as-trai.com
- Set
ASTRAI_API_KEYin your environment or skill config - Choose your privacy mode (default:
enhanced) - Done — all LLM calls now route through Astrai
Privacy Modes
- standard: Full routing intelligence, normal logging
- enhanced: PII stripped, metadata-only logging, region enforced
- max: Zero data retention, EU-only, all PII stripped, no prompt logging
Environment Variables
| 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 |
External Endpoints
| 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 |
Security & Privacy
- All requests authenticated via API key in Authorization header
- PII stripping runs locally before any data leaves your machine (enhanced/max modes)
- EU routing mode ensures prompts never leave European infrastructure
- Zero data retention available in max privacy mode
- No credentials are stored by the skill — only your API key in environment variables
- Source code is fully open: github.com/beee003/astrai-openclaw
Model Invocation
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.
Pricing
- Free: 1,000 requests/day, smart routing, failover
- Pro ($49/mo): Unlimited requests, EU routing, PII stripping, analytics
- Business ($199/mo): Multi-agent dashboards, compliance exports, SLA
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install astrai-inference-router - 安装完成后,直接呼叫该 Skill 的名称或使用
/astrai-inference-router触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Astrai Inference Router 是什么?
Route all LLM calls through Astrai for 40%+ cost savings with intelligent routing and privacy controls. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 776 次。
如何安装 Astrai Inference Router?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install astrai-inference-router」即可一键安装,无需额外配置。
Astrai Inference Router 是免费的吗?
是的,Astrai Inference Router 完全免费(开源免费),可自由下载、安装和使用。
Astrai Inference Router 支持哪些平台?
Astrai Inference Router 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Astrai Inference Router?
由 beee003(@beee003)开发并维护,当前版本 v1.0.1。