npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@llaa33219/max-cli

v2.0.1

Published

Universal AI CLI — 40+ Providers, One Command. Based on mmx-cli by MiniMax.

Downloads

37

Readme

About MAX CLI: This project is based on mmx-cli by MiniMax. We loved the clean CLI interface and powerful features of mmx-cli, but wanted to use it with multiple AI providers beyond MiniMax. MAX CLI maintains the same command structure and format while adding support for 40+ providers including OpenAI, Anthropic, DeepSeek, and many more.

Features

  • Multi-Provider — 40+ AI providers in one CLI (OpenAI, Anthropic, MiniMax, DeepSeek, etc.)
  • Text Chat — Multi-turn chat, streaming, system prompts, JSON output
  • Image Generation — DALL-E, FLUX, Grok Imagine, MiniMax Image, and more
  • Video Generation — MiniMax Hailuo, xAI Grok Video, Replicate, Together AI
  • Speech (TTS) — OpenAI TTS, MiniMax Speech, Mistral Voxtral, TTS.ai
  • Music — MiniMax Music (lyrics, instrumental, cover generation)
  • Vision — Image understanding via chat (OpenAI, Anthropic, MiniMax)
  • Web Search — MiniMax search integration
  • Custom Providers — Add any OpenAI-compatible endpoint

Supported Providers (40+)

| Provider | Chat | Image | Speech | Video | Music | |----------|------|-------|--------|-------|-------| | MiniMax | ✅ | ✅ | ✅ | ✅ | ✅ | | OpenAI | ✅ | ✅ | ✅ | ❌ | ❌ | | Anthropic | ✅ | ❌ | ❌ | ❌ | ❌ | | xAI (Grok) | ✅ | ✅ | ✅ | ✅ | ❌ | | DeepSeek | ✅ | ❌ | ❌ | ❌ | ❌ | | Moonshot (Kimi) | ✅ | ❌ | ❌ | ❌ | ❌ | | Zhipu (GLM) | ✅ | ✅ | ✅ | ✅ | ❌ | | Alibaba (Qwen) | ✅ | ✅ | ✅ | ✅ | ❌ | | Tencent | ✅ | ✅ | ✅ | ✅ | ❌ | | Mistral AI | ✅ | ❌ | ✅ | ❌ | ❌ | | Groq | ✅ | ❌ | ✅ | ❌ | ❌ | | Together AI | ✅ | ✅ | ✅ | ✅ | ❌ | | OpenRouter | ✅ | ✅ | ✅ | ✅ | ❌ | | Hugging Face | ✅ | ✅ | ✅ | ✅ | ❌ | | Replicate | ✅ | ✅ | ❌ | ✅ | ✅ | | Cohere | ✅ | ❌ | ❌ | ❌ | ❌ | | Perplexity | ✅ | ✅ | ❌ | ❌ | ❌ | | Cerebras | ✅ | ❌ | ❌ | ❌ | ❌ | | Ollama | ✅ | ❌ | ❌ | ❌ | ❌ | | ...20+ more | ✅ | varies | varies | varies | varies |

Install

# Install CLI globally
npm install -g @llaa33219/max-cli

# Verify installation
max --version

Requires Node.js 18+

Quick Start

# Chat with any provider
max text chat --provider openai --message "Hello!"
max text chat --provider anthropic --model claude-sonnet-4-6 --message "Hello!"
max text chat --provider deepseek --message "Hello!"

# Generate images
max image generate --provider openai --prompt "A sunset"
max image generate --provider xai --prompt "A cat"

# Generate speech
max speech synthesize --provider openai --text "Hello!" --out hello.mp3
max speech synthesize --provider minimax --text "Hello!" --out hello.mp3

# Generate video (MiniMax, xAI, Together AI)
max video generate --provider minimax --prompt "Ocean waves"

# Generate music (MiniMax only)
max music generate --provider minimax --prompt "Upbeat pop" --lyrics "La la la"

