minimax-claude-cli
v1.0.1
Published
A CLI wrapper for Claude Code via MiniMax API
Maintainers
Readme
Max
A CLI wrapper that routes Claude Code through the MiniMax API — so you can use Claude Code with any API-compatible endpoint.
Requirements
- Claude Code CLI installed and in your PATH
- A MiniMax API key
Setup
1. Install the binary
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.
2. Provide your API key
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_hereUsage
Max 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"How it works
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.
License
MIT
