When to use Hivenet Router
Hivenet Router is designed for setups where inference runs across more than one backend, machine, model, or location. Use it when you need to:- expose one API endpoint for multiple inference backends
- route requests using live health, load, latency, and hardware signals
- define routing behavior in YAML policies
- move traffic through ordered fallback chains
- enforce API keys, quotas, and model restrictions
- observe requests, agents, engines, and hardware through Prometheus and Grafana
- run the routing layer without depending on Kubernetes or a hosted control plane
How Hivenet Router works
Hivenet Router has two main components.Router
The router is the central entry point for applications. It exposes OpenAI-compatible and Anthropic-compatible endpoints, authenticates clients, evaluates routing policies, tracks connected agents, and forwards requests to a suitable backend.Agent
An agent connects an inference server to the router. It forwards requests to the local backend and reports information the router can use when making routing decisions, including health, models, engine metrics, and hardware state. You can run agents beside inference servers on the same machine, across a private network, at different sites, or on remote infrastructure.Supported backends
Hivenet Router supports:- vLLM
- Ollama
- SGLang
- llama.cpp
- Infinity
- custom OpenAI-compatible servers
API compatibility
Applications send requests to the router through OpenAI-compatible and Anthropic-compatible endpoints. Hivenet Router currently supports:
This lets existing clients and SDKs connect to Hivenet Router without needing to know which agent or inference engine handles each request.
Routing and fallback
Routing policies can filter and rank agents using static metadata and live signals. Policies can consider:- requested model
- engine type
- region and tags
- active requests and queue state
- request latency
- success rate
- KV cache usage
- GPU utilization, temperature, and memory pressure
Authentication and observability
Agents authenticate with the router using a shared JWT secret. Client API-key authentication is optional and can be used for tenant access, quotas, and model restrictions. Hivenet Router exports Prometheus metrics and includes Grafana dashboards for routing, agents, hardware, engine behavior, tenant activity, and audit logs.Start exploring
Quickstart
Build Hivenet Router, start a router and agent, and send your first request.
Architecture overview
Understand the control plane, data plane, storage, authentication, and request flow.
Hivenet Router and Hivenet services
See how Hivenet Router differs from Hivenet Inference API and Compute with Hivenet.
GitHub repository
View the source code, project status, license, and contribution guidance.

