Skip to content

Configuration

Sergey Gerasimov edited this page Oct 22, 2026 · 2 revisions

Configuration Reference

Runtime paths

Variable Default Purpose
DERIVLAB_DATA_DIR ./data/cache Runtime Parquet cache
DERIVLAB_SEED_DIR ./data/seed Bundled fallback snapshot
DERIVLAB_PORT 8501 Host port for Docker Compose
DERIVLAB_BIND_ADDR 127.0.0.1 Host bind address
TZ UTC Container timezone
STREAMLIT_SERVER_FILE_WATCHER_TYPE auto Set none in production

AI variables

Variable Default Purpose
DERIVLAB_LLM_PROVIDER local Provider selection
DERIVLAB_LLM_BASE_URL provider default API endpoint
DERIVLAB_LLM_API_KEY empty Provider secret
DERIVLAB_LLM_MODEL provider default Shared model
DERIVLAB_DECISION_MODEL provider default Agent decisions
DERIVLAB_CRITIC_MODEL provider default AlphaVanguard
DERIVLAB_NEWS_MODEL provider default NewsWire
DERIVLAB_LLM_TIMEOUT 25 HTTP timeout
DERIVLAB_LLM_TEMPERATURE 0.55 Sampling temperature

See AI Model Guide for tested values and GPT-5 caveats.


Environment precedence

  1. Real shell/container environment variables.
  2. Project-root .env (local launcher).
  3. Built-in defaults.

The .env loader never overrides an existing environment variable and never prints values.


Docker Compose

docker compose up -d --build
docker compose logs -f derivlab-app
docker compose down
docker compose down -v   # also remove the cache volume

The app and optional seeder both use restart: "no". See Deployment.


Dev Container

devcontainer.json builds from the same Dockerfile, forwards 8501, sets shutdownAction: stopContainer, and passes optional LLM variables from the host. See Getting Started.


Version

APP_VERSION is defined in derivlab/config.py; the Docker image tag follows it. Current release: 1.2.0.

Clone this wiki locally