-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
63 lines (52 loc) · 2.92 KB
/
.env.example
File metadata and controls
63 lines (52 loc) · 2.92 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
# Database Configuration
DATABASE_URL=postgresql://openlinear:openlinear@localhost:5432/openlinear
# GitHub OAuth App (create at https://github.com/settings/developers)
# 1. Go to GitHub → Settings → Developer Settings → OAuth Apps → New
# 2. Set Homepage URL: http://localhost:3000 (web) or https://openlinear.tech (prod)
# 3. Set Callback URL: http://localhost:3001/api/auth/github/callback (dev)
# or https://openlinear.tech/api/auth/github/callback (prod, used by both web and desktop)
# 4. Copy Client ID and generate a Client Secret
# Note: desktop builds open https://openlinear.tech/api/auth/github?client=desktop in the
# system browser; the cloud API redirects back to openlinear:// deep link with the JWT.
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
GITHUB_REDIRECT_URI=http://localhost:3001/api/auth/github/callback
# Optional: personal access token for higher rate limits on public repo fetches
GITHUB_TOKEN=
# JWT signing secret. REQUIRED in production (server throws on startup if unset).
JWT_SECRET=openlinear-dev-secret-change-in-production
# Frontend URL (web flow OAuth redirect; ignored for ?client=desktop callbacks)
FRONTEND_URL=http://localhost:3000
# CORS origin. Comma-separated list. Tauri origins (tauri://localhost,
# https://tauri.localhost) are always added implicitly.
CORS_ORIGIN=http://localhost:3000
# API server port (kept app-scoped via API_PORT to avoid affecting Next.js web port).
# In the bundled desktop app this is overridden with a free ephemeral port.
API_PORT=3001
# OAuth interceptor port used by the local sidecar to bridge OpenCode provider OAuth
# callbacks (Anthropic, OpenAI, etc.). Unrelated to the GitHub login flow.
OAUTH_INTERCEPTOR_PORT=1455
# Optional: where the sidecar clones repos into. Defaults to <tmp>/openlinear-repos.
REPOS_DIR=
# Brainstorm AI Configuration
BRAINSTORM_API_KEY= # Your LLM API key (OpenAI or Anthropic)
BRAINSTORM_MODEL=gpt-4o-mini # Model to use (default: gpt-4o-mini)
BRAINSTORM_PROVIDER=openai # Provider: openai or anthropic
BRAINSTORM_BASE_URL= # Optional: custom base URL
# Home Chat LLM Configuration (server-only; never expose to frontend)
# OpenAI-compatible endpoint. Fireworks is the default production target.
CHAT_LLM_BASE_URL=https://api.fireworks.ai/inference/v1
# API key for the configured chat provider. Falls back to FIREWORKS_API_KEY when empty.
CHAT_LLM_API_KEY=
# Single server-selected model for chat tool-calling. Clients cannot override this.
CHAT_LLM_MODEL=accounts/fireworks/models/kimi-k2p6
# Provider request timeout for each streaming completion.
CHAT_LLM_TIMEOUT_MS=60000
# Authenticated chat message rate limit per user.
CHAT_RATE_LIMIT_PER_MIN=60
# ElevenLabs Speech-to-Text Configuration (server/sidecar-only; never expose to frontend)
# Used by /api/transcribe for voice dictation in Home Chat and quick-capture flows.
ELEVENLABS_API_KEY=
ELEVENLABS_STT_MODEL_ID=scribe_v2
ELEVENLABS_STT_TIMEOUT_MS=30000
ELEVENLABS_STT_MAX_UPLOAD_MB=25