Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
133 lines (118 loc) · 6.82 KB
/
Copy path.env.example
File metadata and controls
133 lines (118 loc) · 6.82 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
129
130
131
132
133
# ===== LLM configuration =====
# LLM_PROVIDER=claude (default) uses Anthropic's OpenAI-compatible endpoint.
# LLM_API_KEY falls back to ANTHROPIC_API_KEY when LLM_PROVIDER=claude.
# Set LLM_PROVIDER=openai to use any other OpenAI-format API.
# Run ./mm configure for private, provider-neutral setup and model discovery.
# Start with a small cohort and 1-3 rounds before a large run.
LLM_PROVIDER=claude
LLM_API_KEY=your_api_key_here
LLM_BASE_URL=https://api.anthropic.com/v1/
LLM_MODEL_NAME=claude-haiku-4-5
# ===== Other API providers (OpenAI-compatible) =====
# LLM_PROVIDER=<name> with that provider's key; remove LLM_BASE_URL / LLM_MODEL_NAME above to use its defaults
# (or set <NAME>_BASE_URL / <NAME>_MODEL_NAME). The same keys feed LLM_POOL slots, for example
# LLM_POOL=deepseek,kimi,claude. Names: deepseek, kimi (moonshot), mistral, xai (grok), groq, together,
# fireworks, openrouter, qwen (dashscope), zhipu (glm, zai), cerebras, minimax, custom.
# DEEPSEEK_API_KEY=
# MOONSHOT_API_KEY= # Kimi; KIMI_API_KEY also works
# MISTRAL_API_KEY=
# XAI_API_KEY=
# GROQ_API_KEY=
# TOGETHER_API_KEY=
# FIREWORKS_API_KEY=
# OPENROUTER_API_KEY=
# DASHSCOPE_API_KEY= # Qwen (Alibaba Model Studio); QWEN_API_KEY also works
# QWEN_BASE_URL=https://{WorkspaceId}.ap-southeast-1.maas.aliyuncs.com/compatible-mode/v1
# ZAI_API_KEY= # Z.ai GLM; ZHIPU_API_KEY also works
# CEREBRAS_API_KEY=
# MINIMAX_API_KEY=
# Any other OpenAI-compatible API, as a pool slot named custom:
# CUSTOM_API_KEY=
# CUSTOM_BASE_URL=https://api.example.com/v1
# CUSTOM_MODEL_NAME=
# ===== Local models: no hosted API key =====
# ./mm provider configure --provider ollama --model YOUR_INSTALLED_MODEL_ID
# LM Studio and other OpenAI-compatible local servers are also supported.
# ===== Login gateway =====
# ./mm gateway login (eligible Sign in with ChatGPT flow)
# ./mm gateway start siwc (or codex / claude for existing local CLI logins)
# The helper creates a private bearer token and writes the settings below.
# LLM_PROVIDER=openai
# LLM_BASE_URL=http://127.0.0.1:5055/v1
# LLM_API_KEY=<private bearer token written by the helper>
# LLM_GATEWAY=claude
# LLM_MODEL_NAME=claude
# Backend binds to loopback by default. Set FLASK_HOST explicitly to change it.
# ===== Optional: Jev decision model (TypeSafe) for scoring and classification =====
# Jev rates free-text survey answers on 1-5 scales, labels concerns and checks survey objection tags.
# It does not play the simulated people. Direct: set TYPESAFE_API_KEY. Through OpenRouter: set
# OPENROUTER_API_KEY and JEV_VIA=openrouter. Check with: ./mm cli jev check
# TYPESAFE_API_KEY=
# JEV_VIA=openrouter
# JEV_MODEL=jev-latest
# JEV_BASE_URL=https://api.typesafe.ai/v1
# JEV_PARALLEL=4
# What maps survey free text to ratings: embeddings (default), jev, or auto (Jev, embeddings for what it did not rate)
# SSR_ENGINE=embeddings
# ===== Memory / knowledge-graph backend =====
# local (default): free, self-contained SQLite graph. Entities and relationships
# are extracted from your documents with the LLM configured above;
# search is hybrid BM25 + local embeddings (no API key needed).
# cognee: optional Cognee (open source) extraction + search. Cognee runs as a
# sidecar in its own venv because it conflicts with camel-ai's pins:
# backend/memory_sidecar/cognee_sidecar.sh setup && ... start
# zep: legacy hosted Zep Cloud (https://app.getzep.com/), requires ZEP_API_KEY.
MEMORY_BACKEND=local
# SQLite file for the local backend (default: backend/uploads/local_graph.db).
# LOCAL_GRAPH_DB=/absolute/path/to/local_graph.db
# Local embeddings (fastembed, ONNX on CPU, downloaded once, ~220 MB). If fastembed or
# the model is unavailable the backend silently falls back to BM25 keyword search.
MEMORY_EMBEDDINGS=true
# Multilingual default (English/Chinese/Indonesian/Malay/Hindi/... ~50 languages).
# English-only and smaller/faster: BAAI/bge-small-en-v1.5
# MEMORY_EMBED_MODEL=sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2
# Model cache (default: backend/uploads/models; FASTEMBED_CACHE_PATH is honoured too).
# MEMORY_EMBED_CACHE_DIR=/absolute/path/to/models
# Merge same-type entities whose names embed at least this similar (0-1).
# MEMORY_ENTITY_SIMILARITY=0.9
# Minimum cosine similarity for a semantic search hit.
# MEMORY_MIN_SIMILARITY=0.3
# Also run LLM entity extraction on simulation activity episodes (local/cognee only).
# Off by default because it costs one LLM call per activity batch; when off, activity
# is still stored and searchable.
MEMORY_EXTRACT_ACTIVITY=false
# Number of parallel LLM extraction workers for the local backend.
# LOCAL_GRAPH_EXTRACT_WORKERS=4
# Characters of one chunk/episode sent to the extraction LLM (longer text is truncated).
# LOCAL_GRAPH_MAX_EPISODE_CHARS=6000
# ===== Cognee sidecar (optional, only used when MEMORY_BACKEND=cognee) =====
# The sidecar reuses LLM_PROVIDER/LLM_API_KEY/LLM_MODEL_NAME (claude -> Cognee's anthropic
# provider) and MEMORY_EMBED_MODEL (fastembed). Data lives in backend/uploads/cognee.
# COGNEE_SIDECAR_URL=http://127.0.0.1:8765
# COGNEE_SIDECAR_PORT=8765
# COGNEE_INGEST_BATCH=20
# COGNEE_DATA_DIR=/absolute/path/to/cognee-data
# ===== Zep Cloud (legacy, only used when MEMORY_BACKEND=zep) =====
# ZEP_API_KEY=your_zep_api_key_here
# ===== Boost LLM configuration (optional) =====
# Leave these out of your .env entirely if you do not use a boost model.
# LLM_BOOST_API_KEY=your_api_key_here
# LLM_BOOST_BASE_URL=your_base_url_here
# LLM_BOOST_MODEL_NAME=your_model_name_here
# ===== Workspace database and team accounts (optional) =====
# Chats, projects, pins and the run index live in a database. SQLite in backend/uploads is the default.
# MM_DATABASE_URL=postgresql://user:password@host:5432/marketmirror # needs: uv pip install "psycopg[binary]"
# Team mode: sign-in, workspaces, roles and invitations. Off by default; the local app needs no account.
# MM_ACCOUNTS=on
# MM_PUBLIC_ORIGIN=https://mm.example.com # the exact origin people open; required with MM_ENV=production
# MM_SIGNUPS=invite # open | invite | closed (the first account is always allowed)
# Workspace world map tiles. openfreemap (default): OpenFreeMap street styles and NASA Blue Marble
# satellite, no key. off: no outside map requests, only the offline country map. custom: your own hosts.
# MM_MAP_TILES=openfreemap
# MM_MAP_STYLE_URL=https://tiles.example.com/styles/streets.json # with MM_MAP_TILES=custom
# MM_MAP_DARK_STYLE_URL=https://tiles.example.com/styles/dark.json
# MM_MAP_SATELLITE_TILES=https://tiles.example.com/sat/{z}/{x}/{y}.jpg
# MM_MAP_GLYPHS=https://tiles.example.com/fonts/{fontstack}/{range}.pbf
# Predicted brain response (Meta TRIBE v2, noncommercial research model), off unless set. See docs/brain-response.md.
# MM_BRAIN_RESPONSE_URL=
# MM_BRAIN_RESPONSE_TOKEN=