Skip to content

humpyard

A gateway that sorts each LLM request onto the right model. One small Rust binary that speaks OpenAI Chat, OpenAI Responses and Anthropic Messages, routes with NVIDIA NeMo Switchyard algorithms, fails over across providers, and keeps virtual keys, budgets and a usage ledger in SQLite.

Using it, or thinking about it? Come say hello on Discord: ask a question, share your setup, tell us what to build next.

Why the name: a hump yard is the railroad yard where cars are classified and sent down the right track, one by one. That is the job here, with requests and models.

What makes it different

Not a general proxy for every provider. humpyard is the routing and policy layer for agent traffic (Claude Code, Codex and the like), and it explains and measures what it does:

  • Content-aware routing. Selector rules pick the route from the key, headers, tags, agent metadata, prompt size, tools and images. Clients can narrow, never widen.
  • Explainable. POST /v1/route/explain says what a request would do, and why, before you send it.
  • Recorded and measured. Every decision is kept (rule, attempts, fallbacks, refusals) and summarized as failure mix, latency percentiles and cost per route, target and endpoint.
  • Operable. A single static binary or a small container, hot config reload, per-endpoint circuit breakers, graceful shutdown, and money handled as integers that fail closed.

Why not LiteLLM or OpenRouter? They are good tools with far more providers, and humpyard is pre-alpha. Pick humpyard when you want to write the routing policy yourself, with a dry run and a record of why (compare); when you want tiers backed by pools that stay current, so you stop hand-editing model lists (discovery); when private requests must be refused instead of sent to a public provider; or when you want one static binary with no Python service or database.

Start here

I want to... Read
see it work in a minute, no keys Try it
run it Deployment
point Claude Code, Codex or OpenClaw at it Clients
route one auto model to the right pool Auto routing recipe
understand failover, selectors, health Routing
set budgets and read the usage and decision log Keys, budgets and the ledger
cut what a coding agent costs Cut agent costs
compare it with other gateways Compared with other gateways
move from LiteLLM Migrating from LiteLLM
move from ModelRelay Moving from ModelRelay
see the design Architecture and the decision records
see what is done and what is next Roadmap

Source, issues and releases: github.com/gschaetz/humpyard. Questions and feedback: Discord. Please never paste API keys or full configs in chat. Apache-2.0.

This site counts page views with Cloudflare Web Analytics, which sets no cookies. It is not part of the gateway.