Skip to content
Agents tracked: 502 Releases (7d): 613 Agent status: 4 with issuesSince last limit reset: Claude 7d · Codex 5d For AI agents: Markdown Updated Nov 18, 2026

FastAPI vs Flask

In 1,621 Python projects set up for AI coding agents, FastAPI is a dependency in 466 (28.7%) and Flask in 106 (6.5%): FastAPI is 4.4× as common. Among repos created in the last 90 days that use a http servers and apis tool, FastAPI is in 83.3% and Flask in 13.9%, against 73.3% and 17.0% of older ones. 18 projects list both, often a sign of a migration or of a monorepo with several apps.

HTTP servers and APIs PyPI Updated Nov 17, 2026

FastAPI28.7%
Flask6.5%

Share of 1,621 Python projects set up for AI coding agents that list each one as a dependency.

Side by side

FastAPIFlask
Agent projects that use it466106
Rank in http servers and apis#2#7
In new repos with a http servers and apis tool (last 90 days)83.3%13.9%
In older repos with one73.3%17.0%
Downloads, last 7 days133M40.3M
GitHub stars105K75.2K
Last push to its repoNov 16, 2026Oct 30, 2026
LicenseMITBSD-3-Clause
Funding——
Projects that list both18

Downloads include CI runs and installs as a dependency of other packages. Stars and pushes are from GitHub's API; downloads from PyPI.

By coding agent

Projects set up forPython reposFastAPIFlask
Claude Code78227.4%5.9%
GitHub Copilot80530.9%7.1%
Cursor54831.6%6.0%
Gemini CLI8334.9%0%
OpenAI Codex7824.4%6.4%
OpenCode5328.3%0%
OpenClaw10431.7%12.5%
Devin Desktop6028.3%0%

Share of the Python repos configured for each agent (its config file in the repo) that list the tool. A repo set up for two agents counts for both.

FastAPI

High-performance Python web framework with automatic API docs and async support.

Most often used with it:

Uvicorn92.3% of its projects
Pydantic63.7% of its projects
python-dotenv48.3% of its projects
python-multipart36.3% of its projects
Requests33.0% of its projects

pip install fastapi

Flask

Lightweight Python web framework for building web applications and APIs.

Most often used with it:

Requests69.8% of its projects
python-dotenv51.9% of its projects
NumPy44.3% of its projects
PyYAML38.7% of its projects
pandas29.2% of its projects

pip install flask

More matchups

FastAPI vs StarletteFlask vs StarletteExpress vs Hono

How we count

Projects are public GitHub repos our weekly scan finds through coding-agent config files (CLAUDE.md, AGENTS.md, .cursor/mcp.json and others); a project uses a tool when its package.json, requirements.txt or pyproject.toml lists it. "Same job" was checked for every pair, so add-ons and companions are never paired. Shares by repo age compare repos created in the last 90 days with older ones in the same scan. More on the method.