Skip to content

Installation

This guide walks through installing Max and its dependencies from source.

Max uses Bun (v1.3.9 or later) as its runtime. Install it with:

Terminal window
curl -fsSL https://bun.sh/install | bash

See bun.sh for alternative installation methods.

The Max CLI uses a lightweight Rust proxy binary. Install Rust with:

Terminal window
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

See rustup.rs for details.

Clone the repository and install dependencies:

Terminal window
git clone git@github.com:max-hq/max.git
cd max
bun install
bun run build

This compiles the TypeScript packages and the Rust proxy binary. The max entry point is at the repository root.

Verify it works:

Terminal window
./max --help

For convenience, add the repository root to your PATH so you can run max from anywhere:

Terminal window
export PATH="/path/to/max:$PATH"

Max supports tab completion for commands, flags, installations, entity types, and more. Generate the completion script for your shell:

Terminal window
max completion zsh > ~/.zsh/completions/_max

Make sure ~/.zsh/completions is in your fpath. If it isn’t, add this to your .zshrc before compinit:

Terminal window
fpath=(~/.zsh/completions $fpath)
autoload -Uz compinit && compinit

Restart your shell or source the config file for completions to take effect.

With Max installed, create your first workspace:

Terminal window
max init my-project
cd my-project

Add connectors so you have data sources to work with:

Terminal window
max install --collection git@github.com:max-hq/max-connectors.git

This clones the collection to ~/.max/collections/ and makes its connectors available to all workspaces.