Used in agent projects
128
1.0% of 12,697 public repos built with AI coding agents
Rank in auth and security libraries
#6 of 47
by use in those projects
Downloads
154M
PyPI, last 7 days, pyjwt
GitHub stars
5,714
last push Oct 6, 2026
How PyJWT is used
PyJWT is a dependency in 128 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (1.0%), #6 of 47 in auth and security libraries. The most used alternative there is NextAuth.js. Projects that use it most often also use python-dotenv (71.9%), Pydantic (71.1%), Uvicorn (65.6%).
Often used with PyJWT
| python-dotenv | 71.9% of PyJWT projects · 11.0× more than average |
|---|---|
| Pydantic | 71.1% of PyJWT projects · 13.9× more than average |
| Uvicorn | 65.6% of PyJWT projects · 15.3× more than average |
| Requests | 63.3% of PyJWT projects · 11.9× more than average |
| FastAPI | 60.9% of PyJWT projects · 14.4× more than average |
| cryptography | 53.1% of PyJWT projects · 31.7× more than average |
| python-multipart | 52.3% of PyJWT projects · 30.6× more than average |
| PyYAML | 47.7% of PyJWT projects · 15.7× more than average |
By coding agent
| GitHub Copilot | 2.2% of projects set up for it |
|---|---|
| Claude Code | 1.8% of projects set up for it |
| Cursor | 1.9% of projects set up for it |
Share of public repos configured for each agent that list PyJWT as a dependency.
Install
| Package | pip install pyjwt |
|---|---|
| Main stacks | Python (123), Next.js (4), Other (1) |
| Example projects | Josh-XT/AGiXT, twjackysu/TWSEMCPServer, DelineaXPM/delinea-mcp, micheltlutz/dev-challenge, RoboFinSystems/robosystems |
Alternatives to PyJWT
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| NextAuth.js npm Complete open-source authentication solution designed for Next.js applications. |
266 (2.1%) | 6.7M | 28.4K | ISC |
| bcryptjs npm Pure JavaScript bcrypt implementation for secure password hashing without dependencies. |
256 (2.0%) | 14.7M | 3,797 | BSD-3-Clause |
| jsonwebtoken npm Create, verify and decode JSON Web Tokens for authentication and secure data transmission. |
241 (1.9%) | 59.3M | 18.2K | MIT |
| cryptography pypi Python library providing cryptographic recipes and primitives for secure applications. |
213 (1.7%) | 281M | 7,803 | — |
| jose npm Comprehensive JWT and JWK handling for Node.js and web runtimes. |
141 (1.1%) | 151M | 7,824 | MIT |
| Better Auth npm Comprehensive authentication framework for TypeScript with multiple strategies. |
126 (1.0%) | 11.4M | 30.2K | MIT |
| Helmet npm Express middleware that sets HTTP security headers to prevent vulnerabilities. |
125 (1.0%) | 16.2M | 10.7K | MIT |
| Privy Auth npm React authentication SDK enabling Web2 and Web3 logins with embedded wallets. |
107 (0.8%) | 430K | — | Apache-2.0 |