RepoPilot

berriai / litellm

Search berriai/litellm

GitHub

Get started

Taken from the repository's own files on 22 Oct 2026. RepoPilot has not run these commands.

Prerequisites

Commands

Makefile
TaskRunWhat it runs
testmake test$(UV_RUN) pytest tests/
lintmake lint@$(GATE_SLOT_LOCK) $(MAKE) lint-inner
checkmake check@$(GATE_SLOT_LOCK) $(MAKE) check-inner

Install and use

README.md

This requires uv to be installed.

git clone https://github.com/BerriAI/litellm.git
cd litellm
make install-dev    # Install development dependencies
make format         # Format your code
make lint           # Run all linting checks
make test-unit      # Run unit tests
make format-check   # Check formatting only

For detailed contributing guidelines, see CONTRIBUTING.md.

πŸ“– Contributing to documentation? The LiteLLM docs have moved to a separate repository: BerriAI/litellm-docs. Please open doc PRs there. Docs are served at docs.litellm.ai.

Open README.md

Developing

CONTRIBUTING.md
# Fork the repository on GitHub (click the Fork button at https://github.com/BerriAI/litellm)
# Then clone your fork locally
git clone https://github.com/YOUR_USERNAME/litellm.git
cd litellm

# Create a new branch for your feature (see "Commit and Branch Conventions" below)
git checkout -b litellm_your_feature

# Install development dependencies
make install-dev

# Install git hooks that enforce commit conventions (one-time, opt-in)
make install-hooks

# Verify your setup works
make help

That's it! Your local development environment is ready.

Open CONTRIBUTING.md