# Hivenet Router > Open-source routing for self-hosted and distributed AI inference. - [Hivenet Router](https://routerdocs.hivenet.com/index.md): Hivenet Router is open-source software for routing OpenAI-compatible requests across self-hosted and distributed AI inference engines and providers. - [Introduction to Hivenet Router](https://routerdocs.hivenet.com/getting-started/introduction.md): Learn what Hivenet Router does, when to use it, and how the router and agents sit between your clients and self-hosted inference engines. - [Why Hivenet Router](https://routerdocs.hivenet.com/getting-started/why-hivenet-router.md): Understand when a self-hosted inference router is the right fit and what Hivenet Router adds between OpenAI-compatible clients and model servers. - [Quickstart](https://routerdocs.hivenet.com/quickstart.md): Deploy a Hivenet Router router and multiple agents across several machines, then send and observe your first routed inference request. - [Architecture overview](https://routerdocs.hivenet.com/getting-started/architecture-overview.md): Understand how the Hivenet Router router, agents, control plane, data plane, storage, authentication, and request pipeline fit together end to end. - [Hivenet Router vs. Hivenet Inference Service and Compute](https://routerdocs.hivenet.com/getting-started/hivenet-services.md): Understand how Hivenet Router differs from Hivenet Inference Service and Compute with Hivenet, and choose the right option for your workload. - [Docker quickstart](https://routerdocs.hivenet.com/deploy/docker-quickstart.md): Deploy a Hivenet Router router and two vLLM agents across Linux hosts with Docker containers, then verify routing decisions, health, and metrics. - [Docker Compose](https://routerdocs.hivenet.com/deploy/docker-compose.md): Use Docker Compose to run the Hivenet Router router with its full observability stack, then connect agents from separate inference hosts. - [Bare-metal deployment](https://routerdocs.hivenet.com/deploy/bare-metal.md): Install and run the Hivenet Router router and agents as native Linux services managed by systemd, with configuration, logging, and upgrade steps. - [vLLM agent](https://routerdocs.hivenet.com/deploy/agents/vllm.md): Connect a vLLM backend to Hivenet Router, configure model discovery and capacity, and expose vLLM metrics for routing and observability. - [Ollama agent](https://routerdocs.hivenet.com/deploy/agents/ollama.md): Connect an Ollama backend to Hivenet Router, select the model an agent represents, and configure capacity for local or edge inference. - [SGLang agent](https://routerdocs.hivenet.com/deploy/agents/sglang.md): Connect an SGLang backend to Hivenet Router, declare model and capacity, and expose cache, queue, and time-to-first-token metrics for routing. - [llama.cpp agent](https://routerdocs.hivenet.com/deploy/agents/llama-cpp.md): Connect a llama.cpp server to Hivenet Router, set a stable model name, declare capacity, and expose cache, latency, and throughput metrics. - [Infinity agent](https://routerdocs.hivenet.com/deploy/agents/infinity.md): Connect Infinity embedding and reranking models to Hivenet Router by running one capability-specific agent per model, with metrics and capacity. - [Custom engine agent](https://routerdocs.hivenet.com/deploy/agents/custom-engine.md): Connect an OpenAI-compatible chat-completion backend to Hivenet Router using an explicit model name, health endpoint, and declared capacity. - [Chat completions and messages](https://routerdocs.hivenet.com/use-the-api/chat-completions.md): Send OpenAI-compatible chat-completion and Anthropic Messages requests through Hivenet Router, with streaming, routing, authentication, and quota enforcement. - [Embeddings](https://routerdocs.hivenet.com/use-the-api/embeddings.md): Generate vector embeddings through Hivenet Router capability-specific agents, with batched requests, routing, authentication, and error handling. - [Reranking](https://routerdocs.hivenet.com/use-the-api/reranking.md): Score and reorder candidate documents by relevance through Hivenet Router capability-specific reranking agents, with routing and authentication. - [Models](https://routerdocs.hivenet.com/use-the-api/models.md): List Hivenet Router models available to the current API key and inspect their capabilities, agent distribution, health, and declared capacity. - [Admin endpoints](https://routerdocs.hivenet.com/use-the-api/admin-endpoints.md): Inspect router health, models, routing state, storage, policies, metrics, and dynamic API keys through protected operator endpoints. - [Routing concepts](https://routerdocs.hivenet.com/routing/routing-concepts.md): Understand how Hivenet Router filters candidates, gates on health and capacity, ranks agents, retries, queues, and falls back across inference agents. - [Policy YAML reference](https://routerdocs.hivenet.com/routing/policy-yaml-reference.md): Configure global and per-model Hivenet Router routing policies, static filters, metric gates, fallback chains, provider fallback, and defaults. - [Fallback chains](https://routerdocs.hivenet.com/routing/fallback-chains.md): Configure ordered local Hivenet Router routing alternatives with independent filters, metric gates, retry budgets, and capacity handling per step. - [Provider fallback](https://routerdocs.hivenet.com/routing/provider-fallback.md): Use OpenAI or Anthropic as a final Hivenet Router fallback after every local agent, gate, and fallback chain step has been exhausted for a request. - [Cross-site redirect](https://routerdocs.hivenet.com/routing/cross-site-redirect.md): Answer HTTP 307 to a sibling policloud when no local agent serves the requested model, so clients that use one hostname still reach every model. - [Hold at zero](https://routerdocs.hivenet.com/routing/hold-at-zero.md): Hold requests for a model that is scaled to zero on this policloud until an agent for it is healthy, and publish the demand an autoscaler uses to wake it. - [Policy gates](https://routerdocs.hivenet.com/routing/policy-gates.md): Diagnose the seven Hivenet Router routing gates and apply practical thresholds for health, capacity, latency, engine, and hardware signals in production. - [Admission control](https://routerdocs.hivenet.com/routing/admission-control.md): Configure Hivenet Router request caps, pool pressure shedding, token-weighted occupancy, and serverless per-key limits to protect agents under load. - [Semantic model aliases](https://routerdocs.hivenet.com/routing/semantic-routing.md): Declare a virtual model alias such as auto so Hivenet Router picks a concrete model from structural request signals, with task pinning and a decision log. - [Authentication overview](https://routerdocs.hivenet.com/security/authentication-overview.md): Understand how Hivenet Router authenticates agents, API clients, and administrators across separate trust boundaries with static or dynamic keys. - [API keys](https://routerdocs.hivenet.com/security/api-keys.md): Generate, configure, use, reload, and manage static or dynamic Hivenet Router API keys, per-key model access, and request and token quotas over time. - [auth.yaml reference](https://routerdocs.hivenet.com/security/auth-yaml-reference.md): Configure static client authentication, administrator access, model restrictions, key expiration, and flat or per-model quotas in auth.yaml. - [Model restrictions](https://routerdocs.hivenet.com/security/model-restrictions.md): Limit each Hivenet Router API key to specific models and keep model discovery, inference access, and per-key quotas aligned across tenants. - [Key rotation](https://routerdocs.hivenet.com/security/key-rotation.md): Rotate Hivenet Router client, administrator, agent, and provider credentials with dual-issuer overlaps and the least possible request disruption. - [Observability overview](https://routerdocs.hivenet.com/observability/observability-overview.md): Understand Hivenet Router health checks, operational state, Prometheus metrics, Grafana dashboards, audit records, and distributed tracing setup. - [Prometheus metrics](https://routerdocs.hivenet.com/observability/prometheus-metrics.md): Scrape Hivenet Router Prometheus metrics for routing, agents, engines, hardware, policies, queues, tenants, quotas, and HTTP traffic in one place. - [Grafana dashboards](https://routerdocs.hivenet.com/observability/grafana-dashboards.md): Use the provisioned Grafana dashboards to inspect router health, agents, hardware, engine behavior, tenant quotas, audit logs, and traces. - [Audit logging](https://routerdocs.hivenet.com/observability/audit-logging.md): Record structured Hivenet Router request metadata, ship audit files through Promtail and Loki, and correlate requests with logs, metrics, and traces. - [Hardware metrics](https://routerdocs.hivenet.com/observability/hardware-metrics.md): Understand how Hivenet Router collects, reports, and uses GPU utilization, CPU load, and system-memory metrics from every connected agent host. - [Engine metrics](https://routerdocs.hivenet.com/observability/engine-metrics.md): Understand how Hivenet Router collects cache, queue, latency, request-shape, finish-reason, and throughput metrics from supported inference engines. - [Latency tracking](https://routerdocs.hivenet.com/observability/latency-tracking.md): Understand how Hivenet Router measures router-observed request latency and calculates smoothed per-agent SRTT and RTTVAR values for routing. - [Hardware-aware routing](https://routerdocs.hivenet.com/observability/hardware-aware-routing.md): Route across GPU hardware tiers and exclude Hivenet Router agents under GPU, memory, CPU, cache, thermal, or latency pressure automatically. - [Admission control metrics](https://routerdocs.hivenet.com/observability/admission-control-metrics.md): Monitor Hivenet Router admission-control occupancy, token budgets, in-flight concurrency, per-tenant limits, and request rejections broken down by gate. - [Integrations overview](https://routerdocs.hivenet.com/integrations/integrations-overview.md): Choose the right guide for connecting coding agents, browser interfaces, official SDKs, LangChain, and custom applications to Hivenet Router. - [Claude Code](https://routerdocs.hivenet.com/integrations/claude-code.md): Connect Claude Code to Hivenet Router through the Anthropic Messages API and configure authentication, model aliases, streaming, and tool use. - [OpenCode](https://routerdocs.hivenet.com/integrations/open-code.md): Connect OpenCode to Hivenet Router through an OpenAI-compatible provider and configure models, authentication, tool use, permissions, and privacy controls. - [Pi](https://routerdocs.hivenet.com/integrations/pi.md): Connect the Pi coding agent to Hivenet Router through OpenAI Chat Completions and configure models, authentication, tools, security, and compatibility. - [Open WebUI](https://routerdocs.hivenet.com/integrations/open-web-ui.md): Connect Open WebUI to Hivenet Router for browser-based chat, shared access, tool use, background tasks, embeddings, and reranking. - [Use from code](https://routerdocs.hivenet.com/integrations/use-from-code.md): Call Hivenet Router from Python, JavaScript, official SDKs, LangChain, or direct HTTP, with streaming, tools, embeddings, reranking, and errors. - [Detailed architecture](https://routerdocs.hivenet.com/reference/detailed-architecture.md): Trace how Hivenet Router’s router, agents, authentication, policy engine, storage, request pipeline, and observability systems work together. - [Configuration reference](https://routerdocs.hivenet.com/reference/configuration-reference.md): Review every Hivenet Router router and agent flag, supported environment variable, default value, precedence rule, and restart requirement. - [Error codes](https://routerdocs.hivenet.com/reference/error-codes.md): Understand Hivenet Router error responses, HTTP statuses, retry behavior, backend classification, response headers, and debugging workflows. - [Performance characteristics](https://routerdocs.hivenet.com/reference/performance-characteristics.md): Understand Hivenet Router latency boundaries, routing cost, concurrency, queueing, memory behavior, scaling limits, and benchmarking tools. - [Project overview](https://routerdocs.hivenet.com/project/project-overview.md): Find Hivenet Router source code, canonical project files, contribution workflow, community standards, security policy, and the Apache 2.0 license. - [Contributing](https://routerdocs.hivenet.com/project/contributing.md): Set up a Hivenet Router development environment, run the required checks, update generated code, and submit focused pull requests. - [Code of conduct](https://routerdocs.hivenet.com/project/code-of-conduct.md): Review the community standards, scope, reporting process, and enforcement guidelines that apply across all Hivenet Router project spaces and channels. - [Security policy](https://routerdocs.hivenet.com/project/security-policy.md): Report Hivenet Router security vulnerabilities privately by email or GitHub, review disclosure expectations, and check which release versions are supported. - [License](https://routerdocs.hivenet.com/project/license.md): Understand the permissions, redistribution conditions, patent grant, trademark limits, and warranty terms of the Apache License 2.0. This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.