aiohttp
Async HTTP client/server framework for Python with WebSocket support.
Used in agent projects
295
2.3% of 12,697 public repos built with AI coding agents
Rank in http clients and networking
#3 of 29
by use in those projects
Downloads
117M
PyPI, last 7 days, aiohttp
GitHub stars
16.6K
last push Oct 9, 2026
How aiohttp is used
aiohttp is a dependency in 295 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (2.3%), #3 of 29 in http clients and networking. The most used alternative there is Axios. Projects that use it most often also use python-dotenv (76.6%), Requests (62.0%), Pydantic (56.3%). It is more common in projects set up for Roo Code (4.4%) than for OpenAI Codex (1.1%).
Often used with aiohttp
| python-dotenv | 76.6% of aiohttp projects · 11.7× more than average |
|---|---|
| Requests | 62.0% of aiohttp projects · 11.7× more than average |
| Pydantic | 56.3% of aiohttp projects · 11.0× more than average |
| solders | 55.3% of aiohttp projects · 16.6× more than average |
| websockets | 47.5% of aiohttp projects · 21.1× more than average |
| solana-py | 44.4% of aiohttp projects · 16.5× more than average |
| NumPy | 43.7% of aiohttp projects · 11.4× more than average |
| base58 | 40.3% of aiohttp projects · 21.2× more than average |
By coding agent
| Claude Code | 2.0% of projects set up for it |
|---|---|
| GitHub Copilot | 2.0% of projects set up for it |
| Cursor | 2.1% of projects set up for it |
| Gemini CLI | 2.1% of projects set up for it |
| Devin Desktop | 2.9% of projects set up for it |
| OpenCode | 1.9% of projects set up for it |
| Roo Code | 4.4% of projects set up for it |
| OpenAI Codex | 1.1% of projects set up for it |
Share of public repos configured for each agent that list aiohttp as a dependency.
Install
| Package | pip install aiohttp |
|---|---|
| Main stacks | Python (287), Next.js (6), Other (1), React Native / Expo (1) |
| Example projects | Josh-XT/AGiXT, imbue-bit/AlphaGPT, simons-freedom/X-monitor, bobmatnyc/claude-mpm, pipedude/evi-run |
Alternatives to aiohttp
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| Axios npm Promise-based HTTP client for browser and Node.js with interceptors. |
1,264 (10.0%) | 115M | 109K | MIT |
| Requests pypi Elegant Python HTTP library for making web requests. |
675 (5.3%) | 309M | 54.6K | Apache-2.0 |
| ws npm Simple, fast WebSocket client and server for Node.js with full RFC support. |
287 (2.3%) | 283M | 22.8K | MIT |
| websockets pypi WebSocket implementation for Python with RFC 6455 and 7692 compliance. |
286 (2.3%) | 109M | 5,732 | — |
| httpx pypi Modern Python HTTP client with async support, replacing the standard requests library. |
266 (2.1%) | 16M | 15.6K | BSD-3-Clause |
| node-fetch npm Bring the Fetch API to Node.js for making HTTP requests. |
219 (1.7%) | 207M | 8,852 | MIT |
| urllib3 pypi HTTP client with thread-safe connection pooling, file uploads and advanced features. |
193 (1.5%) | 338M | 4,071 | — |
| AnyIO pypi Async I/O framework supporting both asyncio and Trio with high-level networking abstractions. |
186 (1.5%) | 206M | 2,555 | — |