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

@danmademe/pi-provider-litellm

v0.8.0

Published

Pi agent extension for LiteLLM proxy auto-discovery and model configuration

Readme

pi-provider-litellm

[!NOTE] This extension requires pi and a running LiteLLM proxy.

Pi agent extension that auto-discovers and registers models, MCP tools, and skills from a LiteLLM proxy.

Features

  • Model discovery — queries /health and /model/info endpoints to discover available models, registers them under the litellm provider with cost, context window, and capability metadata
  • MCP tools — discovers tools from LiteLLM's MCP REST gateway (/mcp-rest/tools/list) and registers them as pi tools with JSON schema to TypeBox mapping
  • Skills managementskill_list, skill_use, skill_register, skill_enable, and skill_disable tools for managing LiteLLM skills
  • Skills injection — injects enabled skills as structured context into the agent's system prompt on session start, with 60-second caching

All discovery runs in parallel with a 30s timeout. Each step fails gracefully — a failed model discovery won't block MCP tools or skills.

Installation

# From npm (once published)
pi install npm:@danmademe/pi-provider-litellm

# From local path
pi install npm:@danmademe/pi-provider-litellm

Configuration

Provide your LiteLLM proxy URL and API key via environment variables or settings.

Environment variables (recommended)

export LITELLM_URL="https://your-litellm-proxy.example.com"
export LITELLM_KEY="sk-your-api-key"

Optional: override the provider name (defaults to litellm):

export LITELLM_PROVIDER_ID="my-proxy"

Settings file

Add to ~/.pi/agent/settings.json:

{
  "pi-provider-litellm": {
    "url": "https://your-litellm-proxy.example.com",
    "token": "sk-your-api-key"
  }
}

Optional: override the provider name:

{
  "pi-provider-litellm": {
    "url": "https://your-litellm-proxy.example.com",
    "token": "sk-your-api-key",
    "providerId": "my-proxy"
  }
}

Environment variables take precedence over the settings file.

Enabling models

Models registered by this extension use the configured provider ID (default: litellm). To include them in your model cycling, add them to enabledModels in settings.json:

{
  "enabledModels": [
    "litellm/qwen/qwen3.6-27b",
    "litellm/anthropic/claude-sonnet"
  ]
}

[!TIP] The model ID in pi is <providerId>/<model_name>, where <providerId> defaults to litellm and <model_name> is the ID as reported by your LiteLLM proxy (e.g., qwen/qwen3.6-27b, anthropic/claude-sonnet).

Tools

Once loaded, the extension registers the following tools:

| Tool | Description | |------|-------------| | skill_list | List all available skills on the proxy | | skill_use | Fetch full content of a skill by name | | skill_register | Register a new skill from a git repository | | skill_enable | Enable a skill by name | | skill_disable | Disable a skill by name | | mcp_<server>_<tool> | Auto-discovered MCP tools from the proxy |

Development

npm install
npm run typecheck
npm run test:run

License

MIT