LaunchKit · 2026
Back to Skills

astrai-inference-router

AI & LLMsv1.0.1

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

2
473 downloads
by @beee003

Setup & Installation

openclaw skills install @beee003/astrai-inference-router

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install astrai-inference-router

Version History

v1.0.1Feb 16, 2026 - Version note by skill developer:

Add BYOK (Bring Your Own Keys) support — users provide their own provider API keys, pay providers directly. Zero token drain risk.

What This Skill Does

Routes outgoing LLM API calls through Astrai's gateway, which classifies each task and selects the cheapest provider meeting a quality threshold. PII is stripped locally before prompts leave your machine in enhanced and max privacy modes. EU-only routing is available for GDPR compliance.

Combines cost routing, provider failover, and PII controls in one gateway without requiring changes to existing API call code.

When to use it

  • Reducing daily API spend when running multiple LLM-powered agents
  • Keeping prompts within EU infrastructure to meet GDPR requirements
  • Capping daily LLM spend to prevent unexpected billing overruns
  • Automatically recovering when a provider goes down mid-session
  • Stripping names and emails from prompts before they reach any external model

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: route my LLM calls through Astrai with EU-only mode and a $5 daily budget

AGENT
  1. 1Reads ASTRAI_API_KEY from environment
  2. 2Sets REGION=eu and DAILY_BUDGET=5 in skill config
  3. 3Intercepts the outgoing LLM API call and forwards it to the Astrai gateway
  4. 4Astrai classifies the task type and selects the optimal EU-based provider
  5. 5Returns the response with per-request cost and savings data
OUTPUT

LLM response delivered via an EU provider with PII stripped and real-time cost savings reported

Requirements

Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.

ASTRAI_API_KEY: free account at as-trai.comANTHROPIC_API_KEY: Anthropic API keyAstrai Pro plan ($49/mo) for EU routing and PII stripping; free tier limited to 1,000 requests/day with smart routing and failover only