-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
128 lines (110 loc) · 4.56 KB
/
.env.example
File metadata and controls
128 lines (110 loc) · 4.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
# =============================================================================
# KronosFinceptLab Configuration
# Copy this file to .env and fill in your local values.
# NEVER commit .env or real API keys to version control.
# =============================================================================
# ---------- Kronos Model Paths ----------
# Path to the upstream Kronos source repo used by the predictor.
KRONOS_REPO_PATH=E:/AI_Projects/KronosFinceptLab/external/Kronos
# Hugging Face cache / model weights directory.
HF_HOME=E:/AI_Projects/KronosFinceptLab/external
# Optional Hugging Face token for authenticated downloads and lower rate-limit risk.
HF_TOKEN=hf_xxxx
# ---------- Kronos Model Runtime ----------
# Supported families include NeoQuasar/Kronos-mini, NeoQuasar/Kronos-small, and NeoQuasar/Kronos-base.
KRONOS_MODEL_ID=NeoQuasar/Kronos-base
KRONOS_ENABLE_REAL_MODEL=1
KRONOS_ALLOW_DRY_RUN=1
KRONOS_PREWARM_ON_STARTUP=0
KRONOS_DEVICE=cpu
# ---------- Data Sources ----------
# BaoStock, AkShare, Yahoo Finance, Stooq-style fallbacks, Binance/OKX, Treasury,
# BIS, SEC/EDGAR, CFTC and other public providers are used where available.
# Most built-in data sources do not require keys, but external services may rate-limit.
# ---------- LLM Providers ----------
# The current shared analysis chain is DeepSeek first, then OpenRouter fallback when configured.
# OpenAI/Anthropic settings are kept for compatible helper paths and future integrations.
# OpenAI / compatible APIs
OPENAI_API_KEY=sk-xxxx
OPENAI_BASE_URL=https://api.openai.com/v1/chat/completions
OPENAI_MODEL=gpt-4o
# Anthropic Claude
ANTHROPIC_API_KEY=sk-ant-xxxx
ANTHROPIC_MODEL=claude-sonnet-4-20250514
# DeepSeek primary provider for agent/macro report synthesis.
DEEPSEEK_API_KEY=sk-xxxx
DEEPSEEK_BASE_URL=https://api.deepseek.com/chat/completions
DEEPSEEK_MODEL=deepseek-v4-flash
# OpenRouter fallback provider. Leave the placeholder value to keep it disabled.
OPENROUTER_API_KEY=sk-or-xxxx
OPENROUTER_BASE_URL=https://openrouter.ai/api/v1/chat/completions
OPENROUTER_MODEL=deepseek/deepseek-v4-flash:free
# Provider retry/circuit settings.
KRONOS_LLM_MAX_PROVIDER_ATTEMPTS=2
KRONOS_LLM_CIRCUIT_FAILURES=5
KRONOS_LLM_CIRCUIT_COOLDOWN_SECONDS=300
# ---------- Web Search / Research Enrichment ----------
# Generic web search is disabled unless a provider and key/endpoint are configured.
WEB_SEARCH_PROVIDER=
WEB_SEARCH_API_KEY=xxxx
WEB_SEARCH_ENDPOINT=
WEB_SEARCH_TIMEOUT_SECONDS=8
WEB_SEARCH_MAX_RESULTS=4
# AnySearch is opt-in and anonymous when enabled.
ANYSEARCH_ENABLED=false
ANYSEARCH_ENDPOINT=https://api.anysearch.com/v1/search
ANYSEARCH_TIMEOUT_SECONDS=8
ANYSEARCH_MAX_RESULTS=4
# ---------- API Server ----------
API_HOST=0.0.0.0
API_PORT=8000
LOG_LEVEL=INFO
# Interactive API docs are disabled by default. Set to 1 for local debugging.
KRONOS_ENABLE_API_DOCS=0
# Disable auth only for local development; never enable this in public deployments.
KRONOS_AUTH_DISABLED=0
# Comma-separated API keys. User keys can call normal API routes; admin/internal keys are required for alerts/admin.
KRONOS_API_KEYS=change-me-user-key
KRONOS_ADMIN_API_KEYS=change-me-admin-key
KRONOS_INTERNAL_API_KEY=change-me-internal-key
KRONOS_INTERNAL_API_KEYS=
# Request body budget in bytes.
KRONOS_MAX_BODY_BYTES=1048576
# ---------- Rate Limits ----------
# Values are per window per key/IP depending on auth state.
KRONOS_RATE_LIMIT_DEFAULT=60/minute
KRONOS_RATE_LIMIT_FORECAST=20/minute
KRONOS_RATE_LIMIT_BATCH=10/minute
KRONOS_RATE_LIMIT_BACKTEST=10/minute
KRONOS_RATE_LIMIT_LLM=10/minute
KRONOS_RATE_LIMIT_DATA=60/minute
KRONOS_RATE_LIMIT_ALERT=20/minute
KRONOS_RATE_LIMIT_SUGGESTIONS=20/minute
# ---------- Alerts ----------
KRONOS_ALERT_MAX_RULES=100
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_USER=
SMTP_PASSWORD=
SMTP_FROM=
# ---------- Web Frontend / Next.js Proxy ----------
# Public web port. The combined Docker/Zeabur runtime exposes this port.
PORT=3000
# Server-side Next.js API proxy target. Docker uses the internal FastAPI service.
INTERNAL_API_URL=http://127.0.0.1:8000
API_PROXY_TIMEOUT_MS=120000
# Optional browser-facing default API key; prefer setting keys in the Web settings page for local use.
NEXT_PUBLIC_KRONOS_API_KEY=
# ---------- Build / Deployment Metadata ----------
KRONOS_APP_VERSION=v10.8.9
KRONOS_BUILD_COMMIT=unknown
KRONOS_BUILD_REF=unknown
KRONOS_BUILD_SOURCE=local
# ---------- Logging ----------
# Local default stays human-readable; Zeabur/Docker image overrides to json stdout.
KRONOS_LOG_LEVEL=INFO
KRONOS_LOG_FORMAT=text
KRONOS_LOG_ENABLE_FILE=1
KRONOS_LOG_DIR=logs
KRONOS_LOG_RETENTION_DAYS=14
KRONOS_LOG_MAX_BYTES=10485760