Installing Helix Quick Start
tl;dr
Linux | macOS | Windows (WSL2)
curl -sL -O https://get.helix.ml/install.sh && bash install.sh
Follow the instructions to install Helix on your local machine. Installer will prompt you before making any changes.
View source | Manual instructions | Kubernetes | Discord
Why install Helix?
Install Helix to get:
- Helix Apps, version controlled configuration for LLM-based applications
- Knowledge, continuously updated RAG from a URL
- API integrations so your app can call an API to get up to date information when needed
- New Helix App Editor UI
Requirements
Control Plane is the Helix API, web interface, and postgres database and requires:
- Linux, macOS or Windows
- Docker
- 4 CPUs, 8GB RAM and 50GB+ free disk space
Inference Provider requires ONE OF:
- An NVIDIA GPU if you want to use private Helix Runners (example), or
- Ollama running locally on macOS, Linux or Windows (example), or
- An OpenAI-compatible API provider, such as TogetherAI (example) - we like TogetherAI because you can run the same open source models via their API that you can run locally using Helix GPU Runners, but you can use any OpenAI-compatible API (e.g. vLLM, Azure OpenAI, Gemini etc)
Private Helix Runners require:
- As much system memory as you have GPU memory
- Min 8GB GPU for small models (Llama3-8B, Phi3-Mini), 24GB for Mixtral/SDXL, 40GB for Llama3-70B
- Min 24GB GPU for fine-tuning (text or image)
- Recommend 2x24GB GPUs for e.g. text & image inference in parallel
- NVIDIA 3090s, A6000s are typically good price/performance
- 150GB+ of free disk space
- A fast internet connection (small runner image is 23GB)
Download the Helix Installer
Use the installer script to get started with Helix quickly. Run the following commands to download and make the installer executable:
curl -sL -O https://get.helix.ml/install.sh
chmod +x install.sh
Now run the installer and follow the instructions with sudo ./install.sh
. You will be prompted before any changes are made to your system.
You can also run ./install.sh --help
to see what options are available, or read on for common configuration options.
Installer Examples
Just install the CLI
curl -sL -O https://get.helix.ml/install.sh
chmod +x install.sh
./install.sh --cli
This will just install the CLI on its own. Useful if you want to connect to a Helix deployment from another machine.
Local Helix on Linux or Windows (WSL2) with an NVIDIA GPU
This will set up the CLI, the controlplane and a runner on localhost if an NVIDIA GPU is available:
curl -sL -O https://get.helix.ml/install.sh
chmod +x install.sh
sudo ./install.sh
- If you have an older GPU (e.g. NVIDIA 1060, 1080 series), specify
--older-gpu
. This will disable image inference and text/image fine-tuning, which only works on newer GPUs (e.g. 3090 onwards). - If you want to use text fine-tuning, as well as needing a newer GPU (e.g. 3090 onwards) you also need to set
--hf-token <YOUR_TOKEN>
to a valid Huggingface token, then you now need to accept sharing your contact information with Mistral here and then fetch an access token from here and then specify it in this parameter.
This will create a HelixML
directory with the following files:
docker-compose.yaml
- the compose file for the control plane.env
- appropriately configured secrets and configuration for the control planerunner.sh
- script to start the runner assuming a local GPU
It will print out instructions on how to start everything.
Install alongside Ollama on macOS, Linux or Windows
Install locally alongside Ollama already running:
curl -sL -O https://get.helix.ml/install.sh
chmod +x install.sh
./install.sh --openai-api-key ollama --openai-base-url http://host.docker.internal:11434/v1
This assumes you have downloaded some models with Ollama, for example by running:
ollama pull llama3:instruct
These models will then show up in the Helix UI. You can reference them, e.g. model: llama3:instruct
in the assistant model
field in your helix.yaml
.
Using an external LLM won’t work with image inference or text/image fine-tuning. Connect a full GPU to enable those features.
Install Control Plane pointing at TogetherAI
Install CLI and controlplane locally with external TogetherAI API key:
curl -sL -O https://get.helix.ml/install.sh
chmod +x install.sh
./install.sh --cli --controlplane --together-api-key YOUR_TOGETHER_API_KEY
This won’t work with image inference or text/image fine-tuning. Connect a full GPU to enable those features.
Set up Control Plane with a DNS name
If you want to make your Helix deployment available to other people, you should get a domain name or subdomain and set up an A record pointing to the IP address of your Control Plane server.
Then, you can install the CLI and Control Plane on the server, specifying the DNS name, and the installer will automatically set up TLS with Caddy:
curl -sL -O https://get.helix.ml/install.sh
chmod +x install.sh
./install.sh --cli --controlplane --api-host https://helix.mycompany.com
The automatic Caddy installation currently only works on Ubuntu.
See Manual Install for full instructions on other platforms.
Attach a Runner to an existing Control Plane
Install just the runner, pointing to a controlplane with a DNS name (find runner token in /opt/HelixML/.env
on the control plane node):
curl -sL -O https://get.helix.ml/install.sh
chmod +x install.sh
./install.sh --runner --api-host https://helix.mycompany.com --runner-token YOUR_RUNNER_TOKEN
Install Control Plane pointing at any OpenAI-compatible API
Install the CLI and controlplane locally with OpenAI-compatible API key and base URL: GR requirements
curl -sL -O https://get.helix.ml/install.sh
chmod +x install.sh
./install.sh --cli --controlplane --openai-api-key YOUR_OPENAI_API_KEY --openai-base-url YOUR_OPENAI_BASE_URL
This won’t work with image inference or text/image fine-tuning. Connect a full GPU to enable those features.
Upgrading
Just run the installer again. It will reuse secrets in your .env
file and back it up in case you need to copy over any changes.
Securing Helix
By default, new registrations are enabled to make it easy for you to create an account. Also by default, all accounts are admin accounts.
After creating your own accounts, you can choose to disable new registrations. Go to http(s)://<YOUR_CONTROLPLANE_HOSTNAME>/auth
and click “Administration Console”. Log in with admin
and KEYCLOAK_ADMIN_PASSWORD
from your .env
file. Click the “master” dropdown and switch to the helix realm. Under “Realm settings” -> “Login”, you can untick “User registration”. You can also set up OAuth, email validation etc here.
To lock down admin users to a specific set of users, go to Users in Keycloak and find the users you want to be admins. Copy their IDs into .env
as a comma-separated list under ADMIN_USER_IDS
variable. Run docker compose up -d
to update the stack.
You may also wish to review all available configuration options in Environment Variables.
More Configuration
For further configuration options you can put in your .env
file, such as connecting GitHub for easy git push
deployment of Helix Apps, check the manual install docs.