LiteLLM Proxy Extras

0.4.65 · active · verified Sat Apr 11

LiteLLM Proxy Extras (`litellm-proxy-extras`) is a supplementary Python package for the LiteLLM Proxy, providing additional files and components like database migration scripts (Prisma `schema.prisma` and migrations folder). Its primary purpose is to reduce the size of the main `litellm` package by externalizing these non-core proxy components. As of April 2026, it is at version `0.4.65` and is an actively maintained part of the LiteLLM ecosystem, following the frequent release cadence of `litellm`.

Warnings

Install

Imports

Quickstart

The `litellm-proxy-extras` package is not directly callable. Its primary function is to provide database migration files for the LiteLLM Proxy. To utilize its contributions, you typically install `litellm[proxy]` and then interact with the `litellm` CLI, for example, to run migrations. The quickstart demonstrates how to apply these migrations via the `litellm` CLI.

import os

# Ensure litellm[proxy] is installed
# pip install 'litellm[proxy]'

# To apply database migrations provided by litellm-proxy-extras
# This command starts the LiteLLM proxy and runs pending migrations.
# Ensure your database environment variables (e.g., POSTGRES_URL) are set.
# Example: os.environ['POSTGRES_URL'] = 'postgresql://user:password@host:port/database'

# In a terminal, run the following command:
# litellm --use_prisma_migrate

print("Refer to LiteLLM documentation for proxy setup and migration usage.")
# Example of starting the proxy with a model (requires API key in environment)
# os.environ["OPENAI_API_KEY"] = os.environ.get("OPENAI_API_KEY", "sk-your-openai-key")
# litellm --model openai/gpt-4o

view raw JSON →