inference-gateway-routing

inference-gateway-routing is a skill for Claude Code from aws-samples/sample-oh-my-aidlcops. It costs 84 tokens per session (1,337 once invoked), scanned A, original, MIT-0.

Instructions for configuring a two-level model-routing gateway on EKS. It can choose models by request intent and fall back from a faster, cheaper model to more capable models when needed.

In plain words
What is it for?
Use it to configure kgateway, Bifrost or LiteLLM, Cascade Routing, intent-based Semantic Router rules, HTTPRoute settings, and OpenTelemetry trace propagation.
Why use it?
It organizes model selection and fallback in one routing layer, while carrying request traces to Langfuse for monitoring.

Skill for Claude Code ✓ vendor

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter.

Part of the ai-infra plugin — 6 skills, 2 commands, 4 agents shipped together

Good fit Use it to configure kgateway, Bifrost or LiteLLM, Cascade Routing, intent-based Semantic Router rules, HTTPRoute settings, and OpenTelemetry trace propagation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aws-samples/sample-oh-my-aidlcops/inference-gateway-routing
About the project

sample-oh-my-aidlcops is a plugin marketplace for Claude Code and Kiro that packages practices for managing the AWS AI-Driven Development Lifecycle, including design correctness and agent safety. It is for teams using agents to develop and operate AWS systems with approval checkpoints. Its catalogue contains the marketplace's plugins, skills, agents, and commands.

aws-samples/sample-oh-my-aidlcops · 19 stars · on GitHub · aws-samples.github.io

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add aws-samples/sample-oh-my-aidlcops --skill inference-gateway-routing
Clone the repo
git clone --depth 1 https://github.com/aws-samples/sample-oh-my-aidlcops

Made for: Claude Code.

Or install ai-infra, the plugin that ships this one along with the rest of its 6 skills, 2 commands, 4 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for inference-gateway-routing

README.md
[![agentmods](https://agentmods.dev/badge/skills/aws-samples/sample-oh-my-aidlcops/inference-gateway-routing/github.svg)](https://agentmods.dev/skills/aws-samples/sample-oh-my-aidlcops/inference-gateway-routing)
Your own site
<a href="https://agentmods.dev/skills/aws-samples/sample-oh-my-aidlcops/inference-gateway-routing"><img src="https://agentmods.dev/badge/skills/aws-samples/sample-oh-my-aidlcops/inference-gateway-routing/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for inference-gateway-routing

Your own site · 80×15
<a href="https://agentmods.dev/skills/aws-samples/sample-oh-my-aidlcops/inference-gateway-routing"><img src="https://agentmods.dev/badge/skills/aws-samples/sample-oh-my-aidlcops/inference-gateway-routing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,337 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00084 $0.01337
Opus 5 $0.00042 $0.00668
Sonnet 5 $0.00017 $0.00267
Haiku 4.5 $0.00008 $0.00134

Measured 9d ago against content hash 5242632b9573, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

inference-gateway-routing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/ai-infra/skills/inference-gateway-routing/SKILL.md · 136 lines

The source is not reproduced here

Licensed MIT-0

The repository is licensed MIT-0, which this catalogue does not treat as permission to reproduce the file. Read it at the source.

Read it on GitHub

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 136 lines · 84 tokens per session scan A 5242632b9573

Subscribe to this mod's changes

inference-gateway-routing is a skill published in the GitHub repository aws-samples/sample-oh-my-aidlcops (19 stars, last pushed 2d ago), licensed MIT-0. It adds 84 tokens to every session and 1,337 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

gpu-kubernetes-operations

Operate GPU-backed Kubernetes clusters for AI inference and training with scheduling, autoscaling, node health, MIG partitioning, and cost controls.

BagelHole/DevOps-Security-Agent-Skills · 33 tokens

model-serving-kubernetes

Deploy ML models on Kubernetes with KServe (formerly KFServing) and NVIDIA Triton Inference Server. Includes canary deployments, autoscaling, model versioning, A/B testing, and GPU resource management for production model serving.

BagelHole/DevOps-Security-Agent-Skills · 51 tokens

llm-inference-scaling

Auto-scale LLM inference clusters on Kubernetes using KEDA, custom GPU metrics, and horizontal pod autoscaling. Handle traffic spikes, implement queue-based scaling, and optimize cost with spot instances for AI workloads.

BagelHole/DevOps-Security-Agent-Skills · 48 tokens

aws-bedrock-ai

WORKFLOW SKILL — Amazon Bedrock and AWS AI design: foundation model selection, knowledge bases (RAG), agents for bedrock, guardrails, provisioned throughput, batch inference, fine-tuning, KMS, VPC endpoints, regional GA, and per-provider licensing.

odere-pro/claude-aws-architect · 65 tokens

ollama-stack

Run local LLM workloads with Ollama, Open WebUI, and GPU-aware tuning for private development environments. Use when setting up private inference, local AI dev environments, or air-gapped LLM deployments.

BagelHole/DevOps-Security-Agent-Skills · 46 tokens

mcore-run-on-slurm

How to launch distributed Megatron-LM training jobs on a SLURM cluster. Covers a minimal sbatch skeleton, environment-variable setup for torch.distributed.run, CUDADEVICEMAXCONNECTIONS rules across hardware and parallelism modes, container conventions, monitoring, and per-rank failure diagnosis.

NVIDIA/skills · 65 tokens