-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.local.example
More file actions
190 lines (161 loc) · 7.94 KB
/
Copy path.env.local.example
File metadata and controls
190 lines (161 loc) · 7.94 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
###############################################################################
# Morphic Configuration
###############################################################################
# =============================================================================
# REQUIRED CONFIGURATION
# =============================================================================
# -----------------------------------------------------------------------------
# AI Provider Configuration (At least one required)
# -----------------------------------------------------------------------------
# Set at least one provider API key. Available models are automatically
# detected and shown in the model selector UI.
#
# For Docker: This is the only section you need to configure.
# Database and search are handled automatically by Docker Compose.
# Option 1: OpenAI
# Get your API key at: https://platform.openai.com/api-keys
OPENAI_API_KEY=[YOUR_OPENAI_API_KEY]
# Option 2: Anthropic Claude
# ANTHROPIC_API_KEY=[YOUR_ANTHROPIC_API_KEY]
# Option 3: Google Gemini
# GOOGLE_GENERATIVE_AI_API_KEY=[YOUR_GOOGLE_GENERATIVE_AI_API_KEY]
# Option 4: Vercel AI Gateway
# Unified API gateway for multiple providers
# AI_GATEWAY_API_KEY=[YOUR_AI_GATEWAY_API_KEY]
# Option 5: Ollama
# Run local AI models with Ollama
# Requires Ollama to be installed and running: https://ollama.com/
# OLLAMA_BASE_URL=http://localhost:11434
# Option 6: OpenAI-compatible endpoint (DeepSeek, Moonshot, Zhipu, etc.)
# Any provider that exposes /v1/chat/completions in the OpenAI shape.
# OPENAI_COMPATIBLE_API_KEY=[YOUR_API_KEY]
# OPENAI_COMPATIBLE_API_BASE_URL=https://api.deepseek.com
# Optional display name in the model selector. This is a UI label only; the
# internal provider id remains "openai-compatible". Defaults to "OpenAI Compatible".
# OPENAI_COMPATIBLE_PROVIDER_NAME=DeepSeek
# Optional comma-separated model whitelist. When set, the app skips the
# /v1/models HTTP call and uses this list directly. Required for providers
# without a /v1/models endpoint.
# OPENAI_COMPATIBLE_MODELS=deepseek-chat,deepseek-reasoner
# -----------------------------------------------------------------------------
# Database Configuration (Required for local development)
# -----------------------------------------------------------------------------
# Docker: Automatically configured — no need to set this.
# Local development: Set your PostgreSQL connection string.
# Cloud providers (Neon, Supabase, etc.): Add ?sslmode=require
#
# DATABASE_URL=postgresql://user:password@localhost:5432/morphic
DATABASE_URL=[YOUR_DATABASE_URL]
# -----------------------------------------------------------------------------
# Search Provider Configuration (Required for local development)
# -----------------------------------------------------------------------------
# Docker: SearXNG is included — no search API key needed.
# Local development: Set at least one search provider key.
# Option 1: Tavily Search (Default)
# Get your API key at: https://app.tavily.com/home
TAVILY_API_KEY=[YOUR_TAVILY_API_KEY]
# Option 2: Exa Neural Search (Alternative to Tavily)
# Get your API key at: https://dashboard.exa.ai/
# EXA_API_KEY=your_api_key_without_quotes
# Option 3: Firecrawl (Alternative web scraping and content extraction)
# Get your API key at: https://www.firecrawl.dev/app
# FIRECRAWL_API_KEY=[YOUR_FIRECRAWL_API_KEY]
# Brave Search (Optional - video/image support for general searches)
# Get your API key at: https://brave.com/search/api/
# BRAVE_SEARCH_API_KEY=[YOUR_BRAVE_SEARCH_API_KEY]
# =============================================================================
# OPTIONAL FEATURES
# =============================================================================
# -----------------------------------------------------------------------------
# Authentication (Optional)
# -----------------------------------------------------------------------------
# Default: Disabled for personal use. All users share one anonymous user ID.
# For personal, single-user environments only.
ENABLE_AUTH=false
ANONYMOUS_USER_ID=anonymous-user
# To enable Supabase authentication for multi-user deployments:
# Get your project URL and API keys from: https://supabase.com/dashboard
# ENABLE_AUTH=true
# NEXT_PUBLIC_SUPABASE_URL=[YOUR_SUPABASE_PROJECT_URL]
# NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY=[YOUR_SUPABASE_PUBLISHABLE_KEY]
# Required for account deletion. Never expose this key to the browser.
# SUPABASE_SECRET_KEY=[YOUR_SUPABASE_SECRET_KEY]
# -----------------------------------------------------------------------------
# File Upload (Cloudflare R2 / S3-Compatible)
# -----------------------------------------------------------------------------
# If not configured, file upload is disabled.
# R2_ACCOUNT_ID=[YOUR_R2_ACCOUNT_ID]
# S3_ENDPOINT=[YOUR_S3_ENDPOINT]
# R2_ACCESS_KEY_ID=[YOUR_R2_ACCESS_KEY_ID]
# R2_SECRET_ACCESS_KEY=[YOUR_R2_SECRET_ACCESS_KEY]
# R2_BUCKET_NAME=user-uploads
# R2_PUBLIC_URL=[YOUR_R2_PUBLIC_URL]
# -----------------------------------------------------------------------------
# Search Configuration
# -----------------------------------------------------------------------------
# Select search provider (default: tavily)
# SEARCH_API=tavily # Options: tavily, searxng, exa, firecrawl
# SearXNG (Self-hosted)
# SEARXNG_API_URL=http://localhost:8080
# SEARXNG_SECRET=[YOUR_SECRET_KEY]
# SEARXNG_PORT=8080
# SEARXNG_BIND_ADDRESS=0.0.0.0
# SEARXNG_IMAGE_PROXY=true
# SEARXNG_LIMITER=false
# SEARXNG_DEFAULT_DEPTH=basic
# SEARXNG_MAX_RESULTS=50
# SEARXNG_ENGINES=google,bing,duckduckgo,wikipedia
# SEARXNG_TIME_RANGE=None
# SEARXNG_SAFESEARCH=0
# Content Extraction
# Default: Tavily Extract API
# Alternative: Jina AI - Get your API key at: https://jina.ai/
# JINA_API_KEY=[YOUR_JINA_API_KEY]
# -----------------------------------------------------------------------------
# Observability & Monitoring
# -----------------------------------------------------------------------------
# Langfuse Tracing
# ENABLE_LANGFUSE_TRACING=true
# LANGFUSE_SECRET_KEY=[YOUR_LANGFUSE_SECRET_KEY]
# LANGFUSE_PUBLIC_KEY=[YOUR_LANGFUSE_PUBLIC_KEY]
# LANGFUSE_BASEURL=https://cloud.langfuse.com
# Performance Logging
# ENABLE_PERF_LOGGING=true
# -----------------------------------------------------------------------------
# Docker Configuration
# -----------------------------------------------------------------------------
# PostgreSQL credentials (only for Docker Compose)
# POSTGRES_USER=morphic
# POSTGRES_PASSWORD=morphic
# POSTGRES_DB=morphic
# POSTGRES_PORT=5432
# Redis (custom URL, default: redis://localhost:6379)
# LOCAL_REDIS_URL=redis://localhost:6379
# Database SSL (set true for local PostgreSQL without SSL)
# Do NOT set for cloud databases (Neon, Supabase, etc.)
# DATABASE_SSL_DISABLED=true
# -----------------------------------------------------------------------------
# Cloud Deployment
# -----------------------------------------------------------------------------
# Enable rate limiting and analytics for cloud deployments
# Requires UPSTASH_REDIS_REST_URL and UPSTASH_REDIS_REST_TOKEN
# MORPHIC_CLOUD_DEPLOYMENT=true
# -----------------------------------------------------------------------------
# PostHog (product analytics)
# -----------------------------------------------------------------------------
# Only sent when MORPHIC_CLOUD_DEPLOYMENT=true. US Cloud.
# Client-facing project key (phc_...) is safe to expose in the browser.
# NEXT_PUBLIC_POSTHOG_KEY=[YOUR_POSTHOG_PROJECT_KEY]
# NEXT_PUBLIC_POSTHOG_HOST=https://us.i.posthog.com
# POSTHOG_KEY=[YOUR_POSTHOG_PROJECT_KEY]
#
# Management API (server-only) — required only for person deletion on
# account_deleted. Use a dedicated personal API key scoped to person:write.
# POSTHOG_PERSONAL_API_KEY=[YOUR_PERSONAL_API_KEY]
# POSTHOG_PROJECT_ID=[YOUR_POSTHOG_PROJECT_ID]
# POSTHOG_API_HOST=https://us.posthog.com
# -----------------------------------------------------------------------------
# Advanced
# -----------------------------------------------------------------------------
# Feedback Notifications (Slack)
# SLACK_WEBHOOK_URL=[YOUR_SLACK_WEBHOOK_URL]