Installation¶
Prerequisites¶
- Python 3.9 or newer (uv, below, installs it for you)
- FFmpeg for video and audio commands (Max can download it for you)
- Tesseract, only for
max pdf ocr
New to the terminal? Follow Start here instead: it walks through every step.
Install¶
On Windows, the most trusted way uses winget, built into Windows 10 and 11: winget install --id astral-sh.uv --exact, then in a new terminal uv tool install max-cli.
The quickest way is the one-line installer. It installs uv when you don't have it (uv brings its own Python), then Max, and checks that Max starts. Run it again any time to update.
powershell -ExecutionPolicy ByPass -c "irm https://raw.githubusercontent.com/Abubakr-Alsheikh/max-cli/main/install.ps1 | iex" # Windows
curl -LsSf https://raw.githubusercontent.com/Abubakr-Alsheikh/max-cli/main/install.sh | sh # macOS and Linux
Networks that block raw.githubusercontent.com can use the copy on Max's website: powershell -ExecutionPolicy ByPass -c "irm https://abubakr-alsheikh.github.io/max-cli/install.ps1 | iex" or curl -LsSf https://abubakr-alsheikh.github.io/max-cli/install.sh | sh. An antivirus warning is usually a false alarm: see Is Max Safe?.
Or run the steps yourself with uv:
Install uv first with powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex" (Windows) or curl -LsSf https://astral.sh/uv/install.sh | sh (macOS and Linux), then open a new terminal.
With Python already installed, pipx install max-cli works the same way. Plain pip works too, best inside a virtual environment:
For the newest code, install from the repository:
For development, add the dev extra: pip install -e .[dev].
The base install includes the AI, PDF, image and download features and the dashboard.
Optional extras¶
| Extra | What it adds |
|---|---|
ocr |
pytesseract, for max pdf ocr. Install Tesseract too |
dev |
pytest, ruff, mypy and mkdocs |
tui |
Nothing. It stays so pip install max-cli[tui] from older instructions still works |
FFmpeg¶
Max looks for FFmpeg on your PATH and where winget and Homebrew put it. If it can't find it, the first video or audio command offers to install it: with winget (Windows, Gyan's build) or Homebrew (macOS) when you have them, else by downloading a build into ~/.max_cli/bin/. A download comes from gyan.dev or BtbN (Windows), BtbN or johnvansickle.com (Linux), or Martin Riedl (macOS), tried in that order, and must match the SHA-256 its site publishes. Max installs ffprobe beside ffmpeg, and checks that it runs.
To install it ahead of time:
Or use your package manager: winget install Gyan.FFmpeg (Windows), brew install ffmpeg (macOS), sudo apt install ffmpeg (Debian and Ubuntu).
AI provider¶
The AI agent and the max ai commands need a provider. Run the wizard:
It asks for a main AI and a fallback, each with its key and model. Max switches to the fallback when the main one fails.
| Provider | Key | Good for |
|---|---|---|
| OpenRouter | Yes | Many models behind one key, including free ones |
| Google Gemini | Yes | A free tier, vision and image generation |
| OpenAI | Yes | GPT models, or any server that speaks the OpenAI API |
| Ollama | No | Private AI on your own machine |
You can also set the providers on the dashboard's Settings page, which lists each provider's models for you to pick.
Check the install¶
Update¶
Max updates itself the way you installed it (uv, pipx or pip) and tells you when a new version is out. See Update and Doctor.