modelhub

module
v0.2.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2026 License: MIT

README

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

Directories

Path Synopsis
cmd
modelhub command
ModelHub CLI — browse AI model pricing, capabilities, and benchmarks.
ModelHub CLI — browse AI model pricing, capabilities, and benchmarks.
internal
cache
Package cache provides a JSON-file persistence layer.
Package cache provides a JSON-file persistence layer.
fetch
Package fetch handles fetching and parsing data from all sources.
Package fetch handles fetching and parsing data from all sources.
model
Package model defines the unified data model for all AI model sources.
Package model defines the unified data model for all AI model sources.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL