-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
197 lines (158 loc) · 7.24 KB
/
.env.example
File metadata and controls
197 lines (158 loc) · 7.24 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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
# ContextFS Configuration
# Copy to .env and modify as needed
# =============================================================================
# STORAGE BACKEND SELECTION
# =============================================================================
# Options: sqlite (default), postgres, sqlite+falkordb, postgres+falkordb
# - sqlite: Local SQLite + ChromaDB (default, zero config)
# - postgres: PostgreSQL with pgvector + Apache AGE (unified)
# - sqlite+falkordb: SQLite + ChromaDB + FalkorDB graph
# - postgres+falkordb: PostgreSQL + FalkorDB graph
CONTEXTFS_BACKEND=sqlite
# =============================================================================
# DATA DIRECTORY (for sqlite/chromadb backends)
# =============================================================================
CONTEXTFS_DATA_DIR=~/.contextfs
# =============================================================================
# SQLITE CONFIGURATION
# =============================================================================
# Database filename (relative to DATA_DIR)
CONTEXTFS_SQLITE_FILENAME=context.db
# =============================================================================
# POSTGRESQL CONFIGURATION
# =============================================================================
# Connection string format: postgresql://user:password@host:port/database
CONTEXTFS_POSTGRES_URL=postgresql://contextfs:contextfs@localhost:5432/contextfs
# Enable pgvector extension for semantic search
CONTEXTFS_POSTGRES_PGVECTOR=true
# Enable Apache AGE extension for graph operations
CONTEXTFS_POSTGRES_AGE=true
# =============================================================================
# CHROMADB CONFIGURATION
# =============================================================================
# Embedding model for semantic search
CONTEXTFS_EMBEDDING_MODEL=all-MiniLM-L6-v2
# Embedding backend: auto (fastembed if installed, else sentence_transformers),
# fastembed (ONNX, faster), or sentence_transformers
CONTEXTFS_EMBEDDING_BACKEND=auto
# GPU acceleration: true, false, or empty for auto-detect
# Auto-detect enables CoreML on Apple Silicon (M1/M2/M3), CPU elsewhere
CONTEXTFS_USE_GPU=
# Parallel workers for embedding (empty = auto)
CONTEXTFS_EMBEDDING_PARALLEL_WORKERS=
# Embedding batch size (default: 256, larger = faster but more memory)
CONTEXTFS_EMBEDDING_BATCH_SIZE=256
# ChromaDB collection name
CONTEXTFS_CHROMA_COLLECTION=contextfs_memories
# ChromaDB server mode (optional, for remote ChromaDB)
# Leave empty for embedded mode
CONTEXTFS_CHROMA_HOST=
CONTEXTFS_CHROMA_PORT=8000
# =============================================================================
# FALKORDB CONFIGURATION (Graph Backend)
# =============================================================================
# Enable FalkorDB for advanced graph operations
CONTEXTFS_FALKORDB_ENABLED=false
# FalkorDB connection settings
CONTEXTFS_FALKORDB_HOST=localhost
CONTEXTFS_FALKORDB_PORT=6379
CONTEXTFS_FALKORDB_PASSWORD=
CONTEXTFS_FALKORDB_GRAPH_NAME=contextfs_memory
# =============================================================================
# MEMORY LINEAGE SETTINGS
# =============================================================================
# Enable automatic lineage tracking on memory updates
CONTEXTFS_LINEAGE_AUTO_TRACK=true
# Default merge strategy: union, intersection, latest, oldest
CONTEXTFS_LINEAGE_MERGE_STRATEGY=union
# Preserve tags when evolving memories
CONTEXTFS_LINEAGE_PRESERVE_TAGS=true
# =============================================================================
# SEARCH SETTINGS
# =============================================================================
# Default number of search results
CONTEXTFS_DEFAULT_SEARCH_LIMIT=10
# Minimum similarity score for semantic search (0.0-1.0)
CONTEXTFS_MIN_SIMILARITY_SCORE=0.3
# =============================================================================
# INDEXING SETTINGS
# =============================================================================
# Maximum git commits to index per repo (0 = unlimited)
CONTEXTFS_MAX_COMMITS=100
# =============================================================================
# SESSION SETTINGS
# =============================================================================
# Auto-save sessions on exit
CONTEXTFS_AUTO_SAVE_SESSIONS=true
# Session timeout in minutes
CONTEXTFS_SESSION_TIMEOUT_MINUTES=60
# Maximum concurrent login sessions per user per session type (Web, CLI, OAuth)
# When limit is exceeded, oldest session is removed (LRU policy)
CONTEXTFS_MAX_SESSIONS=10
# =============================================================================
# API KEYS (Optional - for LLM-powered features)
# =============================================================================
CONTEXTFS_ANTHROPIC_API_KEY=
CONTEXTFS_OPENAI_API_KEY=
# Default AI model for summaries: claude or openai
CONTEXTFS_DEFAULT_AI_MODEL=claude
CONTEXTFS_CLAUDE_MODEL=claude-3-sonnet-20240229
CONTEXTFS_OPENAI_MODEL=gpt-3.5-turbo
# =============================================================================
# MCP SERVER SETTINGS
# =============================================================================
# Enable MCP server
CONTEXTFS_MCP_ENABLED=true
# MCP server port (SSE transport)
CONTEXTFS_MCP_PORT=8003
# =============================================================================
# LOGGING
# =============================================================================
# Log level: DEBUG, INFO, WARNING, ERROR
CONTEXTFS_LOG_LEVEL=INFO
# Log file (empty for stdout only)
CONTEXTFS_LOG_FILE=
# =============================================================================
# CLOUD SYNC SERVICE
# =============================================================================
# OAuth credentials for web frontend
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
# OAuth credentials for CLI (separate OAuth apps with localhost callback)
CONTEXTFS_CLI_GITHUB_CLIENT_ID=
CONTEXTFS_CLI_GITHUB_CLIENT_SECRET=
CONTEXTFS_CLI_GOOGLE_CLIENT_ID=
CONTEXTFS_CLI_GOOGLE_CLIENT_SECRET=
CONTEXTFS_CLI_OAUTH_PORT=8400
# Stripe (for billing)
STRIPE_SECRET_KEY=
STRIPE_WEBHOOK_SECRET=
STRIPE_PRICE_PRO=
STRIPE_PRICE_TEAM=
# Email service (Mailgun)
MAILGUN_API_KEY=
MAILGUN_DOMAIN=appmail.magnetonlabs.com
# App URLs
APP_BASE_URL=http://localhost:3000
# =============================================================================
# DEVELOPMENT / TESTING
# =============================================================================
# Enable debug mode
CONTEXTFS_DEBUG=false
# Test mode (uses in-memory databases)
CONTEXTFS_TEST_MODE=false
# =============================================================================
# NPM PUBLISHING (for maintainers)
# =============================================================================
# NPM token for publishing claude-plugin-contextfs package
# Create at: https://www.npmjs.com/settings/tokens
# Required permissions: Read and write, with "Bypass 2FA for automation"
NPM_TOKEN=
# =============================================================================
# SLACK NOTIFICATIONS (for maintainers)
# =============================================================================
# Slack incoming webhook URL for release notifications
# Create at: https://api.slack.com/apps → Your App → Incoming Webhooks
SLACK_WEBHOOK_URL=