# AIHelms

> Self-hosted enterprise AI gateway that gives every employee one API key, with budgets, cost attribution and a Skill/MCP registry

- Category: Evaluation & Production Ops / Gateways & Routing
- Language: Python
- Licence: GPL-3.0
- Repository: https://github.com/beizhu-1209/AIHelms
- Canonical page: https://ai-tldr.dev/tools/aihelms/

## In short

AIHelms is an open-source AI resource management platform for companies that want to hand AI models out to their staff without losing track of who uses what and what it costs. It sits in the Gateways & Routing category of the Evaluation & Production Ops tools and is open-source, written in Python and licensed GPL-3.0.

## Overview

AIHelms is an open-source AI resource management platform for companies that want to hand AI models out to their staff without losing track of who uses what and what it costs. Administrators onboard model providers such as OpenAI, Azure, Anthropic Claude and DeepSeek in one admin console, then issue each employee an "AI identity": a single API key, with its own model allow-list, budget and rate limits. Employees pick up that key and endpoint from a self-service portal and plug it into whichever client they already use.

Under the hood it is built on the LiteLLM community edition, which does the actual model routing, and adds a management layer around it: a FastAPI backend, a Vue admin console and user portal, PostgreSQL, Redis and Celery, all started together with Docker Compose. The gateway accepts both OpenAI- and Anthropic-format requests and can load-balance across several deployments of the same model. Beyond models, it also acts as an internal marketplace where teams register, approve and distribute MCP servers and agent Skills.

The part that sets it apart from a plain LLM proxy is cost governance. AIHelms tracks two prices for every call, the provider's external cost and an internal settlement price you bill departments, and traces each call back to a person, department, project and model down to the token. Budgets can be set at any of those levels with soft limits (alerts) or hard limits (cut-off), and weekly and monthly efficiency reports show adoption, activity and spend per department. The interface is primarily in Chinese; the project is licensed GPL-3.0, with a commercial license offered by the maintainers.

## What it does

- One AI identity (API key) per employee, with a model allow-list, quota, rate limits and expiry
- Unified gateway over multiple providers on LiteLLM, accepting OpenAI and Anthropic formats with load balancing across deployments
- Dual internal/external pricing and real-time cost attribution to person, department, project and model
- Multi-dimensional budgets with soft alerts and hard cut-offs, plus weekly and monthly efficiency reports
- Central marketplace to register, approve and distribute MCP servers and Skills, with resource-request approval
- Admin audit log and AI Policies review that scans a Skill for malicious instructions, data exfiltration and excessive permissions

## Getting started

AIHelms ships as a Docker Compose stack. The README lists Docker 20.10+, Docker Compose v2+ and at least 4 cores and 8 GB of RAM.

1. Clone and configure

   Clone the repository and copy the example environment file. Fill in your own secrets in .env, at minimum POSTGRES_PASSWORD, SECRET_KEY (JWT signing), SUPER_ADMIN_PASSWORD and the LiteLLM master and salt keys.

```bash
git clone https://github.com/beizhu-1209/AIHelms.git
cd AIHelms
cp .env.example .env
# Edit .env and fill in your secrets
```

2. Start the stack

   Bring every service up in the background with Docker Compose.

```bash
docker compose up -d
```

3. Open the consoles

   The user portal is served at the root, the admin console at /admin and the API docs at /api/docs. Sign in to the admin console as admin with the SUPER_ADMIN_PASSWORD from .env.

```text
http://your-host          # user portal
http://your-host/admin    # admin console
http://your-host/api/docs # API docs
```

4. Onboard a model and hand out a key

   In the admin console, add a provider credential, then create a model, link it to that credential and publish it. Employees then open My AI Identity in the user portal, copy their key and endpoint, and configure their AI client with them.

```text
1. Admin console → Providers → Add credential
2. Admin console → Models → Create model → Link credential → Publish
3. User portal → My AI Identity → Copy key and endpoint → Configure your client
```

## When to use it

- Give every employee governed access to several LLM providers through one key instead of sharing raw provider keys
- Charge AI spend back to departments and projects with an internal price that differs from the provider's bill
- Enforce per-person or per-department AI budgets with alerts and hard cut-offs
- Run an internal catalogue of approved MCP servers and Skills that staff request access to
