Skip to content

UnlikeOtherAI/max

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Max

A CLI wrapper that routes Claude Code through the MiniMax API — so you can use Claude Code with any API-compatible endpoint.

Requirements

Setup

1. Install the binary

curl -fsSL https://raw.githubusercontent.com/UnlikeOtherAI/max/main/install.sh | bash

Or manually:

curl -fsSL https://raw.githubusercontent.com/UnlikeOtherAI/max/main/max -o ~/bin/max
chmod +x ~/bin/max

Ensure ~/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_here

Usage

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

About

A CLI wrapper for Claude Code via MiniMax API

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors