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

websockets

WebSocket implementation for Python with RFC 6455 and 7692 compliance.

HTTP clients and networking PyPI

Used in agent projects
286
2.3% of 12,697 public repos built with AI coding agents
Rank in http clients and networking
#5 of 29
by use in those projects
Downloads
109M
PyPI, last 7 days, websockets
GitHub stars
5,732
last push Oct 10, 2026

How websockets is used

websockets is a dependency in 286 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (2.3%), #5 of 29 in http clients and networking. The most used alternative there is Axios. Projects that use it most often also use Requests (68.5%), python-dotenv (65.0%), solders (58.7%). It is more common in projects set up for Roo Code (5.3%) than for GitHub Copilot (2.0%).

Often used with websockets

Requests68.5% of websockets projects · 12.9× more than average
python-dotenv65.0% of websockets projects · 10.0× more than average
solders58.7% of websockets projects · 17.6× more than average
Pydantic55.2% of websockets projects · 10.8× more than average
solana-py52.1% of websockets projects · 19.3× more than average
AnyIO49.7% of websockets projects · 33.9× more than average
aiohttp49.0% of websockets projects · 21.1× more than average

By coding agent

Claude Code2.1% of projects set up for it
GitHub Copilot2.0% of projects set up for it
Cursor2.1% of projects set up for it
Gemini CLI2.5% of projects set up for it
Devin Desktop3.6% of projects set up for it
OpenAI Codex2.0% of projects set up for it
Roo Code5.3% of projects set up for it

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

Install

Packagepip install websockets
Main stacksPython (280), Next.js (4), Other (2)
Example projectsdramaclaw/dramaclaw, solana-developers/solana-cookbook, daydreamlive/DEMON, henrytirla/Solana-Trading-Bot, bobmatnyc/claude-mpm

Alternatives to websockets

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
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 —
Is websockets right for your project? Ask AgentGid →