Convert models.dev API data into various configuration formats (crush, goose, vibe).
This tool is to help support models in different tools that otherwise make it more difficult to load up custom providers.
bun installFetch the latest api.json from models.dev:
bun run downloadbun run convert <provider> --format <format>Supported formats:
crush- JSON format for Crush configurationgoose- JSON format for Goose AI configurationvibe- TOML format for Vibe configuration
Examples:
# Convert OpenAI to crush format
bun run convert openai --format crush
# Convert ZenMux to goose format
bun run convert zenmux --format goose
# Convert Hugging Face to vibe format
bun run convert huggingface --format vibe# Type check
bun run typecheck
# Format code with Biome
bun run format
# Run tests
bun testsrc/convert.ts- Main CLI entry pointsrc/formats/- Format converterscrush.ts- Crush JSON formatgoose.ts- Goose JSON formatvibe.ts- Vibe TOML formattypes.ts- Shared type definitions
Private