-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathenv.example.oss
More file actions
109 lines (87 loc) · 3.84 KB
/
env.example.oss
File metadata and controls
109 lines (87 loc) · 3.84 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
# Litewrite OSS Environment Template
#
# This OSS build does NOT send emails and does not require any SMTP config.
# Copy to `.env` and fill the secrets you need.
#
# cp env.example.oss .env
#
# ==============================================================================
# Core
# ==============================================================================
# NextAuth session encryption (change in production!)
NEXTAUTH_SECRET=dev-secret-change-me
# Optional (useful in production / when behind a proxy)
NEXTAUTH_URL=http://localhost:3000
NEXT_PUBLIC_SITE_URL=http://localhost:3000
# Internal service auth (Next.js <-> AI Server / WS Server / nanobot)
# All internal API calls use this secret via X-Internal-Secret header.
INTERNAL_API_SECRET=dev-internal-secret
# ==============================================================================
# WebSocket (client connection URL)
# ==============================================================================
NEXT_PUBLIC_WS_URL=ws://localhost:1234
# ==============================================================================
# AI Providers
# ==============================================================================
# OPENROUTER_API_KEY is required if you want AI features enabled.
# Get one at https://openrouter.ai/
OPENROUTER_API_KEY=
# Optional: multiple keys for rotation (comma-separated)
OPENROUTER_API_KEYS=
# Key rotation strategy: round_robin (default), random, least_used
OPENROUTER_KEY_STRATEGY=round_robin
# Default LLM model for chat agent and TAP completion.
# Any model available on OpenRouter: https://openrouter.ai/models
LLM_MODEL=google/gemini-3-flash-preview
# Optional: override model specifically for TAP completion
# TAP_MODEL=
# TAP_API_KEY=
# ==============================================================================
# Embeddings & Deep Research
# ==============================================================================
# Embeddings (required by Deep Research)
EMBEDDING_API_BASE=https://openrouter.ai/api/v1
EMBEDDING_API_KEY=
EMBEDDING_MODEL=text-embedding-3-small
# Web search provider (required by Deep Research web search)
# Get one at https://serper.dev/
SERPER_API_KEY=
# ==============================================================================
# nanobot (Chat Platform Integration)
# ==============================================================================
# nanobot connects Telegram / Feishu to Litewrite for project management.
# See nanobot/DEPLOYMENT.md for detailed setup instructions.
# --- Telegram ---
TELEGRAM_ENABLED=false
TELEGRAM_BOT_TOKEN=
# --- Feishu / Lark ---
FEISHU_ENABLED=false
FEISHU_APP_ID=
FEISHU_APP_SECRET=
# Your Litewrite user UUID (from the database) for project ownership mapping.
# Required for nanobot to list/create projects on your behalf.
NANOBOT_DEFAULT_LITEWRITE_USER_ID=
# Optional: override the LLM model used by nanobot's agent
# NANOBOT__AGENTS__DEFAULTS__MODEL=anthropic/claude-sonnet-4-20250514
# ==============================================================================
# Redis (Optional)
# ==============================================================================
# Enables Yjs collaboration persistence + AI server rate limiting.
#
# - Docker Compose (internal network): REDIS_URL=redis://redis:6379
# - Host machine (local Redis): REDIS_URL=redis://localhost:6379
#
# Uncomment to enable:
# REDIS_URL=redis://redis:6379
# ==============================================================================
# Storage (S3/MinIO)
# ==============================================================================
# When running via `docker compose`, MinIO values are provided by compose.
# These are mainly for non-Docker / external S3 deployments.
STORAGE_PROVIDER=s3
S3_ENDPOINT=http://localhost:9000
S3_BUCKET=litewrite
S3_REGION=us-east-1
S3_ACCESS_KEY_ID=minioadmin
S3_SECRET_ACCESS_KEY=minioadmin
S3_FORCE_PATH_STYLE=true