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

@sinamtz/pi-minimax-provider

v1.0.5

Published

Pi coding agent provider for MiniMax AI - supports MiniMax M2 series models with Anthropic API compatibility

Readme

Pi Provider - MiniMax

npm version License: MIT

Note: This is an unofficial, community-built provider. It is not affiliated with, endorsed by, or connected to MiniMax.

A Pi coding agent provider extension for MiniMax AI's M2 series models.

Features

  • Anthropic API Compatible: Uses MiniMax's Anthropic-compatible endpoint for seamless integration
  • Full Model Support: All MiniMax M2 series models including highspeed variants
  • Extended Context: Up to 204,800 token context window
  • Thinking Support: Built-in reasoning/thinking capabilities
  • Cost Tracking: Accurate token pricing for all models

Supported Models

| Model | Context | Speed | Description | |-------|---------|-------|-------------| | MiniMax-M2.7 | 204,800 | ~60 tps | Latest flagship with recursive self-improvement | | MiniMax-M2.7-highspeed | 204,800 | ~100 tps | Same as M2.7 but faster output | | MiniMax-M2.5 | 204,800 | ~60 tps | Peak performance, ultimate value | | MiniMax-M2.5-highspeed | 204,800 | ~100 tps | Same as M2.5 but faster output | | MiniMax-M2.1 | 204,800 | ~60 tps | Powerful multi-language programming | | MiniMax-M2.1-highspeed | 204,800 | ~100 tps | Same as M2.1 but faster output | | MiniMax-M2 | 204,800 | ~60 tps | Agentic capabilities, advanced reasoning |

Installation

Option 1: Clone and use locally

git clone https://github.com/sinamtz/pi-minimax-provider.git
cd pi-minimax-provider

Option 2: Install globally

npm install -g pi-provider-minimax

Usage

Set your API key

export MINIMAX_API_KEY=your-api-key-here

Get your API key from the MiniMax Platform.

Run pi with the extension

# Using local path
pi -e ./path/to/pi-provider-minimax

# Using global install
pi -e $(npm root -g)/pi-provider-minimax

Select a model

In pi's interactive mode:

/model MiniMax-M2.7

Or use the model selector UI.

Pricing

Pricing is approximate and in USD per million tokens:

| Model | Input | Output | Cache Read | Cache Write | |-------|-------|--------|------------|-------------| | M2.7 | $0.77 | $3.08 | $0.077 | $0.96 | | M2.5 | $0.50 | $2.00 | $0.05 | $0.625 | | M2.1 | $0.20 | $0.80 | $0.02 | $0.25 | | M2 | $0.30 | $1.20 | $0.03 | $0.375 |

Note: Highspeed variants have the same pricing as their standard counterparts.

For the most current pricing, see the MiniMax pricing page.

API Details

  • Base URL: https://api.minimax.io/anthropic
  • Protocol: Anthropic Messages API compatible
  • Authentication: Bearer token via MINIMAX_API_KEY environment variable
  • Streaming: Full streaming support

Troubleshooting

"Model not found" error

  • Ensure you've set MINIMAX_API_KEY correctly
  • Verify the extension path is correct when using -e

Authentication errors

  • Check your MiniMax API key is valid
  • Ensure you have credits/quota available in your MiniMax account

License

MIT

Contributing

Contributions welcome! Please open an issue or PR on GitHub.