Commands

max text chat

max text chat --provider <name> --message <text>
max text chat --provider openai --model gpt-5.4 --message "Hello" --stream
max text chat --provider anthropic --system "You are helpful" --message "Write fizzbuzz"
max text chat --provider deepseek --message "user:Hi" --message "assistant:Hey!" --message "How are you?"

max image generate

max image generate --provider openai --prompt "A cat in a spacesuit"
max image generate --provider xai --prompt "A sunset" --n 3
max image generate --provider minimax --prompt "Logo" --out-dir ./out/

max video generate

max video generate --provider minimax --prompt "Ocean waves" --download sunset.mp4
max video generate --provider xai --prompt "A robot painting" --async

max speech synthesize

max speech synthesize --provider openai --text "Hello!" --out hello.mp3
max speech synthesize --provider minimax --text "Hello!" --voice English_expressive_narrator
max speech synthesize --provider ttsai --model kokoro --text "Hello!" --out hello.mp3

max music generate

max music generate --provider minimax --prompt "Upbeat pop" --lyrics "[verse] La da dee"
max music generate --provider minimax --prompt "Cinematic" --instrumental --out bgm.mp3
max music cover --provider minimax --prompt "Jazz" --audio-file original.mp3 --out cover.mp3

max auth

max auth login --provider openai --api-key sk-xxxxx
max auth login --provider anthropic --api-key sk-ant-xxxxx
max auth status
max auth logout

max config

max config show
max config set --key active_provider --value openai
max config set --key providers.openai.api_key --value sk-xxxxx
max config set --key providers.minimax.default_chat_model --value MiniMax-M2.7

Provider-Specific Features

MiniMax (Full Suite)

  • Chat, Image, Video, Speech, Music, Search, Vision
  • Models: MiniMax-M2.7, image-01, MiniMax-Hailuo-2.3, music-2.6
  • Region support: --base-url https://api.minimax.io (global) or https://api.minimaxi.com (CN)

OpenAI

  • Chat, Image (DALL-E/GPT Image), Speech (TTS)
  • Models: gpt-5.4, gpt-image-2, gpt-4o-mini-tts

Anthropic

  • Chat only (Claude)
  • Models: claude-sonnet-4-6, claude-opus-4-7

xAI (Grok)

  • Chat, Image, Video, Speech
  • Models: grok-4.20, grok-imagine-image, grok-imagine-video

Chinese Providers

  • DeepSeek: deepseek-v4-pro
  • Moonshot (Kimi): kimi-k2.6
  • Zhipu (GLM): glm-5.1, cogview-4, cogvideox-3
  • Alibaba (Qwen): qwen3.6-plus, wan2.6
  • Xiaomi MiMo: mimo-v2.5-pro, mimo-v2.5-tts

Custom Providers

# Any OpenAI-compatible endpoint
max text chat --base-url https://my-api.example.com/v1 --api-key <key> --model <model> --message "Hello"

Global Flags

| Flag | Description | |------|-------------| | --provider <name> | AI provider (openai, anthropic, minimax, etc.) | | --api-key <key> | API key (overrides provider config) | | --base-url <url> | API base URL (overrides provider default) | | --model <model> | Model ID | | --output <format> | Output format: text, json | | --quiet | Suppress non-essential output | | --verbose | Print HTTP request/response details | | --timeout <seconds> | Request timeout (default: 300) | | --stream | Stream response tokens | | --non-interactive | Disable interactive prompts | | --dry-run | Show what would happen without executing |

Configuration

Config stored in ~/.max/config.json:

{
  "active_provider": "openai",
  "providers": {
    "openai": {
      "api_key": "sk-xxxxx",
      "default_chat_model": "gpt-5.4"
    },
    "minimax": {
      "api_key": "sk-xxxxx",
      "default_chat_model": "MiniMax-M2.7"
    }
  }
}

License

MIT