ai-gateway

Route AI tasks across tiered models to minimize cost.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/najahpokkiri/axis-spatial-tool --skill ai-gateway-najahpokkiri
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ai-gateway
Source: https://github.com/najahpokkiri/axis-spatial-tool/tree/main/.claude/skills/ai-gateway
Command: npx skills add https://github.com/najahpokkiri/axis-spatial-tool --skill ai-gateway-najahpokkiri

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill demonstrates cost-optimized AI task routing across multiple models, using a local-first strategy to minimize spend without sacrificing quality.

Core Features & Use Cases

  • Cost Hierarchy & Routing: Tiered model options and routing tables for each task type.
  • LiteLLM Integration: Use lightweight models where possible and escalate to stronger models as needed.
  • Environment & Testing: Guidance on regional configuration and test patterns for routing.

Quick Start

Configure TASK_ROUTING with the provided model IDs, then simulate a simple completion to verify that the cheapest model is used first and escalation occurs on failure.