AI and Agents

Libraries for building AI applications, LLM integrations, and autonomous agents.

Build a typed agent in Pydantic AI. Long-running, stateful agents suit LangGraph. Apps tied to one model vendor can use that vendor's Python AI agent library.

How to choose:

Listed in editorial order, grouped by use case. Click a column header to re-sort the whole list.

Press / to search. Tags open their category. Click a row for details.

Search and filter

Results

Row number Tags

Agent Skills 5 projects

Django backend agent skills for Django, DRF, Celery, and Django-specific code review.
Agent skills for scientific research and analysis with Python libraries like scikit-learn, polars, and biopython.
Agent skills the Sentry team uses for code review, pull requests, and Django reviews.
getsentry/github.com/getsentry/skills /1,100 stars /
Security skills for vulnerability detection, auditing, and testing.
trailofbits/github.com/trailofbits/skills /7,878 stars /
Plugins, agents, and skills for AI coding tools, including Python skills for testing, async, packaging, and uv.
wshobson/github.com/wshobson/agents /41,988 stars /

Orchestration 4 projects

A framework for building agents and LLM-powered applications.
langchain-ai/github.com/langchain-ai/langchain /148,676 stars /
Low-level orchestration framework for building stateful, long-running LLM agents.
A Python agent framework for building generative AI applications with structured schemas.
pydantic/github.com/pydantic/pydantic-ai /20,947 stars /
A framework for orchestrating role-playing autonomous AI agents for collaborative task solving.
crewAIInc/github.com/crewAIInc/crewAI /60,264 stars /

Vendor Agent SDKs 3 projects

Anthropic's Python SDK for building AI agents on Claude Code's harness — custom tools, in-process MCP servers, hooks.
OpenAI's framework for building and managing AI agents.
Google's code-first toolkit for building, evaluating, and deploying AI agents.
google/github.com/google/adk-python /22,046 stars /

Model Context Protocol 2 projects

The official Python SDK for building Model Context Protocol servers and clients.
A high-level, Pythonic framework for building MCP servers and clients.
PrefectHQ/github.com/PrefectHQ/fastmcp /28,238 stars /

Personal Assistants 2 projects

An adaptive personal AI assistant that grows with you.
A multi-platform AI assistant that connects LLMs to chat apps like Telegram, Slack, and QQ, extensible with Python plugins.
AstrBotDevs/github.com/AstrBotDevs/AstrBot /44,762 stars /

Prompt Optimization 1 project

A framework for programming, not prompting, language models.
stanfordnlp/github.com/stanfordnlp/dspy /38,849 stars /

Data Layer 5 projects

A library for extracting structured data from LLMs, powered by Pydantic.
567-labs/github.com/567-labs/instructor /14,077 stars /
A toolkit for building RAG pipelines and agents over your data.
run-llama/github.com/run-llama/llama_index /52,735 stars /
An intelligent memory layer for AI agents enabling personalized interactions.
mem0ai/github.com/mem0ai/mem0 /68,063 stars /
A context database for AI agents that unifies memory, resources, and skills.
volcengine/github.com/volcengine/OpenViking /41,150 stars /
A graph-native context and knowledge layer for AI agents with reasoning, provenance, and governance.

Pre-trained Models 2 projects

The model-definition framework for pretrained models in text, computer vision, audio, video, and multimodal tasks, for inference and training.
Compute embeddings, run retrieval, and rerank results with pretrained and fine-tuned models.

Local LLM Inference 3 projects

Python client for Ollama, which downloads and runs open-weight LLMs locally.
ollama/github.com/ollama/ollama-python /10,642 stars /
Python bindings for llama.cpp, for running GGUF models locally.
abetlen/github.com/abetlen/llama-cpp-python /10,667 stars /
Run and fine-tune large language models on Apple Silicon with MLX.
ml-explore/github.com/ml-explore/mlx-lm /7,505 stars /

LLM Serving 3 projects

A high-throughput and memory-efficient inference and serving engine for LLMs.
vllm-project/github.com/vllm-project/vllm /95,866 stars /
A high-performance serving framework for large language models and multimodal models.
sgl-project/github.com/sgl-project/sglang /38,364 stars /
DeepSeek's production inference engine for DeepSeek models, with MoE expert parallelism.
deepseek-ai/github.com/deepseek-ai/DeepInfer /24,242 stars /

Image and Video Generation 1 project

Pre-trained diffusion models for generating and editing images, audio, and video.
huggingface/github.com/huggingface/diffusers /34,833 stars /

Fine-tuning 4 projects

A library for parameter-efficient fine-tuning of large pretrained models.
huggingface/github.com/huggingface/peft /21,859 stars /
A library for post-training transformer language models with SFT, DPO, GRPO, and other trainers.
huggingface/github.com/huggingface/trl /19,630 stars /
Faster, lower-memory LLM fine-tuning, as a Python library or a desktop app.
unslothai/github.com/unslothai/unsloth /78,764 stars /
A framework for fine-tuning and post-training large language models.

