Quick Start
Runs on macOS, Linux (x86_64), ARM64 / Raspberry Pi, NVIDIA DGX Spark, and Windows.
- Docker: Officially supported and recommended for most users. Requires Docker installed.
- Kubernetes: Ideal for enterprise deployments requiring scaling and orchestration.
- Docker
- Kubernetes
- Desktop
- Docker
- Docker Compose
- Extension
- Swarm
- WSL
Quick Start with Docker
WebSocket support is required. Ensure your network configuration allows WebSocket connections.
1. Pull the image
docker pull ghcr.io/hrida-ai/hrida-ai-studio:main2. Run the container
docker run -d -p 3000:8080 -v hrida-ai:/app/backend/data --name hrida-ai ghcr.io/hrida-ai/hrida-ai-studio:main| Flag | Purpose |
|---|---|
-v hrida-ai:/app/backend/data | Persistent storage. Prevents data loss between restarts. |
-p 3000:8080 | Exposes the UI on port 3000 of your machine. |
3. Open the UI
Visit http://localhost:3000.
Image Variants
| Tag | Use case |
|---|---|
:main | Standard image (recommended) |
:main-slim | Smaller image, downloads Whisper and embedding models on first use |
:cuda | Nvidia GPU support (add --gpus all to docker run) |
:ollama | Bundles Ollama inside the container for a small all-in-one setup (optional) |
Specific release versions
For production environments, pin a specific version instead of using floating tags:
docker pull ghcr.io/hrida-ai/hrida-ai-studio:v1.3.0
docker pull ghcr.io/hrida-ai/hrida-ai-studio:v1.3.0-cuda
docker pull ghcr.io/hrida-ai/hrida-ai-studio:v1.3.0-ollamaCommon Configurations
GPU support (Nvidia)
docker run -d -p 3000:8080 --gpus all -v hrida-ai:/app/backend/data --name hrida-ai ghcr.io/hrida-ai/hrida-ai-studio:cudaConnecting to vLLM
Point Hrida.ai at a vLLM server, here on the same host (see the vLLM guide for starting vLLM):
docker run -d -p 3000:8080 --add-host=host.docker.internal:host-gateway -e OPENAI_API_BASE_URL=http://host.docker.internal:8000/v1 -e OPENAI_API_KEY=<vllm-api-key> -e ENABLE_OLLAMA_API=False -v hrida-ai:/app/backend/data --name hrida-ai --restart always ghcr.io/hrida-ai/hrida-ai-studio:mainFor vLLM on another machine, use its address instead, for example http://gpu-server:8000/v1.
Bundled with Ollama (optional)
For a small single-machine setup, one container can run Hrida.ai and Ollama together:
With GPU:
docker run -d -p 3000:8080 --gpus=all -v ollama:/root/.ollama -v hrida-ai:/app/backend/data --name hrida-ai --restart always ghcr.io/hrida-ai/hrida-ai-studio:ollamaCPU only:
docker run -d -p 3000:8080 -v ollama:/root/.ollama -v hrida-ai:/app/backend/data --name hrida-ai --restart always ghcr.io/hrida-ai/hrida-ai-studio:ollamaConnecting to Ollama on a different server (optional)
docker run -d -p 3000:8080 -e OLLAMA_BASE_URL=https://example.com -v hrida-ai:/app/backend/data --name hrida-ai --restart always ghcr.io/hrida-ai/hrida-ai-studio:mainSingle-user mode (no login)
docker run -d -p 3000:8080 -e HRIDAAI_AUTH=False -v hrida-ai:/app/backend/data --name hrida-ai ghcr.io/hrida-ai/hrida-ai-studio:mainYou cannot switch between single-user mode and multi-account mode after this change.
Using the Dev Branch
The :dev tag contains the latest features before they reach a stable release.
docker run -d -p 3000:8080 -v hrida-ai:/app/backend/data --name hrida-ai --restart always ghcr.io/hrida-ai/hrida-ai-studio:devNever share your data volume between dev and production. Dev builds may include database migrations that are not backward-compatible. Always use a separate volume (e.g., -v hrida-ai-dev:/app/backend/data).
Uninstall
-
Stop and remove the container:
bashdocker rm -f hrida-ai -
Remove the image (optional):
bashdocker rmi ghcr.io/hrida-ai/hrida-ai-studio:main -
Remove the volume (optional, deletes all data):
bashdocker volume rm hrida-ai
Updating
To update your local Docker installation to the latest version, you can either use Watchtower or manually update the container.
Option 1: Using Watchtower
With Watchtower, you can automate the update process:
docker run --rm --volume /var/run/docker.sock:/var/run/docker.sock nickfedor/watchtower --run-once hrida-ai(Replace hrida-ai with your container's name if it's different.)
Option 2: Manual Update
-
Stop and remove the current container:
bashdocker rm -f hrida-ai -
Pull the latest version:
bashdocker pull ghcr.io/hrida-ai/hrida-ai-studio:main -
Start the container again:
bashdocker run -d -p 3000:8080 -v hrida-ai:/app/backend/data \ -e HRIDAAI_SECRET_KEY="your-secret-key" \ --name hrida-ai --restart always \ ghcr.io/hrida-ai/hrida-ai-studio:main
Without a persistent HRIDAAI_SECRET_KEY, you'll be logged out every time the container is recreated. Generate one with openssl rand -hex 32.
For version pinning, rollback, automated update tools, and backup procedures, see the full update guide.
Docker Compose Setup
Using Docker Compose simplifies the management of multi-container Docker applications.
Docker Compose requires an additional package, docker-compose-v2.
Warning: Older Docker Compose tutorials may reference version 1 syntax, which uses commands like docker-compose build. Ensure you use version 2 syntax, which uses commands like docker compose build (note the space instead of a hyphen).
Example docker-compose.yml
Here is an example configuration file for setting up Hrida.ai with Docker Compose:
services:
hrida-ai:
image: ghcr.io/hrida-ai/hrida-ai-studio:main
ports:
- "3000:8080"
volumes:
- hrida-ai:/app/backend/data
volumes:
hrida-ai:Using Slim Images
For environments with limited storage or bandwidth, you can use the slim image variant that excludes pre-bundled models:
services:
hrida-ai:
image: ghcr.io/hrida-ai/hrida-ai-studio:main-slim
ports:
- "3000:8080"
volumes:
- hrida-ai:/app/backend/data
volumes:
hrida-ai:Note: Slim images download required models (whisper, embedding models) on first use, which may result in longer initial startup times but significantly smaller image sizes.
Starting the Services
To start your services, run the following command:
docker compose up -dHelper Scripts
A set of helper scripts is included with the codebase to streamline common Docker workflows:
run-compose.sh— Interactive Compose launcher with GPU auto-detection and configurable Hrida.ai/API ports. Run./run-compose.sh --helpfor the full list of flags. Use--dropto tear down the project.confirm_remove.sh— Stops the Compose project and deletes all volumes, including persistent data. Prompts for confirmation before destroying data.run.sh— Builds the Hrida.ai image and runs a single container on port3000.run-ollama-docker.sh— (optional, for Ollama) Pulls and runs the official Ollama container with optional GPU passthrough, on port11434.update_ollama_models.sh— (optional, for Ollama) Iterates through every model installed in the Ollama container and pulls the latest version.
Note: For Nvidia GPU support, you change the image from ghcr.io/hrida-ai/hrida-ai-studio:main to ghcr.io/hrida-ai/hrida-ai-studio:cuda and add the following to your service definition in the docker-compose.yml file:
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]This setup ensures that your application can leverage GPU resources when available.
Uninstall
To uninstall Hrida.ai running with Docker Compose, follow these steps:
-
Stop and Remove the Services: Run this command in the directory containing your
docker-compose.ymlfile:bashdocker compose down -
Remove the Volume (Optional, WARNING: Deletes all data): If you want to completely remove your data (chats, settings, etc.):
bashdocker compose down -vOr manually:
bashdocker volume rm <your_project_name>_hrida-ai -
Remove the Image (Optional):
bashdocker rmi ghcr.io/hrida-ai/hrida-ai-studio:main
Docker Desktop Extension
Docker has released an Hrida.ai Docker extension that uses Docker Model Runner for inference. You can read their getting started blog here: Run Local AI with Hrida.ai + Docker Model Runner
You can find troubleshooting steps by contacting Hrida.ai Support
While this is an amazing resource to try out Hrida.ai with little friction, it is not an officially supported installation method - you may run into unexpected bugs or behaviors while using it. For example, you are not able to log in as different users in the extension since it is designed to be for a single local user. If you run into issues using the extension, please contact Hrida.ai Support.
Docker Swarm
This installation method requires knowledge of Docker Swarm, as it utilizes a stack file to deploy 3 separate containers as services in a Docker Swarm.
It includes isolated containers of ChromaDB, vLLM, and Hrida.ai. Additionally, there are pre-filled Environment Variables to further illustrate the setup.
This stack correctly deploys ChromaDB as a separate HTTP server container, with Hrida.ai connecting to it via CHROMA_HTTP_HOST and CHROMA_HTTP_PORT. This is required for any multi-worker or multi-replica deployment.
The default ChromaDB mode (without CHROMA_HTTP_HOST) uses a local SQLite-backed PersistentClient that is not fork-safe — concurrent writes from multiple worker processes will crash workers instantly. Running ChromaDB as a separate server avoids this by using HTTP connections instead of direct SQLite access.
If you plan to scale the hridaAI service to multiple replicas, you should also switch to PostgreSQL for the main database and set up Redis. See the Scaling & HA guide for full requirements.
Choose the appropriate command based on your hardware setup:
-
Before Starting:
Directories for your volumes need to be created on the host, or you can specify a custom location or volume.
The current example utilizes an isolated dir
data, which is within the same dir as thedocker-stack.yaml.-
For example:
bashmkdir -p data/hrida-ai data/chromadb data/huggingface
-
-
With GPU Support:
Docker-stack.yaml
services:
hrida-ai:
image: ghcr.io/hrida-ai/hrida-ai-studio:main
depends_on:
- chromadb
- vllm
volumes:
- ./data/hrida-ai:/app/backend/data
environment:
DATA_DIR: /app/backend/data
OPENAI_API_BASE_URLS: http://vllm:8000/v1
OPENAI_API_KEYS: change-me # the same value as vLLM's --api-key
ENABLE_OLLAMA_API: "False"
CHROMA_HTTP_PORT: 8000
CHROMA_HTTP_HOST: chromadb
CHROMA_TENANT: default_tenant
VECTOR_DB: chroma
HRIDAAI_NAME: Awesome ChatBot
CORS_ALLOW_ORIGIN: "*" # This is the current Default, will need to change before going live
RAG_EMBEDDING_MODEL: nomic-ai/nomic-embed-text-v1.5
RAG_EMBEDDING_MODEL_TRUST_REMOTE_CODE: "True"
ports:
- target: 8080
published: 8080
mode: overlay
deploy:
replicas: 1
restart_policy:
condition: any
delay: 5s
max_attempts: 3
chromadb:
hostname: chromadb
image: chromadb/chroma:0.5.15
volumes:
- ./data/chromadb:/chroma/chroma
environment:
- IS_PERSISTENT=TRUE
- ALLOW_RESET=TRUE
- PERSIST_DIRECTORY=/chroma/chroma
ports:
- target: 8000
published: 8000
mode: overlay
deploy:
replicas: 1
restart_policy:
condition: any
delay: 5s
max_attempts: 3
healthcheck:
test: ["CMD-SHELL", "curl localhost:8000/api/v1/heartbeat || exit 1"]
interval: 10s
retries: 2
start_period: 5s
timeout: 10s
vllm:
image: vllm/vllm-openai:latest
hostname: vllm
# Not published: only Hrida.ai calls it, over the stack network.
command: --model Qwen/Qwen2.5-7B-Instruct --served-model-name qwen2.5-7b --api-key change-me
deploy:
resources:
reservations:
generic_resources:
- discrete_resource_spec:
kind: "NVIDIA-GPU"
value: 1
replicas: 1
restart_policy:
condition: any
delay: 5s
max_attempts: 3
volumes:
- ./data/huggingface:/root/.cache/huggingface
# vLLM needs shared memory; Swarm has no ipc: host, so mount a tmpfs.
- type: tmpfs
target: /dev/shm
tmpfs:
size: 8589934592
-
Additional Requirements:
- Ensure CUDA is Enabled, follow your OS and GPU instructions for that.
- Enable Docker GPU support, see Nvidia Container Toolkit
- Ensure GPU Resource is enabled in
/etc/nvidia-container-runtime/config.tomland enable GPU resource advertising by uncommenting theswarm-resource = "DOCKER_RESOURCE_GPU". The docker daemon must be restarted after updating these files on each node.
-
Without a GPU:
vLLM needs a GPU node. On a cluster without one, remove the
vllmservice and pointOPENAI_API_BASE_URLSat a model server elsewhere: a vLLM server on a GPU machine, a cloud provider, or a CPU server such as LocalAI. -
Deploy Docker Stack:
bashdocker stack deploy -c docker-stack.yaml -d super-awesome-ai
Using Docker with WSL (Windows Subsystem for Linux)
This guide provides instructions for setting up Docker and running Hrida.ai in a Windows Subsystem for Linux (WSL) environment.
Step 1: Install WSL
If you haven't already, install WSL by following the official Microsoft documentation:
Step 2: Install Docker Desktop
Docker Desktop is the easiest way to get Docker running in a WSL environment. It handles the integration between Windows and WSL automatically.
-
Download Docker Desktop: https://www.docker.com/products/docker-desktop/
-
Install Docker Desktop: Follow the installation instructions, making sure to select the "WSL 2" backend during the setup process.
Step 3: Configure Docker Desktop for WSL
-
Open Docker Desktop: Start the Docker Desktop application.
-
Enable WSL Integration:
- Go to Settings > Resources > WSL Integration.
- Make sure the "Enable integration with my default WSL distro" checkbox is selected.
- If you are using a non-default WSL distribution, select it from the list.
Step 4: Run Hrida.ai
Now you can run Hrida.ai by following the standard Docker instructions from within your WSL terminal.
docker pull ghcr.io/hrida-ai/hrida-ai-studio:main
docker run -d -p 3000:8080 -v hrida-ai:/app/backend/data --name hrida-ai ghcr.io/hrida-ai/hrida-ai-studio:mainImportant Notes
-
Run Docker Commands in WSL: Always run
dockercommands from your WSL terminal, not from PowerShell or Command Prompt. -
File System Access: When using volume mounts (
-v), make sure the paths are accessible from your WSL distribution.
- Helm
Helm Setup for Kubernetes
Helm helps you manage Kubernetes applications.
Prerequisites
- Kubernetes cluster is set up.
- Helm is installed.
Helm Steps
-
Add Hrida.ai Helm Repository:
bashhelm repo add hrida-ai https://helm.hrida.ai/ helm repo update -
Install Hrida.ai Chart:
bashhelm install hridaai hrida-ai/hrida-ai -
Verify Installation:
bashkubectl get pods
If you intend to scale Hrida.ai using multiple nodes/pods/workers in a clustered environment, you need to setup a NoSQL key-value database (Redis). There are some environment variables that need to be set to the same value for all service-instances, otherwise consistency problems, faulty sessions and other issues will occur!
Important: The default vector database (ChromaDB) uses a local SQLite-backed client that is not safe for multi-replica or multi-worker deployments. SQLite connections are not fork-safe, and concurrent writes from multiple processes will crash workers instantly. You must switch to an external vector database (PGVector, Milvus, Qdrant) via VECTOR_DB, or run ChromaDB as a separate HTTP server via CHROMA_HTTP_HOST.
For the complete step-by-step scaling walkthrough, see Deployment & Scaling. For troubleshooting multi-replica issues, see the Scaling & HA guide.
If you run Hrida.ai with multiple replicas/pods (replicaCount > 1) or UVICORN_WORKERS > 1, you MUST scale down to a single replica/pod during updates.
- Scale down deployment to 1 replica.
- Apply the update (new image version).
- Wait for the pod to be fully ready (database migrations complete).
- Scale back up to your desired replica count.
Failure to do this can result in database corruption due to concurrent migrations.
Access the Hrida.ai
You can access Hrida.ai by port-forwarding or configuring an Ingress.
Ingress Configuration (Nginx)
If you are using the NGINX Ingress Controller, you can enable session affinity (sticky sessions) to improve WebSocket stability. Add the following annotation to your Ingress resource:
metadata:
annotations:
nginx.ingress.kubernetes.io/affinity: "cookie"
nginx.ingress.kubernetes.io/session-cookie-name: "hrida-ai-session"
nginx.ingress.kubernetes.io/session-cookie-expires: "172800"
nginx.ingress.kubernetes.io/session-cookie-max-age: "172800"This ensures that a user's session remains connected to the same pod, reducing issues with WebSocket connections in multi-replica setups (though correct Redis configuration makes this less critical).
Uninstall
-
Uninstall the Helm Release:
bashhelm uninstall hridaai -
Remove Persistent Volume Claims (WARNING: Deletes all data): Helm does not automatically delete PVCs to prevent accidental data loss. You must delete them manually if you want to wipe everything.
bashkubectl delete pvc -l app.kubernetes.io/instance=hridaai
Desktop App
Download the desktop app from the releases page. It runs Hrida.ai natively on your system without Docker or manual setup.
For production deployments, install via Docker or Kubernetes.
- Admin account: The first account created gets Administrator privileges and controls user management and system settings.
- New sign-ups: Subsequent registrations start with Pending status and require Administrator approval.
- Privacy: All data, including login details, is stored locally on your device by default. Hrida.ai does not make external requests by default. All models are private by default and must be explicitly shared.
Connect a Model Provider
Hrida.ai needs at least one model provider to start chatting. Choose yours:
What's Next
- New to Hrida.ai? Read Hrida.ai Essentials next. It covers ten things in order: tool calling, plugins, task models, context management, RAG, Hrida Terminal, Automations, Agent Builder, API Builder and Voice Agents.
- Explore features. Once connected, see what Hrida.ai can do in the Features Overview.