返回顶部
a

astrai-inference-router

Route all LLM calls through Astrai for 40%+ cost savings with intelligent routing and privacy controls

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.1
安全检测
已通过
679
下载量
2
收藏
概述
安装方式
版本历史

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 1. Get a free API key at [as-trai.com](https://as-trai.com) 2. Set `ASTRAI_API_KEY` in your environment or skill config 3. Choose your privacy mode (default: `enhanced`) 4. 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](https://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

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 astrai-inference-router-1776419949 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 astrai-inference-router-1776419949 技能

通过命令行安装

skillhub install astrai-inference-router-1776419949

下载 Zip 包

⬇ 下载 astrai-inference-router v1.0.1

文件大小: 5.44 KB | 发布时间: 2026-4-17 18:50

v1.0.1 最新 2026-4-17 18:50
Add BYOK (Bring Your Own Keys) support — users provide their own provider API keys, pay providers directly. Zero token drain risk.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部