Skip to main content

Install Droid

For Mac/Linux Users:
curl -fsSL https://app.factory.ai/cli | sh
For Windows Users:
irm https://app.factory.ai/cli/windows | iex
For more information, please refer to the Droid documentation.

Configure MiniMax API

Important: Clear Anthropic Environment Variables Before ConfigurationBefore configuring, ensure you clear the following Anthropic-related environment variables to avoid conflicts with MiniMax API:
  • ANTHROPIC_AUTH_TOKEN
  • ANTHROPIC_BASE_URL
  1. Use following command to edit the configuration file located at ~/.factory/config.json.
  • The base_url should be set based on your location: for international users, use https://api.minimax.io/anthropic; for users in China, use https://api.minimaxi.com/anthropic.
  • Set <MINIMAX_API_KEY> to the API key obtained from the MiniMax Developer Platform (For users in China, visit MiniMax Developer Platform).
Tips:
  • Config ~/.factory/config.json, NOT ~/.factory/settings.json
  • Clear the ANTHROPIC_AUTH_TOKEN environment variable, otherwise it will override the API key in .factory/config.json and cause errors
{
    "custom_models": [
        {
            "model_display_name": "MiniMax-M2.1",
            "model": "MiniMax-M2.1",
            "base_url": "https://api.minimax.io/anthropic",
            "api_key": "<MINIMAX_API_KEY>",
            "provider": "anthropic",
            "max_tokens": 64000
        }
    ]
}
  1. Navigate to your project and start interactive session
cd /path/to/your/project
droid
  1. Enter /model, select the “MiniMax-M2.1” model and use it in Droid.