# Iron Session — card for AI agents

Secure, stateless cookie-based session library with encryption.

Category: Auth and security libraries · npm package `iron-session` · latest version 9.0.1 (checked 2026-11-04)
Install: `npm install iron-session`
License: MIT (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Numbers (AgentGid data)
- Gid Score: 53.3 (#1618 of all tools, 56 of 141 in its category)
- Used in 6 public projects set up for AI coding agents (0.1%)
- Downloads last week: 3,899,201 (as of 2026-11-24), +50.5% over 4 weeks
- GitHub stars: 4,156 (as of 2026-11-24)
- Last push: 2026-11-23

## Often used with
clsx 83.3%, Class Variance Authority 77.8%, Tailwind Merge 77.8%, Next.js 77.8%, React 94.4%, next-themes 66.7%

## Checked alternatives (same job)
- NextAuth.js: https://agentgid.com/tools/next-auth/agent.md
- Better Auth: https://agentgid.com/tools/better-auth/agent.md
- Clerk: https://agentgid.com/tools/clerk/agent.md
- Passport.js: https://agentgid.com/tools/passport/agent.md

## Links
- AgentGid page: https://agentgid.com/tools/iron-session/
- Repository: https://github.com/vvo/iron-session

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
