Repository navigation
Configuration
Sergey Gerasimov edited this page Oct 22, 2026
·
2 revisions
| 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 |
| 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.
- Real shell/container environment variables.
- Project-root
.env(local launcher). - Built-in defaults.
The .env loader never overrides an existing environment variable and never
prints values.
docker compose up -d --build
docker compose logs -f derivlab-app
docker compose down
docker compose down -v # also remove the cache volumeThe app and optional seeder both use restart: "no". See Deployment.
devcontainer.json builds from the same Dockerfile, forwards 8501, sets
shutdownAction: stopContainer, and passes optional LLM variables from the host.
See Getting Started.
APP_VERSION is defined in derivlab/config.py; the Docker image tag follows
it. Current release: 1.2.0.
DerivLab · an educational options & futures strategy emulator · docs verified against v1.2.0 on 2026-10-23 · README · Docs feedback · MIT License · Not investment advice.
Start here
- Home
- Getting Started
- Compatibility & Versions
- Feature Tour
- FAQ
- Documentation & ADRs
- Versioning
- Roadmap
Core systems
- Architecture
- Backtest Engine
- Strategy Library
- AI Agents
- AI Model Guide
- LLM Quality & Safety
- Data Pipeline
- Game Mode
Engineering
- Configuration
- Testing & CI
- Deployment
- Security
- Project Structure
- Troubleshooting
- Glossary
- Release Notes