@thesethrose/pi-minimax-provider
v1.0.0
Published
MiniMax provider extension for pi coding agent with correct OAuth token handling
Downloads
64
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-providerSetup
After installing, authenticate with your MiniMax API key:
/login minimaxGet your API key at: https://www.minimaxi.com/user-center/basic-information/interface-key
Usage
Switch to a MiniMax model:
/model MiniMax-M2.7Why 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.
