Skip to main content

Installing the FlexAI CLI

Review the system requirements

The FlexAI CLI is available for the following operating systems and versions:

  • Ubuntu 20.04, 22.04, 24.04
  • macOS 14 and above
  • Windows 10 and Windows 11 (through WSL2 in both cases)

Installing the FlexAI CLI

Run the following command from your preferred terminal:

curl -fsSL https://cli.flex.ai/install.sh | sh

Adding it to your $PATH

Add the ~/.flexai/bin directory to your $PATH:

echo 'export PATH="$PATH:$HOME/.flexai/bin"' >> ~/.bashrc && source ~/.bashrc

Verifying your installation

As a first step, it's always a good idea to verify your system can properly connect to FlexAI services and that the CLI is properly installed. You can do this by running the doctor command:

flexai doctor

You should get a message like this:

Running doctor checks... [1/3] ✅ BinaryInPath [2/3] ✅ BackendServer [3/3] ✅ UpdateServer Your system is healthy

The next step is to authenticate your CLI by logging in using your GitHub account registered with FlexAI.


Uninstalling the FlexAI CLI

If you ever need to uninstall the FlexAI CLI, you can do so by removing both the ~/.flexai directory and the reference to the flexai binary from your $PATH variable.