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

@srnoob2570/opencode-commandcode

v0.2.0

Published

opencode 2.x plugin: complete Command Code model catalog with live availability, limits, efforts and pricing

Readme

opencode-commandcode

OpenCode builds its model catalog from models.dev, which trails Command Code's registry: new models (Ultrafast, for example) are usable through the API before they show up in the picker, and output limits, reasoning efforts and prices arrive later or incomplete.

This plugin takes ownership of the commandcode provider's model set and fills it with the live registry plus a bundled snapshot of that metadata.

Install

  1. Configure the Command Code provider in OpenCode, either with opencode auth login or by exporting CMD_API_KEY.

  2. Add the plugin:

    opencode plugin add @srnoob2570/opencode-commandcode
  3. Pick a model. The list now includes the full live catalog, e.g. deepseek/deepseek-v4.1-flash-ultrafast.

No restart is needed after the plugin is registered.

What it changes

  • New models appear on day one. The live registry decides which models exist, so anything Command Code serves is selectable.
  • Complete limits and efforts. Context and output limits come from the live entry and the snapshot; every model exposes the same four reasoning levels: off, low, high and max.
  • Real prices. Input, output, cache read/write and context tiers are mapped to OpenCode's cost model.
  • Claude on the right route. Claude models only answer on /messages, so they are assigned the Anthropic runtime package per model; everything else stays on the OpenAI-compatible package.

How it works

On boot the plugin calls the public GET /provider/v1/models endpoint (no credentials needed), then merges the result with plugin/snapshot.ts:

  • The live registry defines the set: delisted models disappear, unknown ids are added with conservative defaults (32k output, text only, no price).
  • The snapshot only enriches known ids: output limits, vision, efforts, prices, release dates.
  • If the request fails, the snapshot serves the whole catalog.
  • If the provider is not configured, the transform is never registered and the models.dev catalog stays untouched.

The snapshot is generated from three sources: the live registry, models.dev, and Command Code's own models reference. Regenerate it with bun run build:catalog.

Limitations

  • Between releases, the snapshot ages. New live models still appear, but without their price or output limit until the next catalog build.
  • The snapshot is metadata, not a guarantee: plans gate some models, and Command Code's pricing is the source of truth.
  • Only the public models endpoint is called. No prompt, key or account data leaves the machine.

Not affiliated with Command Code.

Development

bun install
bun test
bun run typecheck
bun run build:catalog   # rewrites plugin/snapshot.ts

MIT.