Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
138 lines (116 loc) · 5.78 KB
/
Copy path.env.example
File metadata and controls
138 lines (116 loc) · 5.78 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
# ==============================================================================
# BIOMED RESEARCH AI - Environment Variables Template
# ==============================================================================
# Copy this file to .env.local and fill in your actual values
# DO NOT commit .env.local to version control
# ==============================================================================
# ------------------------------------------------------------------------------
# APP CONFIGURATION
# ------------------------------------------------------------------------------
# Set to 'self-hosted' or 'valyu'
# self-hosted = no auth, local SQLite, unlimited queries, Ollama/LM Studio support
# valyu = full auth (Sign in with Valyu), Supabase, rate limits
NEXT_PUBLIC_APP_MODE=self-hosted
# Your app URL (use http://localhost:3000 for local development)
NEXT_PUBLIC_APP_URL=http://localhost:3000
# ------------------------------------------------------------------------------
# VALYU API (REQUIRED)
# ------------------------------------------------------------------------------
# Server API key for self-hosted mode
# Get your API key at: https://platform.valyu.ai
VALYU_API_KEY=valyu_your_api_key_here
# ------------------------------------------------------------------------------
# OPENAI API (OPTIONAL - Fallback for Self-Hosted)
# ------------------------------------------------------------------------------
# Used as fallback for AI chat responses when local models are unavailable
# Get your API key at: https://platform.openai.com
OPENAI_API_KEY=sk-your_openai_api_key_here
# ------------------------------------------------------------------------------
# DAYTONA API (REQUIRED)
# ------------------------------------------------------------------------------
# Used for secure Python code execution (statistical analysis, pharmacokinetic modeling)
# Get your API key at: https://daytona.io
DAYTONA_API_KEY=your_daytona_api_key_here
DAYTONA_API_URL=https://api.daytona.io
DAYTONA_TARGET=latest
# ------------------------------------------------------------------------------
# LOCAL LLM CONFIGURATION (RECOMMENDED - Self-Hosted Mode)
# ------------------------------------------------------------------------------
# Use Ollama or LM Studio for unlimited, private local AI queries
# Only used when NEXT_PUBLIC_APP_MODE=self-hosted
# Ollama Configuration (https://ollama.com)
OLLAMA_BASE_URL=http://localhost:11434
# LM Studio Configuration (https://lmstudio.ai)
LMSTUDIO_BASE_URL=http://localhost:1234
# ------------------------------------------------------------------------------
# VALYU OAUTH CONFIGURATION (VALYU MODE ONLY)
# ------------------------------------------------------------------------------
# NOTE: Valyu OAuth apps will be in general availability soon.
# Currently client id/secret are not publicly available.
# Contact contact@valyu.ai if you need access.
#
# "Sign in with Valyu" OAuth 2.1 authentication
# Users authenticate via Valyu Platform and use their organization's credits
# Get OAuth credentials from: https://platform.valyu.ai -> Settings -> OAuth Apps
# Valyu Platform's Supabase URL (OAuth provider)
# NEXT_PUBLIC_VALYU_SUPABASE_URL=https://xxx.supabase.co
# OAuth Client ID (public)
# NEXT_PUBLIC_VALYU_CLIENT_ID=your_oauth_client_id_here
# OAuth Client Secret (KEEP SECRET - server-side only)
# VALYU_CLIENT_SECRET=your_oauth_client_secret_here
# Valyu Platform URL (for userinfo, OAuth proxy)
# VALYU_APP_URL=https://platform.valyu.ai
# ------------------------------------------------------------------------------
# APP'S OWN SUPABASE (VALYU MODE ONLY)
# ------------------------------------------------------------------------------
# Your app's Supabase database for chat history, user data, etc.
# Separate from Valyu Platform's Supabase (which handles OAuth)
# Get these from: https://supabase.com -> Project Settings -> API
# Your Supabase project URL
# NEXT_PUBLIC_SUPABASE_URL=https://your-project.supabase.co
# Supabase anonymous (public) key
# NEXT_PUBLIC_SUPABASE_ANON_KEY=your_anon_key_here
# Supabase service role key (KEEP SECRET - never expose client-side)
# SUPABASE_SERVICE_ROLE_KEY=your_service_role_key_here
# ------------------------------------------------------------------------------
# ENTERPRISE FEATURES (OPTIONAL)
# ------------------------------------------------------------------------------
# Set to 'true' to enable enterprise contact options (banner, sidebar button, etc.)
NEXT_PUBLIC_ENTERPRISE=false
# ------------------------------------------------------------------------------
# ANALYTICS (OPTIONAL)
# ------------------------------------------------------------------------------
# PostHog for analytics and feature flags
# Get these from: https://posthog.com
# NEXT_PUBLIC_POSTHOG_KEY=your_posthog_key
# NEXT_PUBLIC_POSTHOG_HOST=https://eu.i.posthog.com
# ------------------------------------------------------------------------------
# EXAMPLE CONFIGURATIONS
# ------------------------------------------------------------------------------
# Self-Hosted Mode (Recommended - Easy Setup):
# NEXT_PUBLIC_APP_MODE=self-hosted
# VALYU_API_KEY=valyu_xxx
# DAYTONA_API_KEY=xxx
# OPENAI_API_KEY=sk-xxx (optional, for fallback)
# OLLAMA_BASE_URL=http://localhost:11434 (optional)
# Valyu Mode (OAuth Coming Soon - Contact contact@valyu.ai):
# NEXT_PUBLIC_APP_MODE=valyu
# NEXT_PUBLIC_APP_URL=https://yourdomain.com
#
# # Valyu OAuth
# NEXT_PUBLIC_VALYU_SUPABASE_URL=https://xxx.supabase.co
# NEXT_PUBLIC_VALYU_CLIENT_ID=your_client_id
# VALYU_CLIENT_SECRET=your_client_secret
# VALYU_APP_URL=https://platform.valyu.ai
#
# # Valyu API (optional fallback)
# VALYU_API_KEY=valyu_xxx
#
# # AI Models
# OPENAI_API_KEY=sk-xxx
# DAYTONA_API_KEY=xxx
#
# # App's Supabase (for data storage)
# NEXT_PUBLIC_SUPABASE_URL=https://xxx.supabase.co
# NEXT_PUBLIC_SUPABASE_ANON_KEY=xxx
# SUPABASE_SERVICE_ROLE_KEY=xxx