skillfed

unclecode-litellm

Pre-compromise fork of litellm - Library to easily interface with LLM API providers

unclecode-litellm v1.81.13 900.3K downloads/30d#4,776 on PyPI4
Permissive license MIT Active released

What it is and what it does

unclecode-litellm is a pre-compromise fork that abstracts away differences between LLM provider APIs, letting you call models from many providers through a single OpenAI-compatible interface. It ships as both a Python SDK for direct integration into your code and an AI Gateway (proxy server) for centralized LLM access with authentication, virtual keys, cost tracking, and request routing.

The Python SDK handles completion calls, embeddings, image generation, audio transcription, and more across providers. The AI Gateway layer adds multi-tenant support, per-project customization (logging, guardrails, caching), and admin dashboards for monitoring. It also supports agent-to-agent (A2A) protocols, MCP (Model Context Protocol) tool bridging, and router-based retry and fallback logic across multiple deployments. Runtime dependencies include httpx, openai, pydantic, aiohttp, and tokenizers.

Use it for:

  • Switch between LLM providers without rewriting completion calls by changing the model string.
  • Build a centralized LLM gateway for your organization with virtual keys, cost tracking per user/project, and unified authentication.
  • Implement retry and fallback logic across multiple LLM deployments using the Router for resilience.
  • Connect MCP servers to any LLM via the experimental MCP bridge for tool-augmented completions.
  • Track LLM spend and usage across teams using the proxy's multi-tenant cost tracking and observability callbacks.
  • Invoke agent-to-agent (A2A) protocols from multiple agent platforms through a unified gateway.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Unified Python interface to call many LLM providers (OpenAI, Anthropic, Bedrock, Azure, VertexAI, Groq, etc.) in OpenAI format, plus an AI Gateway proxy server for centralized access with authentication, cost tracking, and routing.

Yes, with conditions. This is a pre-compromise fork, so verify that this fork's divergence from the main project meets your needs—check whether all providers and features you require are present and functional. Install friction is low, maintenance is active, and the MIT license is permissive. No known vulnerabilities. Suitable for teams building multi-provider LLM applications or operating a centralized LLM gateway.

Install

unclecode-litellm on PyPI

pip

pip install unclecode-litellm

uv

uv add unclecode-litellm

poetry

poetry add unclecode-litellm

Installing unclecode-litellm

Before you install

Low install friction with a pure-Python wheel distribution. Active maintenance with recent commits. Twelve runtime dependencies (httpx, openai, pydantic, jinja2, aiohttp, click, tiktoken, tokenizers, jsonschema, importlib-metadata, python-dotenv, fastuuid) are all standard ecosystem libraries.

License in practice

MIT license permits unrestricted use, modification, and distribution in commercial and private projects with minimal obligations—only attribution required.

Quickstart

pip install unclecode-litellm

from litellm import completion
import os

os.environ["OPENAI_API_KEY"] = "your-key"
response = completion(
    model="openai/gpt-4o",
    messages=[{"role": "user", "content": "Hello!"}]
)

Requires Python 3.9 or later. API keys for the LLM providers you intend to use must be set as environment variables.

Verify before relying

  • How this fork diverges from the upstream project and whether all advertised providers are fully functional.
  • Whether all endpoints listed (/chat/completions, /embeddings, /images, /audio, /batches, /rerank, /a2a, /messages) are production-ready or experimental.
  • Actual performance characteristics under production load beyond claims in the description.

Package facts

License MIT (permissive)
Python support supports the current Python release (>=3.9)
Install friction low — pure-Python wheel
Runtime dependencies 12 — fastuuid, httpx, openai, python-dotenv, tiktoken, importlib-metadata, tokenizers, click, jinja2, aiohttp, pydantic, jsonschema
Maintenance actively maintained — 143 days since the last release
Last repo commit
First released
Downloads 900,309/month — #4,776 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: unclecode_litellm-1.81.13-py3-none-any.whl

Tags

unified llm api interfaceopenai-compatible llm wrappermulti-provider llm gatewayllm proxy servercall multiple llm providersllm cost tracking and routinganthropic openai bedrock unified
llm-abstractionapi-gatewaymulti-provider

More Artificial Intelligence packages