Skip to Content
LiteLLM

LiteLLM on Your VDS: One OpenAI-Style Endpoint for Every Provider

With our LiteLLM hosting we install the LiteLLM proxy on a VDS of your own, together with a PostgreSQL database for its settings and spend records. LiteLLM is an open-source AI gateway that lets you call more than a hundred providers, among them OpenAI, Anthropic, Gemini, Bedrock and Azure, in the OpenAI request format. Your applications talk to one address with one kind of key, and LiteLLM is where you decide which model a request reaches and how much each key may spend.

The admin UI lives at /ui on your address and opens with the user name and password we hand over. The installation starts empty: no models and no provider keys. You add models and their credentials in the UI, LiteLLM stores them encrypted in the database, and your applications get virtual keys that you also create in the UI.

Install

From $15/mo

Comes with

  • Ubuntu Server 24.04 LTS (Noble Numbat) - 64bit
  • Docker
  • HTTPS address
  • Admin account set up during installation
  • Full root access
LiteLLM1.111.1
LiteLLM Teams page with member, model and key counts and budgets for data-team and web-shop

Installation

What the installation contains

  • ghcr.io image, tag and digest

    LiteLLM 1.111.1 comes from BerriAI's image on ghcr.io, pinned by tag and digest rather than the moving main-stable tag. PostgreSQL 17 sits next to it for configuration and spend data.

  • Upstream hardening kept

    We keep the safeguards from LiteLLM's own compose file: a read-only root file system, every Linux capability dropped, privilege escalation disabled, and writes allowed only to two in-memory scratch folders.

  • No key, no answer

    The model API under /v1 requires the master key or a virtual key made in the UI. Before handover we confirm that a request without a key and one with a made-up key both get 401, and that a real key returns the model list.

  • Master key stays on the server

    The all-powerful master key is generated at installation and kept only in a configuration file on the server that root can read. For everyday use you create virtual keys with their own limits in the UI.

  • Provider keys encrypted

    Models and provider credentials you add in the UI are written to the database encrypted with a salt key generated for your installation. That salt key must never change, or the stored credentials can no longer be read.

  • Sign-in limits per visitor

    LiteLLM counts wrong passwords by source address. We declared the HTTPS proxy in front of it as a trusted network, so the count uses the real visitor's address and a stranger's failed attempts do not lock you out.

Screens

LiteLLM screens from our test installation

Click a screenshot to see it larger.

  • Teams: two teams with $50 and $20 budgets, showing members, models, keys and spend.
  • Models + Endpoints: OpenAI's gpt-4o-mini and a local-llama entry pointing at a local Ollama address.
  • The Add Model form: provider choice, the model name LiteLLM sends upstream, and mappings.
  • Logs › Request Logs: two test calls made with a virtual key, with team and model.

Use cases

What teams use it for

  • One address for every app

    Applications use an OpenAI client pointed at your LiteLLM address; behind it may be OpenAI, Anthropic or a model on your own server. Switching providers means changing a model definition in LiteLLM, not the application's code.

  • Keys with budgets

    Give each person, team or project its own virtual key. According to LiteLLM's documentation a key can carry allowed models, a spend cap, a budget reset period, requests-per-minute and tokens-per-minute limits, and an expiry.

  • Seeing the spend

    LiteLLM prices each request from its model price list and records the cost per key, user and team. The documentation reports spend in US dollars; because it is kept in the database, the installation includes PostgreSQL.

  • Load balancing and fallbacks

    LiteLLM's README lists routing features such as load balancing, retries and falling back to another model when one fails. They need provider keys, so we did not exercise them on our test installation.

Steps

Order, install, first call

  1. 01

    Pick a plan

    The install button sends you to ordering with LiteLLM ticked. The location is up to you, and plans under LiteLLM's minimum resources are disabled. LiteLLM plans start at $15.

  2. 02

    Installation and tests

    After payment the server is created and LiteLLM and PostgreSQL are installed. UI sign-in is tested with the right password, a wrong one and the master key, and the model API without a key and with a fake one. If every result is as expected, the service normally goes live.

  3. 03

    Add a model, issue a key

    Open /ui on your address and sign in. Define a provider and its credentials under Models, then create a virtual key for your application. The key is displayed once, when it is created.

Packages

Packages for LiteLLM

Only packages that meet the minimum LiteLLM needs are listed; prices are monthly.

  • USA 1

    Lowest-priced package that runs this app

    $15/mo

    4 vCPU4 GB RAM30 GB NVMe

    Install
  • USA 2

    $18/mo

    4 vCPU6 GB RAM40 GB NVMe

    Install
  • USA 3

    $22/mo

    4 vCPU8 GB RAM50 GB NVMe

    Install
  • USA 4

    $27/mo

    4 vCPU10 GB RAM60 GB NVMe

    Install
  • USA 5

    $33/mo

    4 vCPU12 GB RAM70 GB NVMe

    Install
  • USA 6

    $37/mo

    6 vCPU14 GB RAM80 GB NVMe

    Install
  • USA 7

    $40/mo

    6 vCPU16 GB RAM90 GB NVMe

    Install
  • USA 8

    $46/mo

    8 vCPU18 GB RAM100 GB NVMe

    Install

Technical

Technical details

App version
1.111.1
Operating system
Ubuntu Server 24.04 LTS (Noble Numbat) - 64bit
Minimum CPU
2 vCPU
Minimum memory
2 GB
Minimum disk
20 GB

Signing in, and the three kinds of keys

