Skip to content

Instantly share code, notes, and snippets.

@steebchen
Created January 25, 2026 19:21
Show Gist options
  • Select an option

  • Save steebchen/2b90ef7a296d5cfcf014e4f352b50d76 to your computer and use it in GitHub Desktop.

Select an option

Save steebchen/2b90ef7a296d5cfcf014e4f352b50d76 to your computer and use it in GitHub Desktop.
MiniMax M2 with Claude Code via LLM Gateway

MiniMax M2 with Claude Code via LLM Gateway

Model Overview

  • Model ID: minimax-m2
  • Provider: MiniMax
  • Strengths: Long context, efficient inference, strong code generation
  • Context: 1M tokens

Configuration

export ANTHROPIC_BASE_URL="https://api.llmgateway.io/v1"
export ANTHROPIC_API_KEY="your-llmgateway-api-key"

Usage

# Use MiniMax M2
claude --model minimax-m2

# Set in ~/.claude/settings.json
{
  "model": "minimax-m2"
}

Best Use Cases

  • Large codebase analysis (1M context)
  • Repository-wide refactoring
  • Understanding legacy systems
  • Multi-file code reviews
  • Documentation generation for large projects

Pricing Tier

Mid-tier - excellent for large context tasks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment