modelinfo is a Bun-first TypeScript CLI for exploring AI model metadata from PublicProviderConf. It keeps a local normalized index for fast lookups, ships with a bundled seed dataset so a fresh install can work offline, and refreshes from upstream when the version file changes.
Links:
- npm package: modelinfo
- Web version: models.anya2a.com
- Source: zerob13/modelinfo-cli
- Fast default lookup with local normalized index
- Fuzzy search across models and providers
- Provider listing and per-provider model listing
- Side-by-side model diff
- Focused capability, cost, and limit views
- Local cache with bundled seed files
- Auto refresh using the upstream version file
- Bun 1.0+
- Node.js 20+ for running the published CLI package
Install globally:
npm install -g modelinfoOr run without installing:
bunx modelinfo gpt-4o
# or
npx modelinfo gpt-4oFor local development:
bun installUse with AI coding agents (Claude Code, Cursor, Codex, etc.):
npx skills add zerob13/modelinfo-cliSee skills.sh for more information.
bun run build:seed
bun run build
bun run dev -- --help
bun run test
bun run lintThe first local cache is copied from the packaged seed/ directory into ~/.modelinfo/. After that, modelinfo uses ~/.modelinfo/index.json for normal reads and checks the remote version file periodically.
modelinfo gpt-4o
modelinfo search qwen
modelinfo providers
modelinfo list 302ai
modelinfo diff gpt-4o gpt-4
modelinfo caps gpt-4o
modelinfo cost gpt-4o
modelinfo limit gpt-4o
modelinfo update
modelinfo doctor
modelinfo gpt-4o --output jsonIf you prefer the web UI for the same dataset, use models.anya2a.com.
Most model commands accept --provider to narrow duplicate model ids:
modelinfo gpt-4o --provider openai
modelinfo search gpt --provider openrouter
modelinfo cost gpt-4o --provider openai
modelinfo diff gpt-4o gpt-4.1 --provider-a openai --provider-b openai
modelinfo search qwen --provider openrouter --output json~/.modelinfo/
all.json
version.json
index.json
Bundled seed files are published inside the npm package:
seed/
all.json
version.json
index.json
modelinfo <model>: resolve and show a modelmodelinfo search <keyword>: fuzzy search modelsmodelinfo providers: list providersmodelinfo list <provider>: list models under a providermodelinfo update: refresh local cache if upstream changedmodelinfo diff <modelA> <modelB>: compare two modelsmodelinfo caps <model>: show capabilities onlymodelinfo cost <model>: show pricing onlymodelinfo limit <model>: show token limits onlymodelinfo doctor: show cache and version status
bun releasebun release is an interactive release flow. It lets you choose the next version, publish to latest or beta, runs checks, creates a release commit and git tag, then publishes to npm.
For a manual publish without the helper:
bun run build:seed
bun run build
npm publishprepack already runs the seed build and TypeScript build, so a regular npm publish includes dist/ and seed/.
This repository includes GitHub Actions for CI and automated releases:
CI: runs format check, lint, test, and build on pushes and pull requestsRelease Please: watches commits onmaster, opens or updates a release PR, and automatically bumps the version once the release PR is merged- npm publish runs automatically after a release is created
Required GitHub secret:
NPM_TOKEN: npm automation token with publish permission formodelinfo
Recommended commit style:
feat: add provider aliasesfix: handle missing cache versionchore: update dependencies