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

@inferhub/helper

v0.2.9

Published

Point coding agents and IDEs at InferHub — Claude Code, Codex, OpenCode, Hermes, OpenClaw, and more. Optionally install usage statusline plugins.

Readme

@inferhub/helper

Point coding agents and IDEs at InferHub with one command.

You only enter your InferHub API key. The helper validates it against
GET https://api.inferhub.dev/v1/models, then writes the right config files for each agent.

Works on Windows, macOS, and Linux (Node.js ≥ 18).

Install

# one-shot
npx @inferhub/helper

# or global
npm install -g @inferhub/helper
inferhub-helper

Also available as ih-helper.

Quick start

inferhub-helper

Interactive wizard (default):

  1. API key — masked input, validated against GET /v1/models (retry on failure)
  2. Agents / IDEs — multi-select checklist (space to toggle, enter to confirm)
  3. Models — type-to-search picker (filters the live model list)
  4. Confirm — summary, then write configs

Non-interactive:

inferhub-helper apply \
  --key sk-airo-… \
  --model grok-4.5 \
  --agents claude,opencode \
  --yes

Commands

| Command | Description | |---|---| | inferhub-helper / setup | Interactive wizard (default) | | apply | Non-interactive apply (--key + --model) | | status | Show which agents are installed / configured | | reset | Remove InferHub settings only | | validate --key … | Call /v1/models and print models | | list | Supported agents | | plugins | Install usage plugins (Claude statusline, OpenCode plugin) |

Flags

| Flag | Meaning | |---|---| | --key, -k | InferHub API key (INFERHUB_API_KEY env also works) | | --base-url | Default https://api.inferhub.dev/v1 | | --model, -m | Primary model id | | --subagent-model | Codex / OpenCode subagent model | | --models | Extra model ids (OpenCode, OpenClaw) | | --agents | installed (default), all, or claude,codex,… | | --dry-run | Don’t write files | | --yes, -y | Skip prompts | | --json | Machine-readable output | | --plugins | Install usage plugins (all or claude,opencode) | | --no-plugins | Skip usage-plugin install during apply/wizard |

Usage plugins

# install statusline / hooks for Claude, Codex, OpenCode
inferhub-helper plugins --plugins all

# or as part of apply
inferhub-helper apply -k sk-airo-… -m free/grok/grok-4.5 --agents claude,opencode -y --plugins all

Requires live GET https://api.inferhub.dev/v1/me/usage. Publishes bins from @inferhub/usage-client:

  • inferhub-statusline — Claude Code statusLine.command
  • inferhub-usage — printable report / Codex hooks

Supported agents

| Id | Tool | Config written | |---|---|---| | claude | Claude Code | ~/.claude/settings.jsonenv.ANTHROPIC_BASE_URL + ANTHROPIC_AUTH_TOKEN | | codex | OpenAI Codex CLI | ~/.codex/config.toml provider inferhub (wire_api = "responses") + auth.json | | opencode | OpenCode | ~/.config/opencode/opencode.json provider inferhub (@ai-sdk/openai-compatible) | | hermes | Hermes Agent | ~/.hermes/config.yaml model.provider: custom + .env OPENAI_API_KEY | | openclaw | OpenClaw | ~/.openclaw/openclaw.json models.providers.inferhub | | cline | Cline | ~/.cline/data/globalState.json + secrets.json (OpenAI-compatible) |

Existing settings are merged, not replaced. A .inferhub-backup copy is written next to each modified file.

Programmatic API

import {
  validateApiKey,
  applyToAgents,
  statusAll,
  DEFAULT_BASE_URL,
} from "@inferhub/helper";

const v = await validateApiKey({ apiKey: process.env.INFERHUB_API_KEY! });
if (!v.ok) throw new Error(v.error);

await applyToAgents("installed", {
  apiKey: process.env.INFERHUB_API_KEY!,
  model: v.models[0]!.id,
  baseUrl: DEFAULT_BASE_URL,
});

console.log(await statusAll());

Endpoint

InferHub public API:

  • OpenAI-compatible: https://api.inferhub.dev/v1/chat/completions, /v1/responses, /v1/models
  • Anthropic-compatible: https://api.inferhub.dev/v1/messages

Create a key at inferhub.dev → Dashboard → API Keys.

License

MIT