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

elizaos-plugin-bitrouter

v0.1.0

Published

elizaOS LLM provider plugin that routes model calls through BitRouter.

Readme

elizaos-plugin-bitrouter

An elizaOS LLM provider plugin that routes an agent's model calls through a running BitRouter instance via its OpenAI-compatible endpoint. BitRouter handles upstream routing, cascading, and load-balancing across providers.

Targets @elizaos/core@^2.0. Pure model provider: no actions, providers, services, or routes.

Install

bun add elizaos-plugin-bitrouter
# or: npm install elizaos-plugin-bitrouter

Configure

| Env var | Default | Notes | | --- | --- | --- | | BITROUTER_BASE_URL | http://127.0.0.1:4356 | BitRouter listen address | | BITROUTER_API_KEY | (none) | brvk_... virtual key; optional when BitRouter runs with skip_auth on localhost | | BITROUTER_SMALL_MODEL | gpt-4o-mini | SMALL tier model (bare name → BitRouter auto-cascade, or provider:model to pin) | | BITROUTER_LARGE_MODEL | gpt-4o | LARGE tier model | | BITROUTER_NANO_MODEL | → SMALL | NANO tier | | BITROUTER_MEDIUM_MODEL | → SMALL | MEDIUM tier | | BITROUTER_MEGA_MODEL | → LARGE | MEGA tier | | BITROUTER_RESPONSE_HANDLER_MODEL | → LARGE | RESPONSE_HANDLER tier | | BITROUTER_ACTION_PLANNER_MODEL | → LARGE | ACTION_PLANNER tier | | BITROUTER_PRIORITY | 0 | raise to make BitRouter outrank other registered model providers | | BITROUTER_STRUCTURED_OUTPUTS | false | true/1/yes advertises strict json_schema structured output. Off by default for compatibility across mixed upstreams; enable only when your routed models support it. Strict mode requires responseSchema objects to set additionalProperties: false (and list all keys in required) |

Auto-enable: the plugin auto-enables when either BITROUTER_API_KEY or BITROUTER_BASE_URL is set — so a localhost skip_auth setup (no key) just needs BITROUTER_BASE_URL.

Usage

import bitrouterPlugin from "elizaos-plugin-bitrouter";

export const character = {
  name: "Agent",
  plugins: [bitrouterPlugin],
};

With autoEnable, the plugin activates automatically when BITROUTER_API_KEY is set.

Supported model types

Text generation: TEXT_NANO, TEXT_SMALL, TEXT_MEDIUM, TEXT_LARGE, TEXT_MEGA, RESPONSE_HANDLER, ACTION_PLANNER.

Structured output is produced through these same text models: when a call includes a responseSchema, the handler uses the model's structured-generation path and returns a JSON string. (elizaOS 2.0 removed the standalone OBJECT_* model types.)

Embeddings, vision, image generation, transcription, and TTS are not provided — BitRouter is completions-only. Pair a separate embeddings plugin for RAG/memory.

Development

bun install
bun test         # unit tests (vitest)
bun run typecheck
bun run build    # emits dist/

License

MIT