English | 中文
A Java rewrite of the open-source parts of LiteLLM: unified LLM SDK + Router + OpenAI-compatible Proxy gateway.
Status: M0–M6 and admin portal A0–A6 complete. The codebase is functionally done; first Maven Central release is pending namespace verification and the operator's GPG/Sonatype credentials. Six providers (OpenAI incl. compatible endpoints, Anthropic, Azure OpenAI, Mistral, Gemini, AWS Bedrock), virtual keys with team/user hierarchy, cascading budgets and rate limits, in-process and Redis-backed cache + rate limiter + router state, Prometheus metrics, dynamic model management with hot-reload, Docker deployment, and a built-in web admin portal at /ui/ (keys, teams/users, models/ops, spend dashboard, en/中文). See the release guide.
LiteLlm client = LiteLlm.builder()
.apiKey("anthropic", System.getenv("ANTHROPIC_API_KEY"))
.build();
ChatResponse resp = client.chat(ChatRequest.builder()
.model("anthropic/claude-sonnet-4-6")
.message(Message.user("Hello!"))
.build());
System.out.println(resp.firstText() + " (cost $" + resp.costUsd() + ")");MIT — see LICENSE. The bundled price table is sourced from BerriAI/litellm (also MIT); see NOTICE for attribution.
- Getting started — SDK and Proxy quickstarts
- Deployment guide — Docker and virtual-machine (systemd) deployment, upgrades, ops checklist
- Migration guide — moving from LiteLLM (Python) and known differences
- Capability matrix — what each provider supports
- Architecture design — scope, tech choices, module layout, core abstractions, test strategy
- Roadmap — M0–M6 milestones with deliverables and acceptance criteria
- Admin portal design / roadmap — built-in web management console at
/ui/(A0–A6, shipped) - Releasing — one-time setup + per-release runbook for Maven Central
litellm-core (canonical OpenAI-format types)
▲
litellm-providers (OpenAI✓ / Anthropic✓ / Azure✓ / Mistral✓ / Gemini✓ / Bedrock✓, extensible via SPI)
▲
litellm-client (SDK facade: sync/async/streaming + retries + cost calc)
▲
litellm-router (load balancing / fallback / cooldown)
▲
litellm-proxy (Spring Boot gateway: virtual keys / budgets+limits / cache / observability)
Stack: Java 21 (virtual threads) · Maven multi-module · Jackson · Spring Boot 3 · PostgreSQL · Redis (optional).