litellm/litellm/proxy
2026-01-31 11:21:03 -08:00
..
_experimental fix mcp linting 2026-01-31 11:21:03 -08:00
agent_endpoints [Fix] A2a Gateway - Allow supporting old A2a card formats (#19949) 2026-01-28 15:02:08 -08:00
analytics_endpoints
anthropic_endpoints [Feat] UI - Allow Adding Claude Code Plugins (#19387) 2026-01-19 19:08:59 -08:00
auth Merge pull request #19981 from BerriAI/litellm_fix_batches_permissions 2026-01-30 17:00:10 +05:30
batches_endpoints Fix: mypy errors 2026-01-29 12:42:30 +05:30
client Fix team cli auth flow (#19666) 2026-01-28 08:52:52 -08:00
common_utils fix transform_retrieve_file_response 2026-01-31 11:16:22 -08:00
config_management_endpoints
container_endpoints [Feat] Litellm new endpoint add container file upload (#18743) 2026-01-07 13:36:55 +05:30
credential_endpoints
custom_hooks
db Revert "Fix/prisma schema permission (#19391)" 2026-01-21 17:19:32 +05:30
discovery_endpoints Add in-product nudge for claude code feedback survey + new learning centre (#19303) 2026-01-17 20:05:20 -08:00
example_config_yaml [Feat] Claude Code - Add Websearch support using LiteLLM /search (using web search interception hook) (#19263) 2026-01-16 21:10:05 -08:00
fine_tuning_endpoints
google_endpoints fix(proxy): handle agent parameter in /interactions endpoint (#19866) 2026-01-27 09:34:58 -08:00
guardrails Merge branch 'main' into litellm_oss_staging_01_28_2026 2026-01-29 17:39:42 +05:30
health_check_utils
health_endpoints fix(proxy): add datadog_llm_observability to /health/services allowed list (#19952) 2026-01-28 22:16:27 -08:00
hooks feat: hashicorp vault rotate support 2026-01-23 17:32:55 +09:00
image_endpoints Fix: stability image optional para 2026-01-19 09:05:52 +05:30
management_endpoints fix mcp linting 2026-01-31 11:21:03 -08:00
management_helpers
middleware
ocr_endpoints
openai_files_endpoints fix typing 2026-01-31 11:10:53 -08:00
pass_through_endpoints Add /openai_passthrough route for openai passthrough requests: 2026-01-29 16:07:45 +05:30
policy_engine fix linting 2026-01-23 13:46:02 -08:00
prompts fix(prompts): fix prompt info lookup and delete using correct IDs (#19358) 2026-01-20 12:28:34 -08:00
public_endpoints fixing lint 2026-01-16 18:14:33 -08:00
rag_endpoints [Feat] LiteLLM Vector Stores - Add permission management for users, teams (#19972) 2026-01-28 18:55:40 -08:00
rerank_endpoints
response_api_endpoints Add native_background_mode to override polling_via_cache for specific models 2026-01-27 15:54:46 -08:00
response_polling Add native_background_mode to override polling_via_cache for specific models 2026-01-27 15:54:46 -08:00
search_endpoints [Feat] - Search API add /list endpoint to list what search tools exist in router (#19969) 2026-01-28 17:58:17 -08:00
spend_tracking Add error_message search in spend logs endpoint 2026-01-28 15:06:31 -08:00
swagger
test_prompts
types_utils
ui_crud_endpoints [Feat] UI: Allow Admins to control what pages are visible on LeftNav (#19907) 2026-01-27 19:31:24 -08:00
vector_store_endpoints Allow config embedding models 2026-01-29 16:31:30 -08:00
vector_store_files_endpoints
vertex_ai_endpoints
video_endpoints Revert "Litellm staging 01 15 2026" 2026-01-17 06:31:34 +09:00
__init__.py
_logging.py
_new_new_secret_config.yaml
_new_secret_config.yaml Litellm dev 01 15 2026 p1 (#19153) 2026-01-16 00:48:41 +05:30
_super_secret_config.yaml
_types.py Merge pull request #19981 from BerriAI/litellm_fix_batches_permissions 2026-01-30 17:00:10 +05:30
.gitignore
cached_logo.jpg update image and bounded logo in navbar 2026-01-30 16:35:24 -08:00
caching_routes.py
common_request_processing.py fix(proxy): reduce PLR0915 complexity in base_process_llm_request (#20127) 2026-01-31 00:20:12 -08:00
custom_auth_auto.py
custom_prompt_management.py
custom_sso.py
custom_validate.py
enterprise
health_check.py
lambda.py
litellm_pre_call_utils.py Merge branch 'main' into litellm_oss_staging_01_26_2026 2026-01-27 17:00:58 +05:30
llamaguard_prompt.txt
logo.jpg
mcp_tools.py
model_config.yaml
openapi.json
post_call_rules.py
prisma_migration.py Revert "Fix/prisma schema permission (#19391)" 2026-01-21 17:19:32 +05:30
proxy_cli.py Fix: log duplication when json_logs is enabled (#19705) 2026-01-24 11:09:04 -08:00
proxy_config.yaml [Feat] LiteLLM x Claude Agent SDK Integration (#20035) 2026-01-29 17:48:38 -08:00
proxy_server.py fix(proxy): use get_async_httpx_client for logo download (#20155) 2026-01-31 09:51:16 -08:00
README.md
route_llm_request.py litellm_fix(mypy): fix remaining type errors (#20164) 2026-01-31 10:25:23 -08:00
schema.prisma Merge branch 'main' into litellm_oss_staging_01_28_2026 2026-01-29 17:39:42 +05:30
start.sh
utils.py [Feat] Add async_post_call_response_headers_hook to CustomLogger (#20083) 2026-01-30 12:44:44 -08:00

litellm-proxy

A local, fast, and lightweight OpenAI-compatible server to call 100+ LLM APIs.

usage

$ pip install litellm
$ litellm --model ollama/codellama 

#INFO: Ollama running on http://0.0.0.0:8000

replace openai base

import openai # openai v1.0.0+
client = openai.OpenAI(api_key="anything",base_url="http://0.0.0.0:8000") # set proxy to base_url
# request sent to model set on litellm proxy, `litellm --model`
response = client.chat.completions.create(model="gpt-3.5-turbo", messages = [
    {
        "role": "user",
        "content": "this is a test request, write a short poem"
    }
])

print(response)

See how to call Huggingface,Bedrock,TogetherAI,Anthropic, etc.


Folder Structure

Routes

  • proxy_server.py - all openai-compatible routes - /v1/chat/completion, /v1/embedding + model info routes - /v1/models, /v1/model/info, /v1/model_group_info routes.
  • health_endpoints/ - /health, /health/liveliness, /health/readiness
  • management_endpoints/key_management_endpoints.py - all /key/* routes
  • management_endpoints/team_endpoints.py - all /team/* routes
  • management_endpoints/internal_user_endpoints.py - all /user/* routes
  • management_endpoints/ui_sso.py - all /sso/* routes