---
title: "LiteLLM AI gateway on a VPS · CloudSat"
description: "Run LiteLLM on a CloudSat VPS: one OpenAI-compatible gateway for 100+ LLM providers with virtual keys, budgets and spend tracking for every team."
url: https://cloudsat.io/apps/deploy-litellm
updated: 2026-11-18T15:52:35Z
source: CloudSat (https://cloudsat.io/). Prices in USD.
---

[Self-hosted](https://cloudsat.io/apps/category/self-hosted-essentials)

# LiteLLM on a VPS

LiteLLM is an open-source AI gateway: call OpenAI, Anthropic, Gemini, Ollama and 100+ more providers through one OpenAI-compatible API.

[Deploy LiteLLM](https://dash.cloudsat.io/console/deploy?image=app%3Alitellm&plan=cloud-2g) [All apps](https://cloudsat.io/apps)

## About LiteLLM

LiteLLM translates a single OpenAI-format API into calls to more than 100 LLM providers, from hosted APIs to local Ollama or vLLM servers. As a proxy it adds virtual API keys, spend tracking per team, budgets, load balancing and logging callbacks such as Langfuse. The core is MIT, with enterprise features under a commercial license.

With a central gateway, applications hold one LiteLLM key instead of a pile of provider secrets, and you see spend per project. A CloudSat VPS keeps it on infrastructure you control, in front of hosted APIs or GPU servers running your own models.

After deploy the proxy listens on port 4000 with PostgreSQL for keys and spend, and the admin UI lives at `/ui`.

## What you get with LiteLLM

- OpenAI-compatible endpoints for 100+ providers
- Virtual keys with per-user and per-team budgets
- Load balancing and fallbacks across deployments
- Spend tracking and logging integrations
- Admin UI for models, keys and usage

## LiteLLM use cases

- One API key per app instead of raw provider secrets
- Cost control for teams using several model vendors
- Routing between a hosted API and a self-hosted model

## After you deploy LiteLLM

1. Once the server reads **Running**, open `http://<server IP>:4000/ui` and log in as `admin` with the `LITELLM_MASTER_KEY` value as password.
2. Add provider credentials and models in `config.yaml` or the UI, restarting the proxy after file edits.
3. Issue a virtual key per app or teammate instead of sharing the master key.
4. Put the gateway behind HTTPS and guard the master key, since it authorizes every management call.

## LiteLLM ports

Open these in your firewall if you use one: `4000/tcp HTTP (proxy API and admin UI)`.

## LiteLLM FAQ

### Does LiteLLM need a database?

Plain routing works from a config file alone, but virtual keys and budget enforcement need one, and the gateway uses PostgreSQL for them.

### Can it serve models running on my own GPU?

Yes. Point a model entry at an OpenAI-compatible server such as vLLM or [Ollama](https://cloudsat.io/apps/deploy-ollama), for example on a CloudSat GPU server.

**Disclaimer.** The LiteLLM project has no affiliation with CloudSat and does not endorse it. Names and logos belong to their owners and appear only to identify the software.

## Apps like LiteLLM

[All apps in Self-hosted](https://cloudsat.io/apps/category/self-hosted-essentials)

- [Ollama](https://cloudsat.io/apps/deploy-ollama): Data science Ollama downloads and serves open models such as Llama, Gemma, Qwen and DeepSeek behind a local REST API, with OpenAI-compatible endpoints and GPU acceleration.
- [9Router](https://cloudsat.io/apps/deploy-9router): Self-hosted 9Router is a self-hosted AI request router: coding tools talk to one endpoint and it translates formats, tracks quotas and falls back across providers.
- [OmniRoute](https://cloudsat.io/apps/deploy-omniroute): Self-hosted OmniRoute is an MIT-licensed AI gateway: one OpenAI-compatible endpoint that routes requests across hundreds of model providers with fallback, quotas and caching.
- [Onyx Lite](https://cloudsat.io/apps/deploy-onyx-lite): Self-hosted Onyx Lite is the lightweight deployment of Onyx, the open-source AI platform: chat, agents, tools, projects and file uploads on PostgreSQL alone.
- [AFFiNE](https://cloudsat.io/apps/deploy-affine): Self-hosted AFFiNE is an open-source workspace that merges docs, an edgeless whiteboard and databases, with real-time collaboration on a server you run.
- [aider](https://cloudsat.io/apps/deploy-aider): Self-hosted aider is an open-source AI pair programmer for the terminal: it edits files across your git repo with the model you choose and commits every change.
