Environment Variable Configuration
Hrida.ai is configured through environment variables on its container. This reference lists every variable with its type, default and purpose, grouped by area.
Variables by Area
| Area | What it covers |
|---|---|
| App & Backend | Core server settings — URLs, sign-up, sessions, directories, logging, OpenAI-compatible and Ollama connections, task models, code execution, tool servers and caching. |
| Security | Secret keys, JWT and session lifetimes, cookies, CORS, API keys and other settings that harden a Hrida.ai deployment. |
| Vector Databases | Choose and connect the vector store for RAG — ChromaDB, Elasticsearch, Milvus, MariaDB Vector, OpenSearch, PGVector, Qdrant, Pinecone, Weaviate, Oracle 23ai and S3 Vector buckets. |
| RAG & Content Extraction | Content extraction engines, document processing, embeddings, reranking, query generation and cloud document sources for retrieval-augmented generation. |
| Web Search | Web search providers, result limits, the web loader and the YouTube loader. |
| Audio | Speech-to-text and text-to-speech engines — local Whisper, OpenAI, Azure, Deepgram, Mistral and ElevenLabs — and voice mode. |
| Image Generation | Image creation and editing with OpenAI, Gemini, ComfyUI and AUTOMATIC1111. |
| Authentication | Single sign-on with Google, Microsoft, GitHub, Feishu and OpenID Connect, LDAP directories and SCIM provisioning. |
| User Permissions | Default permissions for chats, features, workspace items, sharing, access grants, import/export and settings. |
| Storage & Infrastructure | Cloud storage, OpenTelemetry, database pooling, encrypted SQLite, Redis, Uvicorn, caching, proxies and Python package installs. |
Before You Change a Variable
This reference is up to date with Hrida.ai v1.0.0. It is still being expanded with fuller descriptions, the allowed values for each variable, and their defaults.
Important Note on ConfigVar Environment Variables
When launching Hrida.ai for the first time, all environment variables are treated equally and can be used to configure the application. However, for environment variables marked as ConfigVar, their values are persisted and stored internally.
After the initial launch, if you restart the container, ConfigVar environment variables will no longer use the external environment variable values. Instead, they will use the internally stored values.
In contrast, regular environment variables will continue to be updated and applied on each subsequent restart.
You can update the values of ConfigVar environment variables directly from within Hrida.ai, and these changes will be stored internally. This allows you to manage these configuration settings independently of the external environment variables.
Please note that ConfigVar environment variables are clearly marked as such in the documentation below, so you can be aware of how they will behave.
To disable this behavior and force Hrida.ai to always use your environment variables (ignoring the database), set ENABLE_PERSISTENT_CONFIG to False.
CRITICAL WARNING: When ENABLE_PERSISTENT_CONFIG is False, you may still be able to edit settings in the Admin UI. However, these changes are NOT saved permanently. They will persist only for the current session and will be lost when you restart the container, as the system will revert to the values defined in your environment variables.
Troubleshooting Ignored Environment Variables
If you change an environment variable (like ENABLE_SIGNUP=True) but don't see the change reflected in the UI (e.g., the "Sign Up" button is still missing), it's likely because a value has already been persisted in the database from a previous run or a persistent Docker volume.
Option 1: Using ENABLE_PERSISTENT_CONFIG (Temporary Fix)
Set ENABLE_PERSISTENT_CONFIG=False in your environment. This forces Hrida.ai to read your variables directly. Note that UI-based settings changes will not persist across restarts in this mode.
Option 2: Update via Admin UI (Recommended)
The simplest and safest way to change ConfigVar settings is directly through the Admin Panel within Hrida.ai. Even if an environment variable is set, changes made in the UI will take precedence and be saved to the database.
Option 3: Manual Database Update (Last Resort / Lock-out Recovery)
If you are locked out or cannot access the UI, you can manually update the SQLite database via Docker:
docker exec -it hrida-ai sqlite3 /app/backend/data/hridaai.db "UPDATE config SET data = json_set(data, '$.ENABLE_SIGNUP', json('true'));"(Replace ENABLE_SIGNUP and true with the specific setting and value needed.)
Option 4: Resetting for a Fresh Install
If you are performing a clean installation and want to ensure all environment variables are fresh:
- Stop the container.
- Remove the persistent volume:
docker volume rm hrida-ai. - Restart the container.
Warning: Removing the volume will delete all user data, including chats and accounts.