/ .env.example
.env.example
 1  # OpenAI-compatible backend (v1)
 2  # LLM_BASE_URL defaults to OpenAI if unset: https://api.openai.com/v1
 3  # Leave LLM_CHAT_MODEL empty to run chat in mock mode.
 4  LLM_BASE_URL=
 5  LLM_API_KEY=
 6  LLM_CHAT_MODEL=
 7  LLM_EMBEDDING_MODEL=
 8  
 9  # Optional: audio transcription endpoint model (same OpenAI-compatible server)
10  LLM_TRANSCRIPTION_MODEL=
11  
12  # Optional tuning
13  LLM_TEMPERATURE=0.3
14  LLM_TIMEOUT_MS=30000
15  
16  # App storage
17  # SQLite DB and uploads will be created under this local folder (gitignored)
18  APP_DATA_DIR=data
19  
20  # Optional sqlite-vec extension dynamic library path (future/experimental)
21  # Example (macOS): /absolute/path/to/vec0.dylib
22  SQLITE_VEC_EXTENSION_PATH=
23  
24  # Memory retrieval tuning
25  MEMORY_SEMANTIC_TOP_K=6
26  MEMORY_SIMILARITY_THRESHOLD=0.15
27  
28  # Optional pricing inputs for estimated cost tracking (USD)
29  # Totals/monthly cost UI uses these values + provider-reported usage.
30  COST_CHAT_INPUT_USD_PER_MILLION_TOKENS=
31  COST_CHAT_OUTPUT_USD_PER_MILLION_TOKENS=
32  COST_EMBEDDING_INPUT_USD_PER_MILLION_TOKENS=
33  COST_TRANSCRIPTION_USD_PER_MINUTE=
34  
35  # Optional system prompt override
36  # LLM_SYSTEM_PROMPT=You are a helpful family assistant...
37  
38  # Web search API keys (configure at least one for web search functionality)
39  # Brave Search (recommended free tier): get API key at https://brave.com/search/api/
40  BRAVE_API_KEY=
41  # Perplexity: get API key at https://www.perplexity.io/
42  PERPLEXITY_API_KEY=
43  # OpenRouter (aggregates multiple providers): get API key at https://openrouter.ai/
44  OPENROUTER_API_KEY=
45  # xAI Grok: get API key at https://x.ai/
46  XAI_API_KEY=
47  # Google Gemini: get API key at https://aistudio.google.com/app/apikey
48  GEMINI_API_KEY=
49  # Kimi/Moonshot: get API key at https://platform.moonshot.cn/
50  KIMI_API_KEY=
51  MOONSHOT_API_KEY=
52  
53  # Optional: Firecrawl for advanced web scraping (https://firecrawl.dev)
54  FIRECRAWL_API_KEY=