A CLI wrapper that routes Claude Code through the MiniMax API — so you can use Claude Code with any API-compatible endpoint.
- Claude Code CLI installed and in your PATH
- A MiniMax API key
curl -fsSL https://raw.githubusercontent.com/UnlikeOtherAI/max/main/install.sh | bashOr manually:
curl -fsSL https://raw.githubusercontent.com/UnlikeOtherAI/max/main/max -o ~/bin/max
chmod +x ~/bin/maxEnsure ~/bin is in your $PATH.
First run (interactive):
max "your prompt"If no MINIMAX_API_KEY is set, Max will prompt you to enter it. The key is saved to ~/.max/token.
Or set it in your shell:
export MINIMAX_API_KEY=your_key_hereMax passes all arguments directly to Claude Code:
max "refactor the auth module"
max --print "what changed in the last commit"
max --input "file.txt" "explain this"Max sets two environment variables before spawning Claude Code:
ANTHROPIC_BASE_URL=https://api.minimax.io/anthropic
ANTHROPIC_AUTH_TOKEN=<your API key>
Everything else — model selection, conversation history, tool use — is handled by Claude Code as usual.
MIT