380 / 493

Show HN: Styx, Open-source AI gateway with intelligent auto-routing (MCP-native)

TL;DR

Hey HN, We just open-sourced Styx — an AI gateway that sits between your app and AI providers (OpenAI, Anthropic, Google, Mistral).

Key Points

  • One endpoint, any model, self-hosted.
  • What makes it different from LiteLLM or OpenRouter: styx:auto — send "model": "styx:auto" and the gateway picks the right model based on prompt complexity.
  • Simple questions go to cheap models ($0.15/1M tokens), complex code goes to frontier models.
  • 9-signal classifier, zero config.

Nauti's Take

Styx plays the API-aggregation game everyone's already playing — but the 9-signal complexity classifier for auto-routing is a genuinely smart twist. Routing cheap prompts to cheap models automatically could save teams real money without any prompt engineering overhead.

Sources