# cosmiconfig — card for AI agents

Finds and loads a tool's config from package.json, rc files or JS/TS config modules.

Category: Dev workflow and config · npm package `cosmiconfig` · latest version 10.0.1 (checked 2026-11-01)
Install: `npm install cosmiconfig`
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: 58.8 (#1118 of all tools, 84 of 299 in its category)
- Used in 2 public projects set up for AI coding agents (0.0%)
- Downloads last week: 179,222,993 (as of 2026-11-24), +36.3% over 4 weeks
- GitHub stars: 4,172 (as of 2026-11-24)
- Last push: 2026-11-22

## Often used with
chalk 54.5%, Commander 54.5%, glob 54.5%, tsx 54.5%, dotenv 54.5%, debug 36.4%

## Links
- AgentGid page: https://agentgid.com/tools/cosmiconfig/
- Homepage: https://github.com/cosmiconfig/cosmiconfig#readme
- Repository: https://github.com/cosmiconfig/cosmiconfig

---
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.
