Skip to content

jelloeater-agent/modelhub

Repository files navigation

ModelHub

Test coverage Go Report Card Libraries.io dependency status for GitHub repo

GitHub Downloads (all assets, all releases) GitHub Release GitHub go.mod Go version GitHub Release Date

AI model pricing, capabilities, and benchmarks — from Bifrost, models.dev, and Artificial Analysis. Zero dependencies.

Install

go install github.com/jelloeater-agent/modelhub/cmd/modelhub@latest

Or grab a binary from releases.

Usage

modelhub refresh           Fetch latest data from all sources
modelhub list [--table]    List models (JSON default)
modelhub show <id>         Show a single model (JSON)
modelhub stats             Aggregate statistics (JSON + summary)

Examples

# Refresh data
modelhub refresh

# Pipe JSON to jq for any query
modelhub list | jq '.[] | select(.provider=="openai") | .name'
modelhub list | jq '.[] | select(.context_window > 128000 and .input_price_per_1m < 1)'
modelhub list | jq '.[] | select(.supports_vision) | .id'

# Quick visual scan
modelhub list --table
modelhub list --table | grep gpt-4

# Single model details
modelhub show openai/gpt-4o | jq .context_window

# Stats
modelhub stats

# Search interactively with fzf
modelhub list | jq -r '.[].id' | fzf --preview 'modelhub show {}'

Config

Set AA_API_KEY env var for Artificial Analysis benchmarks (optional):

export AA_API_KEY=your_key_here

Or create ~/.modelhub/config.json:

{
  "aa_api_key": "your_key_here"
}

Build

go build ./cmd/modelhub

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages