Setup guide - From MiniMax and GitHub Copilot docs
Use MiniMax in GitHub Copilot
VS Code's Copilot Chat 'Custom Endpoint' BYOK provider (Chat Completions API type) combined with MiniMax's documented Chat Completions endpoint https://api.minimax.io/v1/chat/completions and model ids.
Last verified 4 steps4 official sources
Steps
- Step 1.
Open the Language Models editor: select Manage Language Models (gear icon) from the model picker, or run Chat: Manage Language Models from the Command Palette.
- Step 2.
Select Add Models, then select Custom Endpoint. Enter a group name, then a display name and your MiniMax API key.
- Step 3.
Select the API type Chat Completions. VS Code opens chatLanguageModels.json; configure the model using MiniMax's endpoint and model id, then save.
JSON[ { "name": "MiniMax", "vendor": "customendpoint", "apiKey": "${input:minimaxApiKey}", "apiType": "chat-completions", "models": [ { "id": "MiniMax-M3", "name": "MiniMax-M3", "url": "https://api.minimax.io/v1/chat/completions", "toolCalling": true, "vision": true, "contextWindow": 1000000, "maxOutputTokens": 64000 } ] } ] - Step 4.
Select the model from the model picker in chat. If it does not appear immediately, restart VS Code.
Caveats
- Combination: VS Code documents the Custom Endpoint mechanism; MiniMax documents POST https://api.minimax.io/v1/chat/completions with bearer auth plus the model ids. Neither publishes a MiniMax-specific Copilot guide. This applies to Copilot Chat in VS Code, not Copilot on github.com or other IDEs.
- The chatLanguageModels.json snippet is VS Code's documented schema filled with MiniMax values; maxOutputTokens 64000 is an illustrative choice, not a MiniMax-published limit. vision is true only for M3 / M3.1-Flash-Preview (M2.x models do not accept image input).
- For the Chat Completions type, VS Code sends Authorization: Bearer <apiKey> by default, which matches MiniMax's bearer auth.
- For MiniMax-M3.1-Flash-Preview, VS Code's optional thinking / supportsReasoningEffort ["low","medium","high","xhigh","max"] / reasoningEffortFormat "chat-completions" fields map to MiniMax's reasoning_effort parameter; never send none (MiniMax returns 400). M3.1-Flash-Preview needs an M Plan Subscription Key.
- Copilot Business/Enterprise users need their admin to enable the 'Bring Your Own Language Model Key in VS Code' policy. BYOK applies to chat and utility tasks only; inline suggestions, semantic search and embeddings still use GitHub's models.
- The github.copilot.chat.customOAIModels setting and the OpenAI Compatible provider are deprecated in favor of Custom Endpoint.
More setup guides
Same tool, other providers
Related reading
- MiniMax H3: An Omni-Modal Video Model With Native Audio, 2K Output, and Open Weights ComingMiniMax H3 turns text, image, video and audio input into 2K video with native stereo sound at 0.80 CNY per second, with open weights promised to follow.
- MiniMax M2.5 for Developers: The Anthropic-Compatible Budget Frontier ModelMiniMax M2.5 hits 80.2% on SWE-bench Verified and plugs into the Anthropic SDK with two environment variables. Here is what you need to know before switching.
- Claude Code vs Codex vs Copilot CLI: Local Sandboxes ComparedCopilot CLI local sandboxing is GA. How it compares with Claude Code and Codex on defaults, network, credentials, Windows, and what still runs outside.
- GitHub Copilot CLI With Ollama: Local Models and the New SandboxCopilot CLI 1.0.94 finds local Ollama models from /model and ships an OS-level sandbox. Setup, the 4k context trap, and why local is not offline.
- Claude Sonnet 5.5 Developer Guide: Pricing and API ChangesClaude Sonnet 5.5 costs $2/$10 per million tokens, and cache reads fell to $0.10 on October 7 - half of Opus 5.5 on every line. Pricing math and API changes.
- GitHub Copilot's September Reset: Prepaid Seats, One Unified Agent Experience, Balanced Reviews by DefaultGitHub Copilot September changes: prepaid Business and Enterprise seats, one unified agent experience and Balanced reviews by default. What it means for teams.
FAQ
How do I use MiniMax in GitHub Copilot?
VS Code's Copilot Chat 'Custom Endpoint' BYOK provider (Chat Completions API type) combined with MiniMax's documented Chat Completions endpoint https://api.minimax.io/v1/chat/completions and model ids.
Which MiniMax model ids work in GitHub Copilot?
The official docs read for this guide list MiniMax-M3, MiniMax-M3.1-Flash-Preview, MiniMax-M2.7, MiniMax-M2.7-highspeed, MiniMax-M2.5 and MiniMax-M2.5-highspeed. Requests go to https://api.minimax.io/v1.
Is this an official MiniMax and GitHub Copilot setup?
The steps draw on both MiniMax's and GitHub Copilot's docs. It was last checked against 4 official pages on October 17, 2026.
Sources
Last verified against 4 official pages.
- code.visualstudio.comhttps://code.visualstudio.com/docs/agent-customization/language-models
- platform.minimax.iohttps://platform.minimax.io/docs/api-reference/text-chat-openai.md
- platform.minimax.iohttps://platform.minimax.io/docs/api-reference/text-openai-api.md
- platform.minimax.iohttps://platform.minimax.io/docs/faq/models.md
Newsletter
New models, set up the day they ship
One email per week. New model releases, the coding tools that support them and how to wire them up.