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

@happycastle/codex-litellm

v0.8.0

Published

Codex-compatible command wrapper for the happycastle114 LiteLLM plugin

Readme

@happycastle/codex-litellm

Thin Codex-focused wrapper for @happycastle/opencode-litellm. Defaults install to --target codex; everything else is forwarded to the core CLI.

환경별 설치 안내

Quick start

uv tool install 'litellm[cli]==1.101.0'
lite --version

# Install for Codex (interactive)
npx @happycastle/codex-litellm install

# Install for both Codex and OpenCode
npx @happycastle/codex-litellm install --target both

# Launch Codex with the installed config
npx @happycastle/codex-litellm codex

What it does

  • Prompts for LiteLLM gateway URL, auth (SSO or env key), and Codex mode (gateway, oauth, or both)
  • Discovers models, search tools, MCP servers, and toolsets
  • Writes a /model-compatible Codex catalog and enables native live web search
  • Refreshes gateway models and native per-model fields before each CLI launch; failed refresh stops the launch instead of using a stale catalog
  • Installs the shared research skill at ~/.agents/skills/litellm-research-router/

SSO uses the official lite login --pkce, lite auth print-token, and lite logout commands with the configured gateway URL. The official CLI owns renewal and OS keyring storage; ~/.litellm/token.json holds metadata, with owner-only file storage when no usable keyring exists. Python is required by the CLI and can be managed by uv.

Manual keys use --auth env and the separate owner-only file ~/.config/opencode-litellm/api-key.json (XDG_CONFIG_HOME is honored). Keys saved by older toolkit versions require interactive re-entry; the toolkit does not infer or import manual keys from the official SSO store. Codex SSO invokes lite --base-url <origin> auth print-token directly through native command auth. Only saved manual keys need the toolkit's file reader.

For OAuth pass-through in both mode, run npx @happycastle/codex-litellm codex --profile codex-oauth. The launcher supplies OAuth/MCP gateway admission keys only to the child process; it never exports them with launchctl. Opening the desktop app icon does not run this launcher or refresh the gateway model list. See the setup guide.

Requirements

  • Node.js ^22.22.2 || ^24.12.0 || >=26.0.0
  • Codex installed; the 0.8.0 release target is CLI 0.154.0
  • Official LiteLLM CLI 1.101.0 on PATH for SSO
  • A reachable LiteLLM gateway

License

MIT — see LICENSE.