Python AI, LLM and agent libraries
Libraries for LLM apps, AI agents, model serving and speech in Python, ranked by GitHub stars
Updated · GitHub stars (stars)
Why these 20
Ranked by GitHub stars: how many developers bookmarked the project. Stars measure attention, not quality, so each row also shows forks, licence and the last push. Tools without a public repository have no star count and can't be ranked here.
-
1
hermes-agent
An adaptive personal AI assistant that grows with you.
266,145 stars 60,366 forkslast push 2026-11-26PythonMIT
Also in: #3 AI agent frameworks on GitHub
-
2
Transformers
A deep learning library containing thousands of pre-trained models on different tasks. The goto place for anything related to Large Language Models.
169,339 stars 35,302 forkslast push 2026-11-25PythonApache-2.0
-
3
langchain
A framework for building agents and LLM-powered applications.
150,004 stars 25,168 forkslast push 2026-11-25PythonMIT
Also in: #7 AI agent frameworks on GitHub
-
4
openai-whisper
A general-purpose automatic speech recognition model trained on 680k hours of multilingual and multitask supervised data.
113,550 stars 13,740 forkslast push 2026-08-31PythonMIT
-
5
vllm
A high-throughput and memory-efficient inference and serving engine for LLMs.
97,580 stars 25,301 forkslast push 2026-11-26PythonApache-2.0
Also in: #3 tools for deploying and serving machine learning models
-
6
unsloth
Faster, lower-memory LLM fine-tuning, as a Python library or a desktop app.
80,266 stars 7,478 forkslast push 2026-11-26PythonApache-2.0
Also in: #1 machine learning training and orchestration tools#8 self-hosted apps
-
7
mem0
An intelligent memory layer for AI agents enabling personalized interactions.
69,483 stars 8,268 forkslast push 2026-11-25PythonApache-2.0
-
8
crewai
A framework for orchestrating role-playing autonomous AI agents for collaborative task solving.
61,275 stars 9,294 forkslast push 2026-11-26PythonMIT
-
9
llama-index
A toolkit for building RAG pipelines and agents over your data.
53,012 stars 8,640 forkslast push 2026-11-26PythonMIT
Also in: #4 open-source vector databases
-
10
AstrBot
A multi-platform AI assistant that connects LLMs to chat apps like Telegram, Slack, and QQ, extensible with Python plugins.
47,514 stars 3,671 forkslast push 2026-11-25PythonAGPL-3.0
-
11
langgraph
Low-level orchestration framework for building stateful, long-running LLM agents.
45,430 stars 7,864 forkslast push 2026-11-26PythonMIT
-
12
openviking
A context database for AI agents that unifies memory, resources, and skills.
42,804 stars 3,572 forkslast push 2026-11-26PythonAGPL-3.0
Also in: #6 open-source vector databases
-
13
dspy
A framework for programming, not prompting, language models.
39,237 stars 3,554 forkslast push 2026-11-25PythonMIT
-
14
sglang
A high-performance serving framework for large language models and multimodal models.
39,069 stars 10,864 forkslast push 2026-11-26PythonApache-2.0
Also in: #10 tools for deploying and serving machine learning models
-
15
diffusers
Pre-trained diffusion models for generating and editing images, audio, and video.
34,978 stars 7,517 forkslast push 2026-11-26PythonApache-2.0
-
16
openai-agents
OpenAI's framework for building and managing AI agents.
30,880 stars 5,119 forkslast push 2026-11-25PythonMIT
-
17
fastmcp
A high-level, Pythonic framework for building MCP servers and clients.
28,761 stars 2,657 forkslast push 2026-11-26PythonApache-2.0
-
18
faster-whisper
A Whisper reimplementation on CTranslate2, up to 4 times faster than openai-whisper with less memory.
27,019 stars 2,301 forkslast push 2026-11-25PythonMIT
-
19
deepinfer
DeepSeek's production inference engine for DeepSeek models, with MoE expert parallelism.
26,380 stars 3,261 forkslast push 2026-11-19PythonApache-2.0
-
20
mcp
The official Python SDK for building Model Context Protocol servers and clients.
24,971 stars 4,178 forkslast push 2026-11-17PythonMIT
References
- vinta/awesome-python: AI and Agents, GitHub community list (list text CC BY 4.0; star counts from the GitHub API). Checked 2026-11-26 03:28 UTC.
- vinta/awesome-python (AI and Agents), GitHub community list, 38 tools with a public repository.

