-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.example
More file actions
148 lines (127 loc) · 5.18 KB
/
env.example
File metadata and controls
148 lines (127 loc) · 5.18 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
## Recipes (minimal overrides)
# Local dev (git store, fastest to boot)
# RT_STORE=git
# RESEARCHTREE_PROJECTS_ROOT=data/projects
# LLM_DEFAULT_PROVIDER=mock
# DEPLOY_ENV=dev
# Local dev (Supabase cloud)
# RT_STORE=pg
# RT_PG_ADAPTER=supabase
# NEXT_PUBLIC_SUPABASE_URL=https://<project-ref>.supabase.co
# NEXT_PUBLIC_SUPABASE_ANON_KEY=eyJ...
# SUPABASE_SERVICE_ROLE_KEY=eyJ...
# LLM_DEFAULT_PROVIDER=openai_responses
# Local dev (Postgres local adapter)
# RT_STORE=pg
# RT_PG_ADAPTER=local
# LOCAL_PG_URL=postgresql://localhost:5432/youruser
# RT_PG_BOOTSTRAP=1
# LLM_DEFAULT_PROVIDER=mock
# DEPLOY_ENV=dev
# CI E2E (Supabase + real providers)
# RT_STORE=pg
# RT_PG_ADAPTER=supabase
# NEXT_PUBLIC_SUPABASE_URL=...
# NEXT_PUBLIC_SUPABASE_ANON_KEY=...
# SUPABASE_SERVICE_ROLE_KEY=...
# OPENAI_API_KEY=...
# GEMINI_API_KEY=...
# ANTHROPIC_API_KEY=...
# E2E_EMAIL=...
# E2E_PASSWORD=...
# DEPLOY_ENV=dev
# Deployment environment.
# - dev: allows dev-only providers (e.g. mock)
# - prod: hides/disables dev-only providers
DEPLOY_ENV=dev
# Default provider when the UI/server doesn't specify one.
# Must be enabled via LLM_ENABLED_PROVIDERS.
LLM_DEFAULT_PROVIDER=openai_responses
# Enabled providers (comma-separated).
# Allowed: openai, openai_responses, gemini, anthropic, mock
# In prod, `mock` is not allowed.
LLM_ENABLED_PROVIDERS=openai_responses,gemini,mock
# Provider API keys + model defaults
OPENAI_API_KEY=sk-...
OPENAI_CHATCOMPLETIONS_MODEL=gpt-5.2
OPENAI_RESPONSES_MODEL=gpt-5.2
GEMINI_API_KEY=gemini-
GEMINI_MODEL=gemini-3.1-pro-preview
ANTHROPIC_API_KEY=claude-
ANTHROPIC_MODEL=claude-4-5-sonnet-latest
ANTHROPIC_BETA=
# Model allowlists (comma-separated). If unset/empty, all code-defined provider capabilities are allowed.
LLM_ALLOWED_MODELS_OPENAI_CHATCOMPLETIONS= # Subset of models defined in src/shared/llmCapabilities.ts
LLM_ALLOWED_MODELS_OPENAI_RESPONSES= # Subset of models defined in src/shared/llmCapabilities.ts
LLM_ALLOWED_MODELS_GEMINI= # Subset of models defined in src/shared/llmCapabilities.ts
LLM_ALLOWED_MODELS_ANTHROPIC= # Subset of models defined in src/shared/llmCapabilities.ts
# Store (provenance)
# - `git`: provenance stored in on-disk git repos
# - `pg`: provenance stored in Supabase Postgres (cloud or local adapter)
RT_STORE=pg
# Git store config (use when RT_STORE=git)
RESEARCHTREE_PROJECTS_ROOT=data/projects
# Postgres adapter selection (use when RT_STORE=pg)
# - `supabase`: use Supabase PostgREST (default)
# - `local`: use a direct Postgres connection (requires LOCAL_PG_URL and no Supabase env vars)
RT_PG_ADAPTER=supabase
# Example for Postgres.app: database defaults to your macOS username.
LOCAL_PG_URL=postgresql://localhost:5432/youruser
# The app always creates/uses the `threds` database.
# Toggle automatic local migration bootstrap (default true).
RT_PG_BOOTSTRAP=1
# Supabase cloud config (use when RT_STORE=pg + RT_PG_ADAPTER=supabase)
NEXT_PUBLIC_SUPABASE_URL=https://<project-ref>.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=eyJ...
SUPABASE_SERVICE_ROLE_KEY=eyJ... # server-only (migration/backfill), do not expose to client
# Email notifications (workspace invites for existing users)
RESEND_API_KEY=re_...
RESEND_FROM_EMAIL=Threds <invite@threds.dev>
RESEND_REPLY_TO_EMAIL=info@threds.dev
# Public app origin used to build auth email redirects (signup confirm, password reset).
# Examples:
# - local dev: http://localhost:3000
# - production: https://threds.dev
RT_APP_ORIGIN=http://localhost:3000
# Auth gate (waitlist/allowlist)
# - When enabled, only allowlisted emails can sign up/sign in.
RT_WAITLIST_ENFORCE=true
# GitHub OAuth toggle (default false when unset).
RT_GITHUB_AUTH=false
# - Comma-separated list of admin Supabase user UUIDs allowed to manage `/admin/waitlist`.
RT_ADMIN_USER_IDS=00000000-0000-0000-0000-000000000000
# Maintenance mode (blocks all routes when enabled).
RT_MAINTENANCE_MODE=false
# Canvas tool loop (server-side)
RT_CANVAS_TOOLS=false
# Lease TTL (seconds) for branch editing in PG mode.
RT_REF_LEASE_TTL_SECONDS=120
# Attribution for merge summary messages injected into LLM context.
# Must be `user` or `assistant`.
MERGE_USER=assistant
# UI feature flags
NEXT_PUBLIC_RT_UI_EDIT_ANY_MESSAGE=true
NEXT_PUBLIC_RT_UI_ATTACHMENTS=false
NEXT_PUBLIC_RT_UI_RAIL_BRANCH_CREATOR=false
# Share controls visibility: all | admins | hidden
NEXT_PUBLIC_RT_UI_SHARE_MODE=all
# Collapsed graph branch display: show first+last nodes created on branch.
NEXT_PUBLIC_RT_UI_COLLAPSED_BRANCH_TWO_NODES=true
# Graph edge routing: spline (default) or orthogonal
NEXT_PUBLIC_RT_GRAPH_EDGE_STYLE=orthogonal
# Default chat composer height in lines (1-9).
NEXT_PUBLIC_RT_CHAT_COMPOSER_DEFAULT_LINES=2
# Max lines shown for user messages before "see more" (1-20).
NEXT_PUBLIC_RT_USER_MESSAGE_MAX_LINES=6
# UI branding
# - Used for display (headers, login, <title>, etc.)
NEXT_PUBLIC_APP_NAME=threds
# - Used for stable key prefixes (e.g. localStorage). Defaults to NEXT_PUBLIC_APP_NAME.
NEXT_PUBLIC_APP_ID=threds
# - UI label for the trunk branch (e.g. trunk/main).
NEXT_PUBLIC_RT_TRUNK_LABEL=main
# Auto-follow resume debounce (ms) when user scrolls back near the bottom during streaming.
NEXT_PUBLIC_AUTO_FOLLOW_RESUME_DELAY_MS=400
# E2E (Playwright)
E2E_EMAIL=me@example.com
E2E_PASSWORD=super-secure-password