sglang-model-gateway

Route OpenAI-compatible HTTP and gRPC traffic to vLLM/SGLang workers with policy-driven load balancing.

5|1|Updated Apr 19, 2026
One-click install
npx skills add https://github.com/air-gapped/skills --skill sglang-model-gateway
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sglang-model-gateway
Source: https://github.com/air-gapped/skills/tree/main/.claude/skills/sglang-model-gateway
Command: npx skills add https://github.com/air-gapped/skills --skill sglang-model-gateway

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes assets (resource) and references (resource) components.

What problem does it solve?

The sglang-model-gateway provides a Rust-based front door for OpenAI-compatible HTTP and gRPC workloads, routing requests to vLLM and SGLang inference workers behind Kubernetes deployments with predictable latency and routing behavior.

Core Features & Use Cases

  • Deterministic, policy-driven routing (cache_aware, random, round_robin, power_of_two, prefix_hash, manual)
  • Kubernetes-ready deployment patterns: per-model deployments, mesh-enabled HA, and service-discovery or static worker URLs
  • Air-gapped/offline operation with local model mirrors and tokenizer/model files

Quick Start

Run sgl-model-gateway in front of your workers and configure a simple setup with a static worker list and cache_aware policy to preserve prefix locality.

Frequently Asked Questions about sglang-model-gateway

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I route OpenAI-compatible traffic to vLLM and SGLang workers in Kubernetes?

You can route OpenAI-compatible HTTP and gRPC traffic to vLLM and SGLang workers by deploying a Rust gateway that uses policy-driven load balancing and Kubernetes service discovery to manage per-model deployments.

Does the Rust model gateway support cache-aware load balancing for prefix locality?

Yes, the Rust model gateway supports cache-aware load balancing alongside random, round_robin, power_of_two, prefix_hash, and manual policies to preserve prefix locality and ensure predictable routing behavior.

Can I use vLLM or SGLang inference workers in an air-gapped Kubernetes environment?

Yes, you can operate vLLM and SGLang inference workers in an air-gapped environment by using local model mirrors and requiring local tokenizer and model file snapshots on the workers.

What is the best way to load balance SGLang inference traffic without relying on HF_ENDPOINT?

Using a Rust gateway with static worker lists or Kubernetes service discovery is the best way to load balance SGLang traffic, as the gateway does not use HF_ENDPOINT and relies on local model files.

Do I need local tokenizer files to use policy-driven routing for vLLM and SGLang?

Yes, certain policy-driven routing configurations require local tokenizer and model files on the workers to function correctly, especially when operating offline or in air-gapped mirror setups.