Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

cosmiconfig

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

Dev workflow and configNPM

GitHubWebsite

1. License

License from npm.

github.com/cosmiconfig/cosmiconfig

From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error

What cosmiconfig does

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

cosmiconfig popularity

59 / 100
Gid Score, #1118 overall
179M
downloads a week, npm
4,172
GitHub stars
2
agent projects use it
cosmiconfig: downloads per weeknpm, cosmiconfig 179,222,993
cosmiconfig: GitHub starscosmiconfig/cosmiconfig 4,172

Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated

How cosmiconfig is used

  • cosmiconfig joined the catalog on its public numbers (179,222,993 downloads a week on npm and 4,172 GitHub stars), not on our project count: it is a dependency in 11 public GitHub projects of our scan, 2 of them set up for AI coding agents.
  • Projects that use it most often also use chalk (54.5%), Commander (54.5%), glob (54.5%).

Often used with

In 54.5% of its projects
In 54.5% of its projects
In 54.5% of its projects
In 54.5% of its projects
In 54.5% of its projects
In 36.4% of its projects
In 36.4% of its projects
In 36.4% of its projects

More about cosmiconfig

Funding
  • GitHub Sponsors: https://github.com/d-fischer
  • Own page: https://paypal.me/dfischerdev
  • 4 GitHub sponsors

See all

More in Dev workflow and config

Alternatives

cosmiconfig This page

MITGid 59179M/wk

Compare cosmiconfig with another tool

Get started

Install it.

npm install cosmiconfig

No step-by-step start for cosmiconfig yet: we have not written its hand-checked card.