npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

opencode-model-updater

v1.3.0

Published

CLI tool to auto-generate OpenCode configuration by fetching models from providers

Readme

OpenCode Model Updater

npm version

CLI tool that automatically fetches and updates OpenCode configuration with the latest models from supported providers.

New models added to provider APIs can take time to appear in models.dev. This tool automatically syncs all available models from your chosen providers and updates opencode.json instantly—enabling you to use any model immediately without waiting.

Features

  • Automatically updates all available models from 24 OpenAI-compatible providers
  • Updates or creates ~/.config/opencode/opencode.json with latest model data
  • Supports Windows, Linux, and macOS
  • Preserves existing provider configurations during updates
  • Creates automatic timestamped backups before each update
  • Removes auto-generated provider entries from config with --remove

Usage

npx opencode-model-updater [options]

Options

| Option | Default | Description | |---|---|---| | --provider <name> | all | Specific provider(s) to update (comma-separated names or all) | | --remove [names] | | Remove auto-generated provider entries (comma-separated names, or omit to remove all) | | --version | | Display version number | | --help | | Show help message | | --list | | List all available providers |

Supported Providers

| Provider | Description | |---|---| | openrouter | OpenRouter - Access 600+ LLMs through a single API | | aihubmix | AIHubMix - Multi-provider model gateway with 600+ models | | ollamacloud | Ollama Cloud - Run open-source models on your own cloud | | nvidia | Nvidia - Nvidia NIM models | | abacus | Abacus - Abacus AI models | | novita-ai | Novita AI - Fast and affordable AI inference | | chutes | Chutes AI - AI model infrastructure | | cortecs | Cortecs AI - AI inference platform | | moark | Moark - AI model marketplace | | helicone | Helicone - AI observability and model gateway | | huggingface | Hugging Face - Open AI model hub | | fastrouter | FastRouter - Fast AI routing | | inception | Inception Labs - AI inference | | zenmux | Zenmux - AI model multiplexing | | ovhcloud | OVH Cloud - Cloud AI inference | | synthetic | Synthetic AI - AI model services | | nano-gpt | NanoGPT - Lightweight GPT models | | requesty | Requesty - AI request routing | | friendli | Friendli - AI inference engine | | io-net | IO.NET - Distributed GPU computing | | modelscope | ModelScope - AI model hub (China) | | poe | Poe - AI chatbot platform | | opencode-zen | OpenCode Zen - OpenCode Zen AI | | deep-infra | Deep Infra - AI model hosting |

Examples

Update configuration with all providers:

npx opencode-model-updater

Update only OpenRouter provider:

npx opencode-model-updater --provider openrouter

Update only AIHubMix provider:

npx opencode-model-updater --provider aihubmix

Update multiple specific providers:

npx opencode-model-updater --provider openrouter,aihubmix

List all available providers:

npx opencode-model-updater --list

Remove all auto-generated provider entries from config:

npx opencode-model-updater --remove

Remove specific auto-generated providers from config:

npx opencode-model-updater --remove openrouter,aihubmix

Generated Config Example

The tool creates provider entries in your OpenCode configuration with all available models:

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "your-existing-provider": { "..." : "preserved" },
    "openrouter-auto-generated": {
      "name": "OpenRouter Auto Generated",
      "options": {
        "baseURL": "https://openrouter.ai/api/v1",
        "apiKey": "your-api-key"
      },
      "models": {
        "openai/gpt-4o": { "name": "GPT-4o" },
        "anthropic/claude-sonnet-4": { "name": "Claude Sonnet 4" }
      }
    }
  }
}

License

MIT