Routing and policy gateway for LLM agent traffic: one Rust binary that speaks OpenAI Chat, Responses and Anthropic Messages, routes by request content, fails over, and records why.
A gateway that sorts each LLM request onto the right model.
One small Rust binary in front of your providers: it speaks OpenAI Chat, OpenAI Responses and Anthropic Messages, routes by what each request is, fails over between providers, and tells you what it decided and why.
Ask a question, share your setup, tell us what to build next.
If humpyard saves you time or money, a star helps other people find it.
Status: pre-alpha. It runs real traffic (Claude Code, Codex, OpenClaw) but expect rough edges. Early users shape what comes next: tell us what you run it with on Discord.
No API keys needed: run the demo yourself. It uses a mock provider; the routing, the ledger and the cost math are real.
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.
The same picture is the Flow view of the admin page, drawn from your own gateway's statistics. The figures here are illustrative.
Agent tools such as Claude Code and Codex send a stream of very different requests: a one-line question, a 60,000-token tool loop, a sub-agent doing narrow work. Sending all of it to one model is slow or expensive. humpyard is the routing and policy layer in front of your providers.
They are good tools with far more providers, and humpyard is pre-alpha. Pick humpyard when:
fast or deep, with
a pool of models behind it. humpyard models sync keeps free pools current from each provider's own
model list, so you stop hand-editing them (discovery; you schedule the sync).The full comparison, including where the others win: humpyard.dev/compare.
On one machine, the fastest way is one command. Download a binary from the
releases (or cargo build --release), then:
export GROQ_API_KEY=... # optional: you can paste the key into the page instead
humpyard up
It writes a first config if you have none, starts the gateway and the admin GUI together, and opens the GUI already
signed in, with copy-paste settings for Claude Code, Codex and others. Everything listens on 127.0.0.1. Details and the
one file where a key may be saved: On one machine.
For a server, a container or a shared machine, write the config with humpyard init. It checks your provider's models live and sends a test request.
export GROQ_API_KEY=... # your key; init reads it from the environment and never stores it
humpyard init --provider groq && humpyard serve --config config.toml
Or by hand with the container:
curl -fsSLO https://raw.githubusercontent.com/gschaetz/humpyard/main/examples/quickstart.toml
export GROQ_API_KEY=... # your key; the config reads it from the environment
docker run -d -p 127.0.0.1:8080:8080 -e GROQ_API_KEY \
-v "$PWD/quickstart.toml:/etc/humpyard/config.toml:ro" ghcr.io/gschaetz/humpyard:0.38.0
curl localhost:8080/v1/chat/completions -H 'content-type: application/json' \
-d '{"model":"fast","messages":[{"role":"user","content":"hi"}]}'
[`quickstart.t
Verify NVIDIA end to end and record the result in docs/providers.md
https://github.com/gschaetz/humpyard/issues/166
Labels: documentation, help wanted, good first issue
Verify OpenRouter end to end and record the result in docs/providers.md
https://github.com/gschaetz/humpyard/issues/165
Labels: documentation, help wanted, good first issue
Verify Groq end to end and record the result in docs/providers.md
https://github.com/gschaetz/humpyard/issues/164
Labels: documentation, help wanted, good first issue
Add a recipe for local models (Ollama, LM Studio, vLLM)
https://github.com/gschaetz/humpyard/issues/163
Labels: documentation, help wanted, good first issue
Write a troubleshooting page for first-run errors
https://github.com/gschaetz/humpyard/issues/158
Labels: documentation, help wanted, good first issue
Add a Cerebras preset to humpyard init
https://github.com/gschaetz/humpyard/issues/155
Labels: enhancement, help wanted, good first issue
Thanks for helping out. This project is spec-driven with OpenSpec: see AGENTS.md.
The roadmap lists where help is wanted; reports from real use (a client that breaks, a provider that rejects a field) are as useful as code.
cargo test and cargo clippy --all-targets -- -D warnings must pass.openspec/changes/) first.docs/architecture.md if structure, request flow or component status changes.The project is licensed under Apache-2.0. By contributing you agree your contribution is licensed under the same terms.
Every commit must carry a Signed-off-by line certifying the
Developer Certificate of Origin:
git commit -s -m "Your message"
which appends Signed-off-by: Your Name <you@example.com>. Use your real name. PRs with
unsigned commits will be asked to amend (git rebase --signoff).