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

kimicodeprovider

v0.1.0

Published

pi-coding-agent extension for Kimi/Moonshot API with configurable base URL

Readme

KimiCodeProvider

A pi-coding-agent extension that adds support for Kimi Code API (Moonshot's coding-optimized API endpoint).

This extension registers a moonshot provider with all available Kimi models, allowing you to use Kimi's coding API with configurable base URL and User-Agent.

Installation

pi install npm:kimicodeprovider

For project-local installation:

pi install npm:kimicodeprovider -l

Configuration

1. API Key (Required)

Set your Moonshot API key as an environment variable:

export MOONSHOT_API_KEY="your-api-key-here"

Add this to your shell profile (~/.bashrc, ~/.zshrc, etc.) to make it persistent.

2. Start Using Kimi Models

Once installed and the API key is set, restart pi and the Kimi models will appear in the model selector:

pi

Then press Ctrl+L to open the model selector and choose any Kimi model.

Or specify directly via command line:

pi --provider moonshot --model kimi-for-coding

Available Models

After installation, these models will be available in pi:

| Model | Best For | Context | Max Tokens | Reasoning | Vision | |-------|----------|---------|------------|-----------|--------| | kimi-for-coding | Coding tasks | 262K | 32K | Yes | No | | kimi-k2.5 | Multimodal + reasoning | 262K | 32K | Yes | Yes | | kimi-latest | Latest general model | 131K | 131K | No | Yes | | kimi-k2-turbo-preview | Fast responses | 262K | 32K | No | No | | kimi-k2-thinking | Deep reasoning | 262K | 32K | Yes | No | | moonshot-v1-8k | Legacy V1 series | 8K | 8K | No | No | | moonshot-v1-32k | Legacy V1 series | 32K | 32K | No | No | | moonshot-v1-128k | Legacy V1 series | 128K | 128K | No | No |

Advanced Configuration

Custom Base URL

By default, this extension uses the Kimi Code API endpoint: https://api.kimi.com/coding/v1

To use a custom endpoint (e.g., proxy or enterprise deployment):

export KIMI_BASE_URL="https://your-custom-endpoint.com/coding"

The extension automatically handles URL formatting:

  • If URL ends with /coding, it appends /v1
  • If URL ends with /coding/, it appends v1

Custom User-Agent

export KIMI_USER_AGENT="YourApp/1.0"

Default: KimiCLI/1.3

Environment Variables

| Variable | Required | Default | Description | |----------|----------|---------|-------------| | MOONSHOT_API_KEY | Yes | - | Your Moonshot API key | | KIMI_BASE_URL | No | https://api.kimi.com/coding/v1 | Custom API base URL | | KIMI_USER_AGENT | No | KimiCLI/1.3 | Request User-Agent header |

Troubleshooting

Kimi models not showing in selector:

  • Run /reload in pi to refresh extensions
  • Verify the extension is installed: pi list
  • Check that MOONSHOT_API_KEY is set: echo $MOONSHOT_API_KEY

API errors:

  • Verify your API key is valid at Moonshot Platform
  • Check if your base URL is accessible
  • For custom endpoints, ensure they support the OpenAI-compatible API format

Uninstall

pi remove npm:kimicodeprovider

About Kimi Code API

This extension connects to Moonshot's Kimi Code API (api.kimi.com/coding/v1), which is optimized for coding tasks and provides access to the latest Kimi models including the kimi-for-coding model specifically fine-tuned for software development.

Learn more: Moonshot Platform

License

MIT