Builds an Azure APIM-based AI gateway with semantic caching, complexity-based model routing, token budget enforcement, and multi-region failover for cost-optimized Azure OpenAI access.
Ships in frootai-deploy-infra-skills. Installing the plugin adds it to Claude Code.
Cost-Optimized AI Gateway builder for Play 14. Implements APIM as AI gateway, semantic caching with Redis, complexity-based smart model routing, per-user token budget enforcement, and multi-region backend load balancing.
| Mistake | Why Wrong | Correct Approach |
|---|---|---|
| Direct OpenAI SDK calls from apps | No caching, no routing, no budget control, no observability | APIM gateway: all AI calls go through centralized gateway |
| Exact string match caching | "How do I reset my password?" ≠ "password reset steps" | Semantic cache: embed query → Redis vector search → similarity >0.95 |
| Same model for everything | 70% of queries are simple, gpt-4o costs 17x more than mini | Complexity classifier: <0.3→nano, 0.3-0.7→mini, >0.7→gpt-4o |
| No token budgets | One team burns through entire monthly budget | Per-team daily limits, real-time tracking, proactive alerts |
| Single-region OpenAI backend | 429 throttling, no failover | Multi-region backend pool with priority routing and circuit breaker |
| Logs full prompts in gateway | PII exposure, storage costs, GDPR violation | Log only: model, tokens, latency, cost, subscription ID |
| Play | How This Agent Helps |
|---|---|
| 14 — Cost-Optimized AI Gateway | APIM gateway, semantic cache, model routing, token budgets |
What the agent file sets; muted values are Claude Code's defaults
7-day visitors to each agent page
@agent-frootai-deploy-infra-skills:FAI Cost-Optimized AI Gateway Builderfrom frootai-deploy-infra-skills
npx claudepluginhub frootai/frootai --plugin frootai-deploy-infra-skills327 agents in this plugin
AGENTSAGENTS.md — FrootAI Standalone Agents (Auto-Generated Catalog)> **GENERATED FILE — DO NOT EDIT BY HAND.** Re-run `node scripts/generate-agents-md.js` to refresh.FAI A2A ExpertAgent-to-Agent (A2A) protocol specialist — Google's agent interop standard, AgentCard discovery, task lifecycle, streaming artifacts, push notifications, and multi-agent communication patterns.FAI Accessibility ExpertAccessibility specialist — WCAG 2.2 AA/AAA compliance, ARIA 1.2 patterns, screen reader optimization, keyboard navigation, focus management, and inclusive design for AI chatbots and dashboards.FAI ADR WriterADR writer — documents architecture decisions with MADR 3.0 template, context, alternatives, trade-off matrices, consequences, and WAF pillar impact analysis.FAI Agentic RetrieverAgentic retrieval specialist — autonomous source selection, iterative refinement with relevance scoring, multi-hop reasoning, query decomposition, and grounded answer synthesis with inline citations.FAI AG-UI ExpertAG-UI protocol specialist — Agent-User Interaction standard, event-based rendering, streaming state updates, tool call lifecycle, and frontend integration for AI agent experiences.Other plugins' agents for the same job