Speech 4 projects

A Whisper reimplementation on CTranslate2, up to 4 times faster than openai-whisper with less memory.
SYSTRAN/github.com/SYSTRAN/faster-whisper /26,303 stars /
A general-purpose automatic speech recognition model trained on 680k hours of multilingual and multitask supervised data.
openai/github.com/openai/whisper /111,545 stars /
Python library and CLI tool for converting text to speech using Google Translate TTS.
pndurette/github.com/pndurette/gTTS /2,638 stars /
Industrial-grade speech recognition toolkit with speaker diarization and emotion detection.
modelscope/github.com/modelscope/FunASR /20,874 stars /

AI and Agents guide

Pydantic AI comes from the Pydantic team and is typed end to end. Outputs, tools, and dependencies all carry types, so your type checker knows what an agent returns. Switching models takes one string. Give an agent an output type and tools, and every run comes back validated.

LangGraph is a low-level orchestration framework for long-running, stateful agents, and it can mix hand-coded steps with LLM-driven ones in one graph. For your first agent, its docs suggest LangChain's agents instead: a minimal harness built on LangGraph, which you extend through middleware.

The Claude Agent SDK gives you the tools and agent loop behind Claude Code, so it fits agents that read files, run commands, and edit code. Call query() for a one-off task, and switch to ClaudeSDKClient when the next step depends on Claude's reply, as in a chat.

The OpenAI Agents SDK keeps to a small set of primitives: use it when you want the runtime to handle turns, tool calls, handoffs, and guardrails for you. Despite the name, it isn't limited to OpenAI models.

Google ADK is optimized for Gemini but model-agnostic. Start a project with adk create.

All three skill collections install from a Claude Code plugin marketplace. Django AI Skills and Sentry Skills follow the open Agent Skills format, so other coding agents can load them too. Sentry Skills is written for Sentry's own engineers, so some of its skills follow Sentry's internal standards.

CrewAI splits an app into Flows, which manage state and control execution, and Crews, teams of agents that work on one task together. For a production app, start with a Flow, and hand a Crew only the steps that need autonomy.

The MCP Python SDK reads each tool's schema from its type hints and docstring, so you write no JSON Schema or request handlers. FastMCP wrote the high-level API that the SDK took in. The standalone project is a fuller framework: it can mount several servers into one and proxy another MCP server through your own.

Hermes Agent talks to you on Telegram, Discord, Slack, WhatsApp, and Signal from one gateway process, and writes itself new skills as it works. Since it runs commands for whoever it lets in, allow only your own account on its gateway with an allowlist, and leave approval prompts on for dangerous commands. AstrBot covers chat apps such as QQ, Feishu, and DingTalk. It's AGPL, while Hermes Agent is MIT.

DSPy has you write structured signatures, not prompts, and its optimizers tune the prompts for you. Before they can, define a metric and score a baseline to beat.

Instructor turns an LLM's reply into a validated Pydantic model, and when validation fails, it retries with the error message. Its docs draw the line at extraction versus agents: Instructor for the first, Pydantic AI for the second.

LlamaIndex builds agents over your own data. Its high-level API goes from documents to answers in a few lines, and its lower-level API lets you replace any part.

Mem0 gives an agent memory of each user: search their memories before the model answers, then add the new exchange. Run it as a library in your app, or as a self-hosted server for a team.

Transformers is the model definition that most training frameworks and inference engines share, Axolotl, Unsloth, vLLM, and SGLang among them. Load a model from the Hugging Face Hub with from_pretrained(), then run it through Pipeline for inference or Trainer for training. For large production deployments, its docs send you to vLLM or SGLang.

The Ollama Python library talks to Ollama, which runs models on your computer. Start Ollama and pull a model with ollama pull, then pass the model's name to chat(). llama-cpp-python gives you Python bindings for llama.cpp, so the model runs inside your program. Load a GGUF file with the Llama class, or fetch one from the Hugging Face Hub with Llama.from_pretrained(). Its completions come back in the OpenAI format. On a Mac, MLX LM runs and fine-tunes models on Apple silicon.

vLLM runs batch inference offline or an OpenAI-compatible server, so apps written for the OpenAI API work unchanged. SGLang is optimized for agentic workloads, RL rollouts, and large-scale serving.

Diffusers centers on the DiffusionPipeline: a few lines generate an image, video, or audio clip.

Start fine-tuning with LoRA or QLoRA rather than training every weight, as both PEFT and Unsloth advise. TRL trains with methods from SFT to DPO and GRPO, and every TRL trainer takes a peft_config for PEFT adapters. Axolotl keeps the whole pipeline, from dataset preprocessing to inference, in one YAML file.

faster-whisper reimplements Whisper on CTranslate2 for the same accuracy in less time and memory. For Chinese audio, FunASR's AutoModel chains speech recognition with voice activity detection, punctuation, and speaker models in one call. gTTS speaks through Google Translate's undocumented speech feature, so upstream changes can break it without notice.

Know a project that belongs here?

Tell us what it does and why it stands out.