RST AI Fabric
An on-premises LLM gateway. It puts OpenAI- and Anthropic-compatible APIs in front of vLLM and cloud models, issues API keys per project, enforces quotas, tracks usage, monitors GPU nodes and keeps an audit log.
Overview
RST AI Fabric is an LLM gateway delivered as Docker containers. It runs on your own servers in front of vLLM and other inference servers, and in front of cloud models. Applications, AI assistants and developers connect only to the gateway and call models through OpenAI- or Anthropic-compatible APIs. The gateway authenticates API keys, enforces model permissions, rate limits, token quotas and content safety, routes and balances requests, and records a log entry and usage for every call.
Existing clients only change the base_url, the API key and the model name. Chat Completions, Responses, Anthropic Messages, embeddings and rerank share one /v1 base URL. When the upstream is Anthropic, Gemini or Azure OpenAI, the gateway translates requests and responses.
The gateway needs no GPU and can share a host with an inference server. With local models only, requests, logs and usage stay inside your network. The gateway goes online only to activate a licence and to check for new versions, and both can be turned off; see Requirements and network.
Architecture
A deployment has these parts:
- Gateway (container
rst-ai-fabric): serves the/v1API and the management console, on port 8080 by default. Each request passes API key authentication, quota and rate-limit checks, content safety, model routing and load balancing before it reaches an upstream, and is then written to the request log and usage. If any step fails, the gateway answers at once with an OpenAI-format error. - PostgreSQL (container
postgres): stores models, projects, keys, users and other configuration, plus request logs, usage totals and audit records. It ships with the installer and runs on the gateway host. - Inference servers: vLLM, SGLang or any other OpenAI-compatible server, and cloud models such as Azure OpenAI, Anthropic and Gemini. One model can have several upstreams; the gateway reads live vLLM load and sends each request to the least busy instance.
- GPU node agent (optional): a single program on each GPU server, run as a systemd service, that reports GPU and host status to the gateway every 15 seconds. With remote management on, the console can start and stop vLLM containers. The agent updates itself after the gateway is upgraded.
- Upgrade helper (optional): the
rst-ai-fabric-updatersystemd service, running as root on the gateway host. It carries out one-click upgrades started from the console and rolls back on failure. It listens on no port.
For HTTPS, put a reverse proxy in front of the gateway to terminate TLS; see Installation.
Features
| Feature | Description |
|---|---|
| Compatible endpoints | /v1/chat/completions, /v1/responses, /v1/messages, /v1/completions, /v1/embeddings, /v1/rerank, /v1/score, /v1/models, with streaming and tool calls |
| Upstreams | vLLM, SGLang, Ollama and any OpenAI-compatible API; Azure OpenAI, Anthropic, Google Gemini; presets for DeepSeek, Qwen and Zhipu GLM |
| Routing | Public names and aliases, upstream choice by live vLLM load and weight, prefix-cache affinity, fallback models, long-context routing, queueing by key priority |
| Keys and quotas | Projects and members, key groups and notes, model allowlists, IP allowlists, RPM, TPM, concurrency, daily and monthly token limits, lifetime quotas, per-request output caps, project budgets, prepaid balances |
| Content safety | Keyword blocking or masking; masking or blocking of mobile numbers, Chinese ID numbers, bank card numbers and email addresses; per-project retention of conversation content |
| Usage and chargeback | Request logs, usage reports with CSV export, monthly statements per project, and a value report that estimates savings against cloud reference prices |
| GPU nodes | GPU utilisation, memory, temperature, power, fan, ECC errors and history; remote vLLM deployment from the console |
| Alerts | Budgets, balances, upstream failures, GPU nodes offline, GPU temperature, licence expiry; sent to Feishu, DingTalk, WeCom, email and webhooks |
| Accounts and audit | Local accounts with TOTP two-factor authentication, OIDC, LDAP / Active Directory and Feishu sign-in; administrator, project member and read-only roles; audit log; management API tokens |
| Operations | One-click upgrades from the console (online or offline package), Prometheus metrics, OpenTelemetry tracing, custom branding |
The console is available in Simplified Chinese and English.
Licensing
RST AI Fabric is commercial software that requires a licence. A licence is bound to the machine identifier of the gateway host and sets the validity period, the number of gateways that can be activated and the inference node limit. Activation works online or offline; see License.
Without an active licence you can still sign in to the console, but you cannot create API keys or models, and the gateway rejects every call.
Contact sales for pricing: Contact us.
Documentation
Quick start
Install on one host, activate the licence, add a first model and make a call.
Installation
Requirements, installation, settings, multiple nodes, sign-in integrations, monitoring, upgrade and backup.
User guide
What each console page does, and how to call the API.
Troubleshooting
Causes by symptom and the error-code reference.