Skip to content
Agents tracked: 378 Downloads (7d): 244M down 5.7% GitHub stars: 8.4M VS Code installs: 151M Releases (7d): 407 Agent status: 1 with issues Updated Oct 10, 2026

AnyIO

Async I/O framework supporting both asyncio and Trio with high-level networking abstractions.

HTTP clients and networking PyPI

Used in agent projects
186
1.5% of 12,697 public repos built with AI coding agents
Rank in http clients and networking
#9 of 29
by use in those projects
Downloads
206M
PyPI, last 7 days, anyio
GitHub stars
2,555
last push Oct 10, 2026

How AnyIO is used

AnyIO is a dependency in 186 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (1.5%), #9 of 29 in http clients and networking. The most used alternative there is Axios. Projects that use it most often also use Requests (78.0%), websockets (76.3%), urllib3 (74.2%).

Often used with AnyIO

Requests78.0% of AnyIO projects · 14.7× more than average
websockets76.3% of AnyIO projects · 33.9× more than average
urllib374.2% of AnyIO projects · 48.8× more than average
charset-normalizer71.5% of AnyIO projects · 57.5× more than average
Pydantic66.7% of AnyIO projects · 13.0× more than average

By coding agent

GitHub Copilot1.6% of projects set up for it
Claude Code1.3% of projects set up for it
Cursor1.2% of projects set up for it

Share of public repos configured for each agent that list AnyIO as a dependency.

Install

Packagepip install anyio
Main stacksPython (181), Next.js (4), Other (1)
Example projectssolana-developers/solana-cookbook, henrytirla/Solana-Trading-Bot, twjackysu/TWSEMCPServer, lorenzourera/solana-auto-sell-bot, sweetcornna/free-search-mcp

Alternatives to AnyIO

All http clients and networking

Tool Used in agent projectsDownloads / wk GitHub starsLicense
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
aiohttp pypi
Async HTTP client/server framework for Python with WebSocket support.
295 (2.3%) 117M 16.6K —
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 —
Is AnyIO right for your project? Ask AgentGid →