astrai-inference-router

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

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "astrai-inference-router" with this command: npx skills add beee003/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
  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

VariableRequiredDescriptionDefault
ASTRAI_API_KEYYesYour API key from as-trai.com
PRIVACY_MODENostandard, enhanced, maxenhanced
REGIONNoany, eu, usany
DAILY_BUDGETNoMax daily spend in USD (0 = unlimited)10

External Endpoints

EndpointPurposeData Sent
https://as-trai.com/v1/chat/completionsLLM inference routingPrompts (with PII stripped if enhanced/max mode)
https://as-trai.com/v1/signupFree API key registrationEmail 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

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Multi-Model Router

Automatically routes tasks to the most suitable local or cloud AI model based on privacy, context length, cost, and performance requirements.

Registry SourceRecently Updated
2790Profile unavailable
General

多模型路由器

多模型路由器 - 原创技能。根据任务特征自动选择最优AI模型,优化成本和性能。适用于大型项目、混合任务、成本优化等场景。

Registry SourceRecently Updated
420Profile unavailable
General

Privacy Policy Generator

Generate a comprehensive, legally compliant privacy policy in Markdown covering GDPR, CCPA, and APPI based on your business details and data practices.

Registry SourceRecently Updated
610Profile unavailable
General

GDPR Compliance Document Generator

Generate UK/EU GDPR compliance documents — privacy policies, cookie policies, DPIAs, ROPA, DSAR responses, data breach notifications, and consent forms. Use...

Registry SourceRecently Updated
1210Profile unavailable