Repository navigation
Expand file tree
/
Copy path.env.local.example
More file actions
218 lines (217 loc) · 9.63 KB
/
Copy path.env.local.example
File metadata and controls
218 lines (217 loc) · 9.63 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
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
# ============================================================================
# REQUIRED - Application Core
# ============================================================================
# Node environment
NODE_ENV=development
# NextAuth configuration (generate a secure random string)
# Run: openssl rand -base64 32
NEXTAUTH_SECRET=changeme
# NextAuth URL (will be auto-set by dev script, but can override)
NEXTAUTH_URL=http://localhost:3000
# Database connection
POSTGRES_URL=postgresql://postgres:postgres@localhost:5432/postgres
POSTGRES_CONNECT_TIMEOUT=10000
POSTGRES_MAX_QUERY_TIME=20000
# Callback token secret (generate: openssl rand -base64 32)
CALLBACK_TOKEN_SECRET=
# BYOK encryption key (generate: openssl rand -base64 32)
# Used for Bring-Your-Own-Key encryption of sensitive app data.
BYOK_ENCRYPTION_KEY=
# User-deletion HMAC key. Required for sign-in (identity fence).
# Generate: openssl rand -base64 32
USER_DELETION_AUDIT_HMAC_KEY=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
# User-deletion AES key (generate: openssl rand -base64 32)
USER_DELETION_ENCRYPTION_KEY=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
# ============================================================================
# REQUIRED - Security & Turnstile
# ============================================================================
# Turnstile (Cloudflare captcha) - use test keys for local dev
NEXT_PUBLIC_TURNSTILE_SITE_KEY=1x00000000000000000000AA
TURNSTILE_SECRET_KEY=1x0000000000000000000000000000000
STYTCH_PROJECT_ID=test-fake-project-id
STYTCH_PROJECT_SECRET=test-fake-project-secret
R2_ACCOUNT_ID=mock-test-account-id
R2_ACCESS_KEY_ID=mock-test-access-key
R2_SECRET_ACCESS_KEY=mock-test-secret-key
R2_CLI_SESSIONS_BUCKET_NAME=test-bucket
R2_API_REQUEST_LOG_BUCKET_NAME=test-api-request-log
R2_API_REQUEST_LOG_ACCESS_KEY_ID=mock-test-api-request-log-access-key
R2_API_REQUEST_LOG_SECRET_ACCESS_KEY=mock-test-api-request-log-secret-key
# ============================================================================
# AI / Model Inference (Required for AI features)
# ============================================================================
# OpenRouter (primary AI provider) - get from https://openrouter.ai/keys
OPENROUTER_API_KEY=sk-or-v1-your-openrouter-key
# Optional: Other AI providers
MISTRAL_API_KEY=your-mistral-key
LONGCAT_API_KEY=your-longcat-key
STREAMLAKE_API_KEY=your-streamlake-key
# ============================================================================
# OAuth Providers (Required for real OAuth login)
# ============================================================================
# GitHub OAuth - create at https://github.com/settings/developers
GITHUB_CLIENT_ID=your-github-client-id
GITHUB_CLIENT_SECRET=your-github-client-secret
# Google OAuth - create at https://console.cloud.google.com/auth/clients
GOOGLE_CLIENT_ID=your-google-client-id
GOOGLE_CLIENT_SECRET=your-google-client-secret
ANACONDA_CLIENT_ID=your-anaconda-client-id
ANACONDA_CLIENT_SECRET=your-anaconda-client-secret
# GitLab OAuth - create at https://gitlab.com/-/profile/applications
GITLAB_CLIENT_ID=your-gitlab-client-id
GITLAB_CLIENT_SECRET=your-gitlab-client-secret
# Bitbucket Cloud OAuth consumer - create in Bitbucket workspace settings
BITBUCKET_CLIENT_ID=
BITBUCKET_CLIENT_SECRET=
# LinkedIn OAuth - create at https://www.linkedin.com/developers/apps
LINKEDIN_CLIENT_ID=your-linkedin-client-id
LINKEDIN_CLIENT_SECRET=your-linkedin-client-secret
# Discord OAuth (optional)
DISCORD_CLIENT_ID=your-discord-client-id
DISCORD_CLIENT_SECRET=your-discord-client-secret
# DoltHub OAuth
DOLTHUB_APP_CLIENT_ID=your-dolthub-client-id
DOLTHUB_APP_CLIENT_SECRET=your-dolthub-client-secret
# ============================================================================
# Billing & Stripe (Required for billing features)
# ============================================================================
# Stripe - get from https://dashboard.stripe.com/test/apikeys
STRIPE_SECRET_KEY=sk_test_changeme
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=pk_test_changeme
# Stripe product/price IDs (use test values)
STRIPE_TEAMS_SUBSCRIPTION_PRODUCT_ID=prod_test_teams
STRIPE_ENTERPRISE_SUBSCRIPTION_PRODUCT_ID=prod_test_enterprise
STRIPE_TOP_UP_PRICE_ID=price_test_topup
# Kilo Pass pricing (test values)
STRIPE_KILO_PASS_TIER_19_MONTHLY_PRICE_ID=price_test_tier_19_monthly
STRIPE_KILO_PASS_TIER_19_YEARLY_PRICE_ID=price_test_tier_19_yearly
STRIPE_KILO_PASS_TIER_49_MONTHLY_PRICE_ID=price_test_tier_49_monthly
STRIPE_KILO_PASS_TIER_49_YEARLY_PRICE_ID=price_test_tier_49_yearly
STRIPE_KILO_PASS_TIER_199_MONTHLY_PRICE_ID=price_test_tier_199_monthly
STRIPE_KILO_PASS_TIER_199_YEARLY_PRICE_ID=price_test_tier_199_yearly
# App Store Kilo Pass subscriptions
APPLE_IAP_ENVIRONMENT=Sandbox
APPLE_APP_APPLE_ID=
APPLE_ROOT_CERTIFICATES_PEM=
APPLE_IAP_KEY_ID=
APPLE_IAP_ISSUER_ID=
APPLE_IAP_PRIVATE_KEY=
# KiloClaw legacy recognized Stripe price IDs (test values)
# Required so settlement, plan detection, and legacy intro repair continue to recognize pre-rollout subscriptions.
STRIPE_KILOCLAW_2026_03_19_STANDARD_INTRO_PRICE_ID=price_test_kiloclaw_2026_03_19_standard_intro
STRIPE_KILOCLAW_2026_03_19_STANDARD_PRICE_ID=price_test_kiloclaw_2026_03_19_standard
STRIPE_KILOCLAW_2026_03_19_COMMIT_PRICE_ID=price_test_kiloclaw_2026_03_19_commit
# KiloClaw current checkout Stripe price IDs (test values)
# Fresh current checkout uses recurring Standard immediately; no current Standard intro price is required.
STRIPE_KILOCLAW_2026_05_10_STANDARD_PRICE_ID=price_test_kiloclaw_2026_05_10_standard
STRIPE_KILOCLAW_2026_05_10_COMMIT_PRICE_ID=price_test_kiloclaw_2026_05_10_commit
# ============================================================================
# Internal Services (Optional - use defaults for local dev)
# ============================================================================
# Internal API secret (generate: openssl rand -base64 32)
INTERNAL_API_SECRET=changeme
# Customer Support Automation internal API bearer token (generate: openssl rand -base64 32)
# Leak = look up any email and enqueue deletion for non-admin, non-bot, non-live-sub customers.
# Access disable happens later in worker preflight; pending requests can be cancelled.
# Keep production values off preview deployments; rotate Cloud+CSA together.
SUPPORT_API_SECRET=changeme
# CSA Vercel Deployment Protection automation bypass (header only, never a query param).
# Required when CSA has Vercel Authentication enabled.
CSA_VERCEL_PROTECTION_BYPASS=
# Git token service persisted-authorization disconnect
GIT_TOKEN_SERVICE_API_URL=http://localhost:8802
# Optional public HTTPS origin for Bitbucket Code Reviewer webhooks.
# Use an HTTPS tunnel to this Next.js app for local webhook setup.
# `pnpm dev:start code-review` writes this automatically. For a stable URL,
# configure TUNNEL_APP_HOSTNAME or BITBUCKET_CODE_REVIEW_WEBHOOK_HOSTNAME in
# ~/.config/kiloclaw/dev-start.conf or services/kiloclaw/scripts/.dev-start.conf.
BITBUCKET_CODE_REVIEW_WEBHOOK_BASE_URL=
# Worker URLs (defaults shown, workers are optional)
WEBHOOK_AGENT_URL=http://localhost:8793
MODEL_EVAL_INGEST_URL=http://localhost:8798
SESSION_INGEST_WORKER_URL=
NOTIFICATIONS_WORKER_URL=
CODE_REVIEW_WORKER_URL=mock-url
CODE_REVIEW_WORKER_AUTH_TOKEN=mock-token
AUTO_TRIAGE_URL='mock-url'
AUTO_TRIAGE_AUTH_TOKEN='mock-key'
AUTO_FIX_URL='mock-url'
AUTO_FIX_AUTH_TOKEN='mock-key'
APP_BUILDER_URL=
APP_BUILDER_AUTH_TOKEN=
KILOCLAW_API_URL=
# ============================================================================
# Optional Services (Can be left empty)
# ============================================================================
# WorkOS (for enterprise SSO)
WORKOS_API_KEY=sk_foo
WORKOS_CLIENT_ID=
# Email (Mailgun)
MAILGUN_API_KEY=
MAILGUN_DOMAIN=
NEVERBOUNCE_API_KEY=
# Vector databases
QDRANT_HOST=
QDRANT_API_KEY=
MILVUS_ADDRESS=
MILVUS_TOKEN=
# Analytics
NEXT_PUBLIC_POSTHOG_KEY=
# Sentry (error tracking)
SENTRY_ORG=
SENTRY_PROJECT=
NEXT_PUBLIC_SENTRY_DSN=
# Encryption keys (generate if needed)
CREDIT_CATEGORIES_ENCRYPTION_KEY=
CREDIT_CATEGORIES_ENCRYPTION_KEY_V2=
# Connected GitHub user token envelope encryption (dedicated RSA public key only in Web)
USER_GITHUB_APP_TOKEN_ACTIVE_KEY_ID=
# Base64-encoded PEM public key; keep the matching private key only in git-token-service
USER_GITHUB_APP_TOKEN_ACTIVE_PUBLIC_KEY=
# Bitbucket OAuth credential envelope encryption (dedicated RSA public key only in Web)
BITBUCKET_OAUTH_CREDENTIAL_ACTIVE_KEY_ID=
# Base64-encoded PEM public key; keep the matching private key only in git-token-service
BITBUCKET_OAUTH_CREDENTIAL_ACTIVE_PUBLIC_KEY=
# Agent environment vars encryption (RSA public key, base64 encoded)
AGENT_ENV_VARS_PUBLIC_KEY=
# User deployments
USER_DEPLOYMENTS_API_BASE_URL=
USER_DEPLOYMENTS_API_AUTH_KEY=
USER_DEPLOYMENTS_DISPATCHER_AUTH_KEY=
USER_DEPLOYMENTS_ENV_VARS_PUBLIC_KEY=
# Security Agent Audit Reports
SECURITY_AGENT_AUDIT_RELIABLE_COVERAGE_START=2026-06-17T00:00:00.000Z
# Slack integration
SLACK_CLIENT_ID=
SLACK_CLIENT_SECRET=
SLACK_SIGNING_SECRET=
SLACK_ENCRYPTION_KEY=
SLACK_ADMIN_NOTIFICATIONS_WEBHOOK_URL=
SLACK_USER_FEEDBACK_WEBHOOK_URL=
SLACK_DEPLOY_THREAT_WEBHOOK_URL=
# Discord bot
DISCORD_BOT_TOKEN=
DISCORD_PUBLIC_KEY=
DISCORD_OAUTH_CLIENT_ID=
DISCORD_OAUTH_CLIENT_SECRET=
DISCORD_OAUTH_BOT_TOKEN=
DISCORD_SERVER_ID=
# Google services
GOOGLE_WEB_RISK_API_KEY=
GOOGLE_SHEETS_SPREADSHEET_ID=
GOOGLE_SERVICE_ACCOUNT_EMAIL=
# Other services
ARTIFICIAL_ANALYSIS_API_KEY=
AI_ATTRIBUTION_ADMIN_SECRET=
GASTOWN_SERVICE_URL=
O11Y_SERVICE_URL=
BOUNCER_URL=
CRON_SECRET=
# Coding Plan provider management (optional; server-only)
# Install through `pnpm web:env set` rather than adding real values here.
BYTEPLUS_CODING_PLAN_ACCESS_KEY_ID=
BYTEPLUS_CODING_PLAN_SECRET_ACCESS_KEY=
# Feature flags
KILOCLAW_BILLING_ENFORCEMENT=false
# Debug options
DEBUG_SHOW_DEV_UI=1