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_KEY in 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
1---2name: astrai-inference-router3description: Route all LLM calls through Astrai for 40%+ cost savings with intelligent routing and privacy controls4---5
6# Astrai Inference Router
7
8Route every LLM call through Astrai's intelligent router.
9Save 40%+ on API costs. Privacy controls built in.
10
11## What it does
12
13- **Smart routing**: Classifies each task (code, research, chat, creative) and picks the optimal model
14- **Cost savings**: Bayesian learning finds the cheapest provider that meets your quality threshold
15- **Auto-failover**: Circuit breaker switches providers when one goes down
16- **PII protection**: Personally identifiable information stripped before reaching any provider
17- **EU routing**: GDPR-compliant European-only routing with one setting
18- **Budget caps**: Set daily spend limits to prevent runaway costs
19- **Real-time tracking**: See exactly how much you're saving per request
20
21## Setup
22
231. Get a free API key at [as-trai.com](https://as-trai.com)
242. Set `ASTRAI_API_KEY` in your environment or skill config
253. Choose your privacy mode (default: `enhanced`)
264. Done — all LLM calls now route through Astrai
27
28## Privacy Modes
29
30- **standard**: Full routing intelligence, normal logging
31- **enhanced**: PII stripped, metadata-only logging, region enforced
32- **max**: Zero data retention, EU-only, all PII stripped, no prompt logging
33
34## Environment Variables
35
36| Variable | Required | Description | Default |
37|---|---|---|---|
38| `ASTRAI_API_KEY` | Yes | Your API key from as-trai.com | — |
39| `PRIVACY_MODE` | No | standard, enhanced, max | enhanced |
40| `REGION` | No | any, eu, us | any |
41| `DAILY_BUDGET` | No | Max daily spend in USD (0 = unlimited) | 10 |
42
43## External Endpoints
44
45| Endpoint | Purpose | Data Sent |
46|---|---|---|
47| `https://as-trai.com/v1/chat/completions` | LLM inference routing | Prompts (with PII stripped if enhanced/max mode) |
48| `https://as-trai.com/v1/signup` | Free API key registration | Email address |
49
50## Security & Privacy
51
52- All requests authenticated via API key in Authorization header
53- PII stripping runs locally before any data leaves your machine (enhanced/max modes)
54- EU routing mode ensures prompts never leave European infrastructure
55- Zero data retention available in max privacy mode
56- No credentials are stored by the skill — only your API key in environment variables
57- Source code is fully open: [github.com/beee003/astrai-openclaw](https://github.com/beee003/astrai-openclaw)
58
59## Model Invocation
60
61This 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.
62
63## Pricing
64
65- **Free**: 1,000 requests/day, smart routing, failover
66- **Pro** ($49/mo): Unlimited requests, EU routing, PII stripping, analytics
67- **Business** ($199/mo): Multi-agent dashboards, compliance exports, SLA