Skip to main content
AllCodex services use environment variables for configuration. The following tables list the available variables.

AllCodex Core (database)

These variables configure database paths, ports, and startup credentials.

AllKnower (parsing brain)

These variables configure database models, connections, OpenRouter keys, and model selections.

System settings

Web push and email notifications

Override the default models for specific tasks. Each task supports a primary model and up to three fallback models.
  • Fallback syntax: Append _FALLBACK_1, _FALLBACK_2, or _FALLBACK_3 to any model key (e.g. BRAIN_DUMP_MODEL_FALLBACK_1=google/gemini-2.5-pro).
  • Auto route: Set USE_OPENROUTER_AUTO=true to let OpenRouter automatically select the best model for all tasks.

Local model providers

AllKnower can route any parser or embedding task to a local OpenAI-compatible server such as Ollama, LM Studio, or vLLM. This lets you run AllCodex fully offline or mix local and cloud models in the same fallback chain. To send a task to your local provider, prefix the model name with ollama/ or local/. AllKnower strips the prefix before calling the local server and automatically removes OpenRouter-only fields (models, plugins, provider) so requests stay compatible. Local models participate in the same fallback chain as cloud models. You can lead with a local model and fall back to a cloud model when the local server is offline, or the reverse.
The LanceDB vector table is created with a fixed dimension. If you change EMBEDDING_CLOUD to a model with a different output size (for example switching from a 1024-dim cloud model to a 768-dim local model), set EMBEDDING_DIMENSIONS to match, delete the existing LanceDB table, and run POST /rag/reindex to rebuild it.

AllCodex Portal (frontend)

These variables configure connections to backend services and secret handshakes.