litellm/litellm/proxy
2026-11-13 02:00:12 -05:00
..
_experimental chore(proxy): use neutral example names for baggage tag mappings (#50011) 2026-11-04 14:49:55 +00:00
a2a fix(agents): show non-admin callers the proxy URL in agent cards (#49483) 2026-10-31 16:17:11 -07:00
agent_endpoints refactor(typing): clear 1141 basedpyright Any errors across 182 files (#50711) 2026-11-11 22:11:47 +00:00
alerting_endpoints feat(alerts): add management controls and opt-in daily summaries (#51418) 2026-11-12 10:06:07 -08:00
analytics_endpoints fix(proxy): cancel the Admin UI's raw spend-log reads in Postgres after 30s (#49965) 2026-11-03 16:07:00 -08:00
anthropic_endpoints fix(skills): honor dashboard user and team grants (#51416) 2026-11-12 10:12:32 -08:00
auth fix(budgets): reuse shared spend verification for customer windows 2026-11-13 02:00:12 -05:00
batches_endpoints fix(proxy)!: reject client-supplied Vertex location and project unless the admin opts in (#47028) 2026-11-10 20:50:17 +00:00
client chore: move scripts and runtime sources under litellm (#51006) 2026-11-12 04:19:57 +00:00
common_utils feat(proxy): router_settings.fallback_on_saturation walks key and team fallbacks before a model saturates, replacing team model_preferences (#51439) 2026-11-13 05:57:18 +00:00
config_management_endpoints
config_resolvers feat: email affected owners before model deprecations (#50172) 2026-11-05 16:14:12 +08:00
container_endpoints refactor(typing): clear about 1,100 basedpyright Any errors across 303 files (#49986) 2026-11-06 13:31:15 -08:00
credential_endpoints fix(proxy): hold DB_RECONCILE_LOCK around credential create, update and delete (#50551) 2026-11-07 16:02:44 -08:00
custom_hooks
db fix(budgets): reuse shared spend verification for customer windows 2026-11-13 02:00:12 -05:00
decisions_endpoints
deps feat(alerts): enable monitoring by default with a five-alert free allowance (#51123) 2026-11-11 18:23:03 -08:00
discovery_endpoints feat(skills): let authors edit and withdraw pending submissions (#51312) 2026-11-12 08:30:10 -08:00
enterprise_billing feat(proxy): authenticate billing metrics with a cognito bearer token (#49852) 2026-11-04 14:08:40 -08:00
example_config_yaml refactor(types): replace Any with proven types in 21 files (#48921) 2026-10-29 18:43:24 -07:00
fine_tuning_endpoints refactor(typing): clear 1141 basedpyright Any errors across 182 files (#50711) 2026-11-11 22:11:47 +00:00
google_endpoints fix(proxy): answer x-litellm-call-id on every token count response (#51037) 2026-11-11 22:26:47 +00:00
guardrails fix(proxy): reject unknown guardrail names on key, user, team and project writes (#51080) 2026-11-11 19:28:45 -08:00
health_check_utils refactor(router): route the router family through RoutingContext and close the outside surface (#49118) 2026-10-30 19:18:54 -07:00
health_endpoints fix(health): log Test Connection spend with the mode's call type and model id (#50987) 2026-11-11 16:07:33 -08:00
hooks fix(budgets): preserve mixed limits and resolve CI regressions 2026-11-13 01:56:31 -05:00
image_endpoints fix(proxy): log each endpoint's own call type on failed audio, moderation, image, and rerank spend rows (#49684) 2026-11-02 23:57:11 +00:00
lens
list_api
logging_endpoints
management
management_endpoints fix(budgets): resolve compatibility and validation checks 2026-11-13 01:24:14 -05:00
management_helpers fix(budgets): resolve compatibility and validation checks 2026-11-13 01:24:14 -05:00
mcp_server feat(mcp): cache upstream tool lists with an admin-set lifetime (#51160) 2026-11-12 08:48:04 -08:00
memory
middleware refactor(redis): delete the Python RedisBatch now that every request op is native (#51383) 2026-11-13 03:22:28 +00:00
ocr_endpoints
openai_evals_endpoints
openai_files_endpoints fix(files): match every spelling of a provider file id in the ownership check (#51498) 2026-11-13 05:43:43 +00:00
pass_through_endpoints feat(proxy): publish opted-in pass-through endpoints on the Model Hub (#43905) 2026-11-12 17:46:38 +00:00
policy_engine refactor(router): route the router family through RoutingContext and close the outside surface (#49118) 2026-10-30 19:18:54 -07:00
prompts fix(proxy)!: reject client-supplied Vertex location and project unless the admin opts in (#47028) 2026-11-10 20:50:17 +00:00
public_endpoints fix(proxy): fetch blog posts without blocking the event loop (#51369) 2026-11-12 10:32:44 -08:00
rag_endpoints refactor(typing): clear 1141 basedpyright Any errors across 182 files (#50711) 2026-11-11 22:11:47 +00:00
realtime_endpoints feat(realtime)!: support latest OpenAI audio models (#35600) 2026-11-03 07:27:52 +00:00
rerank_endpoints refactor(typing): clear 1141 basedpyright Any errors across 182 files (#50711) 2026-11-11 22:11:47 +00:00
response_api_endpoints fix(proxy): answer x-litellm-call-id on every token count response (#51037) 2026-11-11 22:26:47 +00:00
response_polling refactor(typing): clear 1141 basedpyright Any errors across 182 files (#50711) 2026-11-11 22:11:47 +00:00
roi_calculator
rust_forward ci(integration): install the Rust gateway and fail forwarded_proxy when Rust is not in front (#51307) 2026-11-12 04:07:07 +00:00
search_endpoints refactor(typing): clear 1141 basedpyright Any errors across 182 files (#50711) 2026-11-11 22:11:47 +00:00
shutdown feat(proxy): configure the request header buffer size (#49883) 2026-11-03 16:11:46 -08:00
spend_tracking feat(budgets): support concurrent customer budget windows 2026-11-13 01:11:51 -05:00
swagger
telemetry
test_prompts
types_utils refactor(typing): clear about 1,100 basedpyright Any errors across 303 files (#49986) 2026-11-06 13:31:15 -08:00
ui_crud_endpoints feat(ui): add deployment-wide Aria visibility setting (#51506) 2026-11-13 01:17:20 +00:00
vector_store_endpoints feat(access-groups): grant vector stores through access groups (#50290) 2026-11-12 14:59:17 -08:00
vector_store_files_endpoints fix(proxy)!: return managed file ids from rag ingest and use team credentials on vector store file routes (#50459) 2026-11-10 05:44:28 +00:00
vertex_ai_endpoints
video_endpoints refactor(typing): clear 1141 basedpyright Any errors across 182 files (#50711) 2026-11-11 22:11:47 +00:00
workflows
.gitignore
__init__.py
_lazy_features.py feat(proxy): add OpenSearch index pass-through with per-key read/write grants (#50573) 2026-11-09 18:54:20 +00:00
_lazy_openapi_snapshot.json feat(access-groups): grant vector stores through access groups (#50290) 2026-11-12 14:59:17 -08:00
_lazy_openapi_snapshot.py chore: move ui and vscode-extension under litellm and delete docs (#50992) 2026-11-12 04:19:57 +00:00
_new_new_secret_config.yaml
_new_secret_config.yaml
_router_host.py refactor(router): move router callers onto the entry points and invert the proxy imports (#48847) 2026-10-29 17:26:33 +00:00
_super_secret_config.yaml
_types.py feat(budgets): support concurrent customer budget windows 2026-11-13 01:11:51 -05:00
admin_mcp.py refactor(typing): clear about 1,100 basedpyright Any errors across 303 files (#49986) 2026-11-06 13:31:15 -08:00
AGENTS.md feat(proxy): supervise the opt-in Rust forwarding server (#49606) 2026-11-11 19:40:00 +00:00
bug_report_config.py refactor(router): route the router family through RoutingContext and close the outside surface (#49118) 2026-10-30 19:18:54 -07:00
cached_logo.jpg
caching_routes.py refactor(typing): clear about 1,100 basedpyright Any errors across 303 files (#49986) 2026-11-06 13:31:15 -08:00
collector.py
common_request_processing.py feat(proxy): router_settings.fallback_on_saturation walks key and team fallbacks before a model saturates, replacing team model_preferences (#51439) 2026-11-13 05:57:18 +00:00
compliance_checks.py
custom_auth_auto.py
custom_prompt_management.py
custom_sso.py
custom_validate.py
dd_span_tagger.py
dev_config.yaml
dev_reload.py refactor(proxy): let the gunicorn server take a private listener (#50871) 2026-11-11 19:40:00 +00:00
enterprise chore: move workspace packages under litellm (#51000) 2026-11-12 04:19:57 +00:00
health_check.py fix(health): log Test Connection spend with the mode's call type and model id (#50987) 2026-11-11 16:07:33 -08:00
lambda.py
litellm_pre_call_utils.py fix(budgets): preserve admitted windows during accounting 2026-11-13 01:33:00 -05:00
llamaguard_prompt.txt
logo.png
logo_dark.png
logo_monogram.png
logo_monogram_dark.png
mcp_registry.json
mcp_tools.py
model_config.yaml
model_insights_tasks.json
moyai_endpoints.py
native_compaction.py
openapi.json
openapi_registry.json
plugin_routes.py fix(proxy): build plugin session claims from FIPS provider services in fips_mode (#50544) 2026-11-09 11:07:57 -08:00
post_call_rules.py
prisma_migration.py
prometheus_cleanup.py
prometheus_metrics_server.py
proxy_cli.py feat(proxy): supervise the opt-in Rust forwarding server (#49606) 2026-11-11 19:40:00 +00:00
proxy_config.yaml
proxy_server.py fix(budgets): reuse shared spend verification for customer windows 2026-11-13 02:00:12 -05:00
read_model_list.py
README.md
route_llm_request.py feat(bedrock): search knowledge bases by image and return image hits (#51063) 2026-11-12 00:19:34 +00:00
route_priority.py
schema.prisma feat(budgets): support concurrent customer budget windows 2026-11-13 01:11:51 -05:00
server_listener.py refactor(proxy): let the gunicorn server take a private listener (#50871) 2026-11-11 19:40:00 +00:00
tracing_endpoints.py
tracing_runtime.py
utils.py feat(budgets): support annual calendar reset periods (#51508) 2026-11-12 19:40:40 -08:00
wildcard_config.yaml

litellm-proxy

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

usage

$ uv tool 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