berriai / litellm
Get started
Taken from the repository's own files on 22 Oct 2026. RepoPilot has not run these commands.
Prerequisites
Python >=3.10, <3.15from pyproject.toml
Commands
Makefile| Task | Run | What it runs |
|---|---|---|
| test | make test | $(UV_RUN) pytest tests/ |
| lint | make lint | @$(GATE_SLOT_LOCK) $(MAKE) lint-inner |
| check | make check | @$(GATE_SLOT_LOCK) $(MAKE) check-inner |
Install and use
README.mdThis 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.
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.