azure-identity
Microsoft Azure identity authentication library for Python.
Used in agent projects
43
0.3% of 12,697 public repos built with AI coding agents
Rank in auth and security libraries
#26 of 47
by use in those projects
Downloads
29.2M
PyPI, last 7 days, azure-identity
GitHub stars
5,614
last push Oct 10, 2026
How azure-identity is used
azure-identity is a dependency in 43 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (0.3%), #26 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 (76.7%), Pydantic (48.8%), OpenAI Python Library (41.9%).
Often used with azure-identity
| python-dotenv | 76.7% of azure-identity projects · 11.8× more than average |
|---|---|
| Pydantic | 48.8% of azure-identity projects · 9.6× more than average |
| OpenAI Python Library | 41.9% of azure-identity projects · 21.8× more than average |
| Uvicorn | 39.5% of azure-identity projects · 9.2× more than average |
| FastAPI | 37.2% of azure-identity projects · 8.8× more than average |
| pandas | 34.9% of azure-identity projects · 11.6× more than average |
| Requests | 34.9% of azure-identity projects · 6.6× more than average |
| PyYAML | 32.6% of azure-identity projects · 10.7× more than average |
By coding agent
| GitHub Copilot | 1.1% of projects set up for it |
|---|---|
| Claude Code | 0.4% of projects set up for it |
| Cursor | 0.3% of projects set up for it |
Share of public repos configured for each agent that list azure-identity as a dependency.
Install
| Package | pip install azure-identity |
|---|---|
| Main stacks | Python (42), Next.js (1) |
| Example projects | learntocloud/learn-to-cloud-app, Azure-Samples/python-mcp-demos, microsoft/spec-to-agents, jacwu/github-materials, leestott/On-Call-Copilot-Multi-Agent |
Alternatives to azure-identity
| 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 |
| PyJWT pypi Python library for encoding and decoding JSON Web Tokens. |
128 (1.0%) | 154M | 5,714 | — |
| 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 |