A "Bring Your Own Key" Raycast extension for AI chat. Supports MiniMax M2.7, M2.5, M2.1, and M2 models with streaming responses, for both China and International regions.
api.minimaxi.com) and International (api.minimax.io) endpoints# Clone the repository
git clone https://github.com/MonforteGG/raycast-minimax
cd raycast-minimax
# Install dependencies
npm install
# Run in development mode
npm run dev
Open Raycast → Search for "AI Chat" → Cmd + , to open preferences:
| Preference | Type | Description |
|---|---|---|
| MiniMax API Key | password | Your MiniMax API key (required) |
| API Endpoint | dropdown | China (api.minimaxi.com) or International (api.minimax.io) (default: International) |
| Model | dropdown | MiniMax-M2.7 (recommended), M2.7-highspeed, M2.5, M2.5-highspeed, M2-her, M2.1, M2 |
| System Prompt | text | Custom system prompt (optional) |
| Temperature | dropdown | 0.3 / 0.7 / 1.0 / 1.5 |
| Max Tokens | dropdown | 1024 / 2048 / 4096 / 8192 |
| Stream Responses | checkbox | Enable streaming (default: true) |
| Concise Mode | checkbox | Brief 2-3 sentence answers unless more detail requested (default: true) |
International users:
China users:
Conversational chat with integrated history.
Cmd + N: New conversationCmd + Backspace: Delete conversationCmd + C: Copy conversationQuick question with streaming response.
raycast-minimax/
├── package.json # Raycast manifest
├── tsconfig.json
├── assets/
│ └── icon.png
├── src/
│ ├── ask-ai.tsx # Command: quick question
│ ├── ai-chat.tsx # Command: chat with history
│ ├── providers/
│ │ ├── base.ts # Provider interface
│ │ └── minimax.ts # MiniMax API implementation
│ ├── hooks/
│ │ ├── useChat.ts # Main chat hook
│ │ └── useChatStore.ts # Chat state management
│ ├── components/
│ │ ├── ChatView.tsx # Chat view
│ │ └── QuickAIResult.tsx # Quick response view
│ └── utils/
│ ├── storage.ts # LocalStorage persistence
│ └── errors.ts # Error handling
| Region | Endpoint |
|---|---|
| International | https://api.minimax.io/v1/chat/completions |
| China | https://api.minimaxi.com/v1/chat/completions |
Models:
MiniMax-M2.7: Latest generation, recommendedMiniMax-M2.7-highspeed: Fast variant of M2.7MiniMax-M2.5: Previous generationMiniMax-M2.5-highspeed: Fast variant of M2.5M2-her: Roleplay-optimized modelMiniMax-M2.1: Earlier generationMiniMax-M2: Legacy model, 200k contextThe provider automatically filters <think>...</think> content generated during the model's internal reasoning.
# Development with hot-reload
npm run dev
# Build
npm run build
# Lint
npm run lint
# Fix lint
npm run fix-lint
@raycast/api: ^1.104.5@raycast/utils: ^2.2.2MIT - see LICENSE for details.