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

@pandada8/opencode-axonhub

v0.2.5

Published

OpenCode plugin for discovering AxonHub models

Readme

@pandada8/opencode-axonhub

OpenCode plugin that discovers AxonHub models from /v1/models and /v1/models?include=all, merges both responses, and exposes them as the axonhub provider.

Models are cached at ~/.cache/opencode/axonhub-models.json for one day. If no API key is configured, discovery returns no models.

By default, discovered AxonHub models are enriched from OpenCode's default model cache at ~/.cache/opencode/models.json. The plugin matches entries by model id and uses the cached metadata to fill OpenCode-specific fields such as family, capabilities, modalities, cost, limits, provider package, headers, options, and variants. AxonHub still provides the actual api.id and AxonHub endpoint URL used for requests.

If the matched OpenCode metadata defines experimental.modes, the plugin also exposes those modes as separate models with the mode suffix. For example, when OpenCode's cache defines a fast mode for gpt-5.4, gpt-5.5, or gpt-5.4-mini, AxonHub will expose both the base model and the corresponding gpt-5.4-fast, gpt-5.5-fast, or gpt-5.4-mini-fast model.

API keys can be stored with OpenCode auth as provider axonhub; on Linux this is written to ~/.local/share/opencode/auth.json.

Usage

Add the axonhub provider to opencode.jsonc before logging in or fetching models. Without this provider entry, OpenCode cannot discover the AxonHub model list.

{
  "plugin": ["@pandada8/opencode-axonhub"],
  "provider": {
    "axonhub": {
      "options": {
        "baseURL": "https://your-axonhub.example.com"
      },
      "models": {}
    }
  }
}

To disable enrichment from ~/.cache/opencode/models.json, pass plugin options with enrichModels set to false:

{
  "plugin": [["@pandada8/opencode-axonhub", { "enrichModels": false }]],
  "provider": {
    "axonhub": {
      "options": {
        "baseURL": "https://your-axonhub.example.com"
      },
      "models": {}
    }
  }
}

When enrichModels is disabled, the plugin only uses AxonHub's model responses and does not create experimental.modes derived models such as *-fast.

Then store the API key with OpenCode:

opencode auth login --provider axonhub

You can also set provider.axonhub.options.apiKey directly, for example with {env:AXONHUB_API_KEY}.

Or manually edit ~/.local/share/opencode/auth.json:

{
  "axonhub": {
    "type": "api",
    "key": "ah-your-api-key"
  }
}

If the file already contains other providers, add axonhub as another top-level key. Keep the file private:

chmod 600 ~/.local/share/opencode/auth.json

OpenAI-owned models use @ai-sdk/openai against the AxonHub /v1 endpoint. All other models use @ai-sdk/anthropic against the AxonHub /anthropic/v1 endpoint.