Source: https://seerepo.com/compare/BerriAI/litellm/vs/bojieli/ai-agent-book
Markdown source: https://seerepo.com/compare/BerriAI/litellm/vs/bojieli/ai-agent-book.md
Description: litellm and ai-agent-book share 6 technologies: Next.js, React, FastAPI, Postgres, OpenAI, and Anthropic. Both are written in Python.

# litellm vs ai-agent-book

litellm and ai-agent-book share 6 technologies: Next.js, React, FastAPI, Postgres, OpenAI, and Anthropic. Both are written in Python.

- [BerriAI/litellm](https://seerepo.com/r/BerriAI/litellm): The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
- [bojieli/ai-agent-book](https://seerepo.com/r/bojieli/ai-agent-book): 《深入理解 AI Agent：设计原理与工程实践》（李博杰 著）开源主仓库：全书正文、编译版 PDF 与按章配套代码

## What they share and what sets them apart

- In common: Next.js, React, FastAPI, Postgres, OpenAI, Anthropic
- Only in litellm: Flask, axum, Redis, Claude
- Only in ai-agent-book: Vite, Astro, Express, Google, PostHog

## Side by side

| | litellm | ai-agent-book |
|---|---|---|
| Size | 4,405,837 lines written, 5,630 code files | 422,452 lines written, 1,079 code files |
| Who writes it | 20% of its commits signed by AI. With Claude Code, Devin, Cursor, GitHub Copilot, OpenHands, Codex, Aider, and Gemini CLI | 20.8% of its commits signed by AI. With Claude Code |
| Activity | Last push October 30, 2026, 45,956 commits, 62,405 stars | Last push October 8, 2026, 1,610 commits, 56,633 stars |
| Tests | 6,741 test files. 21.7% of its code files have a test that imports them | 624 test files. 33.9% of its code files have a test that imports them |

- Size: Lines written by people and agents, without generated ones; code files, without tests.
- Who writes it: A commit counts as AI's when it carries its signature: a Co-Authored-By line, its author name or the merge of its branch.
- Activity: From GitHub and its history, on the day SeeRepo read it.
- Tests: The files that test the code, and the share of code files a test imports.

## Frequently asked questions

### Which is bigger, litellm or ai-agent-book?

litellm, with 4,405,837 lines written in 5,630 code files; ai-agent-book has 422,452 in 1,079.

The proof: [BerriAI/litellm's code at commit ef9385c](https://github.com/BerriAI/litellm/tree/ef9385c712297fa59bf8555962bfd719c55a4529)

### Which has more GitHub stars, litellm or ai-agent-book?

litellm, with 62,405 stars; ai-agent-book has 56,633.

The proof: [BerriAI/litellm on GitHub](https://github.com/BerriAI/litellm)

### Which has more tests, litellm or ai-agent-book?

litellm, with 6,741 test files; ai-agent-book has 624.

The proof: [BerriAI/litellm's code at commit ef9385c](https://github.com/BerriAI/litellm/tree/ef9385c712297fa59bf8555962bfd719c55a4529)

### Which was updated more recently, litellm or ai-agent-book?

litellm: its last push was on October 30, 2026, and ai-agent-book's on October 8, 2026.

The proof: [BerriAI/litellm's commits on GitHub](https://github.com/BerriAI/litellm/commits)

### Which has more commits signed by AI, litellm or ai-agent-book?

ai-agent-book: an AI signed 20.8% of its commits, with Claude Code; in litellm, 20%.

The proof: [the commits each tool signed in bojieli/ai-agent-book](https://seerepo.com/r/bojieli/ai-agent-book/ai)

## Sources

- BerriAI/litellm: Read on October 30, 2026, at commit ef9385c (https://github.com/BerriAI/litellm/tree/ef9385c712297fa59bf8555962bfd719c55a4529)
- bojieli/ai-agent-book: Read on October 30, 2026, at commit dbc046e (https://github.com/bojieli/ai-agent-book/tree/dbc046eb896ac4e39aa19c7774c8bf49583b89a6)

## What is your repo built with?

Any public repo, with no account: https://seerepo.com/r/owner/repo/built, with the owner and name it has on GitHub.
