# AIBrix

> Kubernetes-native infrastructure for serving vLLM at scale

- Category: Models & Inference / Serving & Deployment
- Licence: Apache-2.0
- Repository: https://github.com/vllm-project/aibrix
- Website: https://aibrix.readthedocs.io
- Canonical page: https://ai-tldr.dev/tools/aibrix/

## In short

AIBrix is an open-source set of cloud infrastructure components for running large language model inference at scale. It sits in the Serving & Deployment category of the Models & Inference tools and is open-source, licensed Apache-2.0. To get started: install the stable release.

## Overview

AIBrix is an open-source set of cloud infrastructure components for running large language model inference at scale. It builds a control plane around the vLLM engine, adding the pieces you need to deploy and operate LLMs on Kubernetes: an LLM-aware gateway and router, an autoscaler tuned for inference workloads, distributed KV cache, and high-density LoRA management.

It is aimed at platform and ML infrastructure teams who already run, or plan to run, vLLM in production and need to manage many models, replicas, and GPUs across a cluster. Rather than replacing vLLM, AIBrix sits on top of it and handles traffic routing, scaling, and cost-efficient placement across mixed GPU hardware.

Within the high-throughput serving category, AIBrix fills the orchestration layer: vLLM serves the tokens, while AIBrix decides where requests go, when to add or remove replicas, and how to reuse KV cache across engines. It is developed under the vLLM project and ships as Kubernetes manifests you apply with kubectl.

## What it does

- LLM gateway and routing that directs traffic across multiple models and replicas
- Autoscaler tailored to LLM apps that scales inference resources with real-time demand
- High-density LoRA management for serving many lightweight model adaptations
- Distributed KV cache for high-capacity, cross-engine cache reuse
- Cost-efficient heterogeneous serving across mixed GPU types with SLO guarantees
- Unified AI runtime sidecar plus GPU hardware failure detection

## Getting started

AIBrix runs on Kubernetes and is installed by applying its manifests with kubectl against an existing cluster.

1. Install the stable release

   Apply the component dependencies, then the AIBrix core components, using the release manifests pinned to a version (v0.6.0 shown here).

```bash
# Install component dependencies
kubectl apply -f "https://github.com/vllm-project/aibrix/releases/download/v0.6.0/aibrix-dependency-v0.6.0.yaml" --server-side

# Install aibrix components
kubectl apply -f "https://github.com/vllm-project/aibrix/releases/download/v0.6.0/aibrix-core-v0.6.0.yaml"
```

2. Or install the nightly build from source

   Clone the repository and apply the in-tree dependency and default kustomize configs for local testing.

```bash
# Local Testing
git clone https://github.com/vllm-project/aibrix.git
cd aibrix

# Install nightly aibrix dependencies
kubectl apply -k config/dependency --server-side

# Install nightly aibrix components
kubectl apply -k config/default
```

3. Configure and deploy your models

   Follow the documentation to configure the gateway, autoscaling, and your vLLM-backed model deployments. See the docs at https://aibrix.readthedocs.io/latest/ for detailed setup.

## When to use it

- Running vLLM in production on Kubernetes with LLM-aware load balancing across replicas
- Serving many fine-tuned variants of a base model through high-density LoRA management
- Cutting GPU costs by scheduling inference across mixed GPU hardware while keeping SLOs
- Scaling LLM serving up and down automatically as request volume changes
