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

coderouter

v0.0.5

Published

Route between AI coding CLIs. One command, any provider.

Downloads

53

Readme

coderouter

cr claude.aws --dangerously-skip-permissions "fix the tests"

Route between AI coding CLIs. One command, any provider.


The Problem

You have claude, opencode, codex, gemini installed. Each needs different env vars for different providers. AWS Bedrock wants CLAUDE_CODE_USE_BEDROCK=1. Vertex wants CLAUDE_CODE_USE_VERTEX=1. OpenRouter wants ANTHROPIC_BASE_URL. You're tired of shell aliases and .envrc files scattered everywhere.

The Solution

cr <scaffold>.<variant> [args...]

That's it. coderouter injects the right env vars and runs the command. All your args pass through untouched.


Install

npm install -g coderouter

The CLIs themselves (claude, opencode, codex, gemini) are not included - install them separately.


Usage

Claude Code

cr claude.aws           # AWS Bedrock
cr claude.vertex        # Google Cloud Vertex AI
cr claude.azure         # Microsoft Azure Foundry
cr claude.glm           # Z.AI GLM-4.7
cr claude.minimax       # MiniMax M2.1
cr claude.kimi          # Moonshot Kimi K2
cr claude.openrouter    # OpenRouter
cr claude               # No env injection, just run claude

Pass any flags through:

cr claude.aws --dangerously-skip-permissions
cr claude.vertex --model claude-opus-4-20250514
cr claude.glm "refactor the auth module"

OpenCode

coderouter manages vanilla vs oh-my-opencode via separate config directories:

cr opencode        # vanilla opencode
cr opencode.omoc   # oh-my-opencode

Codex

cr codex           # just runs codex

Gemini

cr gemini          # default model
cr gemini.pro      # gemini-2.5-pro
cr gemini.flash    # gemini-2.5-flash

Variants

| Target | What it does | Required env var | |--------|-------------|------------------| | claude.aws | AWS Bedrock with Opus 4.5 | AWS credentials | | claude.vertex | Google Cloud Vertex AI (Opus) | ANTHROPIC_VERTEX_PROJECT_ID | | claude.azure | Microsoft Azure Foundry | ANTHROPIC_FOUNDRY_RESOURCE | | claude.glm | Z.AI GLM-4.7 | ANTHROPIC_AUTH_TOKEN | | claude.minimax | MiniMax M2.1 | ANTHROPIC_AUTH_TOKEN | | claude.kimi | Moonshot Kimi K2 | ANTHROPIC_AUTH_TOKEN | | claude.openrouter | OpenRouter API | ANTHROPIC_API_KEY | | opencode.omoc | oh-my-opencode (via XDG_CONFIG_HOME) | - | | gemini.pro | Gemini Pro model | - | | gemini.flash | Gemini Flash model | - |


Commands

cr auth           # List auth targets
cr auth <target>  # Set up API key for a target
cr setup          # Interactive setup wizard
cr list           # Show all scaffolds and variants
cr --help         # Usage info

Config

User config lives at ~/.config/coderouter/config.json. Override built-in variants or add your own.

OpenCode configs are managed at:

  • ~/.config/coderouter/opencode-vanilla/
  • ~/.config/coderouter/opencode-omoc/

How It Works

  1. Parse scaffold.variant from first arg
  2. Look up variant config (builtin or user-defined)
  3. Inject env vars
  4. Spawn the scaffold CLI with remaining args
  5. Pass through stdio, exit with same code

For opencode, we set XDG_CONFIG_HOME to switch between vanilla and oh-my-opencode configs. The opencode binary is the same - only the config directory changes.


Why

Because export CLAUDE_CODE_USE_BEDROCK=1 && claude gets old fast.

Because you want to test the same prompt against AWS, Vertex, and direct API without three terminal tabs.

Because your .zshrc shouldn't be 200 lines of AI CLI aliases.


License

MIT