Configure Claude Code with MiniMax on NRP

ai
tools
Author

Andrea Zonca

Published

April 21, 2026

Setup Claude Code with MiniMax models on NRP infrastructure

This guide covers configuring Claude Code to use MiniMax models through the NRP (Nautilus Research Platform) infrastructure, including setting up Brave Search for web queries.

Available Models

The NRP platform offers several models. Check the LLM Managed Service Status page for real-time availability.

GLM 4.7 (Alternative)

GLM 4.7 (glm-4.7) is another strong option for coding tasks:

  • Model: zai-org/GLM-4.7-FP8
  • Parameters: 358B with official FP8 quantization
  • Context: 202,752 tokens
  • Capabilities: Tool calling, thinking mode support

However, GLM 4.7 is often busy due to high demand, so MiniMax-M2 serves as a reliable alternative with similar performance characteristics.

Get Your NRP API Key

First, you need an API token from the National Research Platform. See the detailed guide Configure NRP LLM with OpenCode and Crush for instructions on generating your token at https://nrp.ai/llmtoken/.

Environment Variables

Add the following to your ~/.bashrc or shell configuration (replace your-api-key-here with your actual token):

# Claude Code configuration for NRP with MiniMax
export ANTHROPIC_BASE_URL="https://ellm.nrp-nautilus.io/anthropic"
export ANTHROPIC_API_KEY="your-api-key-here"
export ANTHROPIC_DEFAULT_OPUS_MODEL="minimax-m2"
export ANTHROPIC_DEFAULT_SONNET_MODEL="minimax-m2"
export ANTHROPIC_DEFAULT_HAIKU_MODEL="minimax-m2"
export CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC="1"
export CLAUDE_CODE_DISABLE_FEEDBACK_SURVEY="1"
export CLAUDE_CODE_ENABLE_TELEMETRY="0"
export API_TIMEOUT_MS="3000000"
export DISABLE_TELEMETRY="1"

Optional: YOLO Mode Alias

For a frictionless experience with automatic permission approval:

alias claude="claude --dangerously-skip-permissions"

Brave Search MCP Server

For web search capabilities, configure the Brave Search MCP server:

  1. Get a Brave Search API key from https://brave.com/search/api/

  2. Add the MCP server configuration to your project’s .claude.json:

{
  "mcpServers": {
    "brave-search": {
      "type": "stdio",
      "command": "brave-search-mcp-server",
      "args": ["--transport", "stdio", "--brave-api-key", "YOUR_BRAVE_API_KEY"],
      "env": {}
    }
  }
}
  1. Install the server globally (optional, for faster startup):
npm install -g @brave/brave-search-mcp-server

Verification

Verify the MCP server is connected:

claude mcp list

You should see:

brave-search: brave-search-mcp-server --transport stdio --brave-api-key ... - ✓ Connected