Category ranking
Best AI / LLM SDKs 2026
Vendor SDKs and framework layers (for example ai, LangChain) solve different jobs — prefer like-with-like comparisons.
| # | Package | Health score | Weekly downloads | Stars | Last release |
|---|---|---|---|---|---|
| 1 | openaiEditor's pick | 76/100 | 26,054,759 | 11,073 | 7/28/2026 |
| 2 | @anthropic-ai/sdk | 76/100 | 23,706,727 | 2,062 | 7/24/2026 |
| 3 | ai | 72/100 | 15,799,570 | 25,890 | 7/29/2026 |
| 4 | @google/genai | 76/100 | 14,140,388 | 1,654 | 7/29/2026 |
| 5 | @ai-sdk/openai | 72/100 | 7,871,541 | 25,890 | 7/29/2026 |
| 6 | @mistralai/mistralai | 76/100 | 5,307,419 | 152 | 7/17/2026 |
| 7 | @langchain/core | 72/100 | 4,295,223 | 17,996 | 7/14/2026 |
| 8 | @google/generative-ai | 41/100 | 3,253,434 | 1,238 | 4/29/2025 |
| 9 | @langchain/langgraph | 76/100 | 2,520,749 | 3,155 | 7/15/2026 |
| 10 | langchain | 72/100 | 2,273,673 | 17,996 | 7/24/2026 |
| 11 | @xenova/transformers | 37/100 | 505,438 | 16,217 | 5/29/2024 |
| 12 | cohere-ai | 56/100 | 365,771 | 171 | 4/1/2026 |
| 13 | llamaindex | 53/100 | 101,602 | 3,078 | 12/2/2025 |