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

@nesbes/claudebridge

v2.1.0

Published

Any model. Any provider. One bridge to Claude Code. Smart routing, cost tracking, fallback chains, profiles, caching, and $$ live switching.

Readme

   ██████╗██╗      █████╗ ██╗   ██╗██████╗ ███████╗
  ██╔════╝██║     ██╔══██╗██║   ██║██╔══██╗██╔════╝
  ██║     ██║     ███████║██║   ██║██║  ██║█████╗  
  ██║     ██║     ██╔══██║██║   ██║██║  ██║██╔══╝  
  ╚██████╗███████╗██║  ██║╚██████╔╝██████╔╝███████╗
   ╚═════╝╚══════╝╚═╝  ╚═╝ ╚═════╝ ╚═════╝ ╚══════╝
  ██████╗ ██████╗ ██╗██████╗  ██████╗ ███████╗
  ██╔══██╗██╔══██╗██║██╔══██╗██╔════╝ ██╔════╝
  ██████╔╝██████╔╝██║██║  ██║██║  ███╗█████╗  
  ██╔══██╗██╔══██╗██║██║  ██║██║   ██║██╔══╝  
  ██████╔╝██║  ██║██║██████╔╝╚██████╔╝███████╗
  ╚═════╝ ╚═╝  ╚═╝╚═╝╚═════╝  ╚═════╝ ╚══════╝

claudebridge allows you to use Claude Code with any OpenAI-compatible provider. It features smart routing, cost tracking, fallback chains, and live model switching via $$ commands.

Features

  • Zero-Config Setup: Automatic wizard guides you through provider selection.
  • Live Switching: Switch models instantly without restarting via $$ commands.
  • Smart Routing: Automatically detects task types (coding, reasoning, creative) and routes to the best model.
  • Cost Tracking: Real-time session cost and token usage monitoring.
  • Fallback Chains: Automatic failover to backup providers if the primary one fails.
  • Response Caching: Caches identical requests to save costs and reduce latency.
  • Cross-Platform: Full support for macOS, Linux, and Windows.

Installation

Install globally using npm:

npm install -g @nesbes/claudebridge

Or run directly with npx:

npx @nesbes/claudebridge

Note: Requires Node.js 18 or higher.

Quick Start

  1. Setup: Run the interactive wizard to configure your provider.

    claudebridge --wizard
  2. Launch: Start the bridge.

    claudebridge
  3. Use: Inside Claude Code, use $$ commands to control the bridge.

    $$groq          # Switch to Groq
    $$deepseek      # Switch to DeepSeek
    $$cost          # View session costs
    $$status        # View bridge status

Advanced Usage

Live Model Switching

Switch models on the fly directly from the Claude Code interface:

| Command | Description | |---------|-------------| | $$groq | Switch to Groq (fast inference) | | $$ollama | Switch to local Ollama instance | | $$deepseek | Switch to DeepSeek | | $$openrouter | Switch to OpenRouter | | $$model:gpt-4o | Change specific model ID | | $$status | Show full status dashboard | | $$cost | Show detailed cost breakdown | | $$help | List all available commands |

Smart Auto-Routing

Enable smart routing to automatically direct specialized tasks to the most appropriate model:

claudebridge --enable-routing

| Task Type | Detected Keywords | routed To | |-----------|-------------------|-----------| | Thinking | math, logic, reasoning | DeepSeek Reasoner | | Coding | code, debug, refactor | DeepSeek, Fireworks | | Quick | short questions | Groq, Cerebras | | Creative | writing, brainstorming | OpenAI, Mistral | | Context | large files, summaries | DeepInfra, Together |

Fallback Chains

Configure a chain of providers to ensure reliability. If the primary provider fails, the bridge automatically retries with the next in line.

claudebridge --enable-fallback --fallback-chain groq,deepseek,openai

Local Models

Easily connect to local inference servers:

  • Ollama: $$ollama (port 11434)
  • LM Studio: $$lmstudio (port 1234)
  • Jan: $$jan (port 1337)
  • vLLM: $$vllm (port 8000)

CLI Reference

Usage: claudebridge [options]

Options:
  --wizard                Run interactive setup wizard
  --doctor                Run diagnostics
  --profile <name>        Use a saved profile preset
  --stats                 Show session statistics
  --no-claude             Run in bridge-only mode
  --verbose               Enable verbose logging
  --help                  Show help

Security

  • API keys are stored with restricted permissions (chmod 600).
  • Keys can be read from environment variables (--api-key-env).
  • Bridge logs are hidden by default.
  • Configuration files exclude sensitive data.

License

MIT