LiteLLM has three separate identities that are easy to mix up. The admin UI login (user name and password) only gets you into /ui. The master key is the administrator key that can do anything through the API. Virtual keys are the limited keys you hand to applications and colleagues.

We set the UI login through LiteLLM's UI_USERNAME and UI_PASSWORD settings, and those are the user name and password in your handover e-mail. Without them the UI password would be the master key itself; before handover we check that the master key is refused as a UI password.

  • The red warning in the UI

    On first sign-in the UI shows a critical notice: Environment-credential login is enabled. LiteLLM suggests creating a regular admin account with its own password instead of a shared static secret, and then setting disable_env_credential_login: true. We did not make that switch on our test installation; Snooze hides the notice for a while.

  • Changing the UI password

    The UI cannot change it; it lives in the APP_ADMIN_PASSWORD line of /opt/altinsoft/app/.env on the server. On our test installation we edited that line and restarted LiteLLM from the same folder with COMPOSE_PROJECT_NAME=altinsoft-app docker compose up -d litellm. After roughly 45 seconds the new password let us in and the old one got 401. Avoid spaces, quotes, # and $ in the password.

  • Wrong-password limit

    According to LiteLLM's source, ten wrong passwords from one address within a minute block that address for five minutes, and during the block even the right password gets 429. Because the block follows the visitor's address, someone else's attempts do not lock you out.

  • Recovery with the master key

    A locked UI does not stop API access with the master key, which LiteLLM's own code comments name as the way back in. Keep the master key out of applications.

Defining models and giving apps a virtual key

A model in LiteLLM has two names: the one your application asks for (for example gpt-4o-mini) and the one LiteLLM sends to the provider behind it (for example openai/gpt-4o-mini). In Models + Endpoints › Add Model you choose the provider and enter both names plus the provider's key or address. A key can be typed into the form or saved once under LLM Credentials and reused by several models.

On our test installation we defined two models, neither backed by a working provider: gpt-4o-mini reading its key from an empty environment variable, and local-llama pointing at a local Ollama address. We then created two teams and two virtual keys with budgets and called the API with one of them.

  • Keys only see allowed models

    A virtual key limited to gpt-4o-mini got a /v1/models list with that single model. When the same key asked for local-llama, LiteLLM refused with 403 key_model_access_denied.

  • Without a provider key

    The call to gpt-4o-mini came back as 500 with an AuthenticationError, because no OpenAI key was set; LiteLLM passed the provider's error through and noted that no fallback was configured. Both calls appear in Logs › Request Logs with key alias and team.

  • Model entries stored encrypted

    The record LiteLLM returned when we added a model showed the model, key and address fields encrypted, which is the salt key at work. The UI decrypts them for you.

  • Using it from an app

    In any OpenAI-compatible client, set the base URL to your LiteLLM address and the API key to the virtual key. The full key is shown only when it is created; the list afterwards keeps just its first and last few characters.

Database, salt key and updates

Models, teams, virtual keys, spend and request logs go into PostgreSQL, whose data sits in the pgdata Docker volume. The LiteLLM container itself runs read-only, so persistent data lives only in the database.

There is no automatic update. LiteLLM releases often and also maintains a long-term support branch; which release you move to, and when, is your call. Back up the database before an upgrade and make sure the salt key stays the same in the configuration file.

What runs on the LiteLLM server
PartStatusDetail
LiteLLM proxy and /uiInstalledSingle process, read-only root file system
PostgreSQL 17InstalledSettings, keys, spend and logs
PrometheusNot includedThe metrics service from upstream's compose was left out
Models and provider keysNoneYou add them in the UI
UI loginEnvironment variablesUI_USERNAME / UI_PASSWORD
LiteLLM telemetryOffLITELLM_TELEMETRY=False

FAQ

Frequently asked questions

7 questions

Which LiteLLM sign-in details are in the handover e-mail?

Your LiteLLM address, the admin UI user name (admin) and a single-use link that displays the password once. The UI opens when you add /ui to the address. The master key is not in the e-mail; it stays in the configuration file on the server.

Does LiteLLM come with models or credit?

No. LiteLLM does not run models itself; it forwards requests to the providers you define. The installation starts empty, and you add a key for a provider such as OpenAI or Anthropic, or the address of your own model server, in the UI. What a provider charges is between you and that provider.

Which URL and key go into my application?

Put your LiteLLM address in the OpenAI client's base URL and a virtual key from the UI in its API key. The model name is the name you gave the model in LiteLLM, which LiteLLM maps to the provider's own model.

Where is the master key, and should I use it?

It sits in the LITELLM_MASTER_KEY line of /opt/altinsoft/app/.env on the server, readable by root. Because it can do everything, keep it out of applications; LiteLLM's own documentation uses virtual keys for daily work. If the UI sign-in is ever locked, API access with the master key still works.

How are my provider credentials protected?

Credentials you add in the UI are encrypted with LiteLLM's salt key (LITELLM_SALT_KEY) before they reach PostgreSQL. The salt key is generated for your installation only. Changing it makes the stored credentials unreadable, so leave it alone.

Which LiteLLM release do I get?

Your server gets the LiteLLM release our catalog lists when the order is handled. That is 1.111.1 today. LiteLLM publishes every release on GitHub with a signed image and a change list.

And if the LiteLLM setup does not finish?

The service stays off until the UI and API checks succeed. Our customer panel shows the step at which the setup stopped. Our team runs it again or delivers the VDS without LiteLLM, and you are e-mailed in both cases.

Catalogue

LiteLLM

Get LiteLLM installed on your server

Pick your package and pay; the app's installation starts with your order.