@thesethrose/pi-minimax-provider
MiniMax provider extension for pi coding agent with correct OAuth token handling
Package details
Install @thesethrose/pi-minimax-provider from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@thesethrose/pi-minimax-provider- Package
@thesethrose/pi-minimax-provider- Version
1.0.0- Published
- Mar 31, 2026
- Downloads
- 45/mo · 4/wk
- Author
- thesethrose
- License
- MIT
- Types
- extension
- Size
- 13.7 KB
- Dependencies
- 0 dependencies · 2 peers
Pi manifest JSON
{
"extensions": [
"./index.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
@thesethrose/pi-minimax-provider
MiniMax provider extension for the pi coding agent. Registers MiniMax M-series models using their Anthropic-compatible API with correct OAuth token handling.
Models
| Model | Context | Max Output | Input $/MTok | Output $/MTok |
|---|---|---|---|---|
| MiniMax-M2.7 | 200K | 16K | $0.77 | $3.08 |
| MiniMax-M2.7 (Highspeed) | 200K | 16K | $0.77 | $3.08 |
| MiniMax-M2.5 | 200K | 16K | $0.50 | $2.00 |
| MiniMax-M2.5 (Highspeed) | 200K | 16K | $0.50 | $2.00 |
| MiniMax-M2.1 | 200K | 16K | $0.20 | $0.80 |
| MiniMax-M2.1 (Highspeed) | 200K | 16K | $0.20 | $0.80 |
| MiniMax-M2 | 200K | 16K | $0.30 | $1.20 |
Installation
# From npm
pi install npm:@thesethrose/pi-minimax-provider
# From GitHub (no npm account needed)
pi install git:github.com/TheSethRose/pi-minimax-provider
Setup
After installing, authenticate with your MiniMax API key:
/login minimax
Get your API key at: https://www.minimaxi.com/user-center/basic-information/interface-key
Usage
Switch to a MiniMax model:
/model MiniMax-M2.7
Why this extension?
The upstream @sinamtz/pi-minimax-provider package has a bug where OAuth-stored tokens are passed verbatim as Bearer oauth:sk-... instead of Bearer sk-..., causing 401 errors. This extension fixes that and adds /login minimax API key prompting.