Skip to content

Commit 748170c

Browse files
authored
Add .env.example templates for desktop app and Rust backend (#5357)
2 parents d50c7d3 + 5b8e508 commit 748170c

File tree

4 files changed

+93
-0
lines changed

4 files changed

+93
-0
lines changed

desktop/.env.example

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Desktop macOS App — Environment Variables
2+
# Copy to desktop/Backend-Rust/.env (loaded by run.sh into the app bundle)
3+
#
4+
# The Swift app reads .env from these locations (first match wins):
5+
# 1. App bundle: Contents/Resources/.env
6+
# 2. Current directory: ./.env
7+
# 3. Home directory: ~/.omi.env
8+
#
9+
# run.sh automatically copies Backend-Rust/.env into the app bundle.
10+
11+
# ─── Required ────────────────────────────────────────────────────────
12+
13+
# Backend API URL — where the Rust backend is running
14+
# Local dev: http://localhost:8080
15+
# VPS dev: http://<tailscale-ip>:9080
16+
# Cloud Run: https://desktop-backend-dt5lrfkkoa-uc.a.run.app
17+
# Production: https://api.omi.me
18+
OMI_API_URL=http://localhost:8080
19+
20+
# DeepGram API key — required for real-time transcription
21+
DEEPGRAM_API_KEY=
22+
23+
# ─── AI (optional) ──────────────────────────────────────────────────
24+
# Gemini API key for proactive assistants and embeddings
25+
# Falls back to backend-side processing if not set
26+
GEMINI_API_KEY=
27+
28+
# ─── Analytics (optional) ───────────────────────────────────────────
29+
# MIXPANEL_PROJECT_TOKEN=

desktop/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ DerivedData/
1010

1111
# Environment (both contain secrets)
1212
.env
13+
!.env.example
1314
.env.app
1415
.env.app.dev
1516

desktop/Backend-Rust/.env.example

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# Desktop Rust Backend — Environment Variables
2+
# Copy to .env and fill in values from GCP Secret Manager:
3+
# gcloud secrets versions access latest --secret=<NAME> --project=based-hardware-dev
4+
#
5+
# IMPORTANT: Single-quote passwords that contain $ characters to prevent
6+
# dotenvy variable expansion (e.g. PASSWORD='my$ecret')
7+
8+
# ─── Server ──────────────────────────────────────────────────────────
9+
PORT=8080
10+
11+
# ─── Firebase / Firestore ────────────────────────────────────────────
12+
# Project ID determines which Firestore database to use
13+
FIREBASE_PROJECT_ID=based-hardware-dev
14+
# Path to GCP service account JSON (must have Firestore + Compute access)
15+
GOOGLE_APPLICATION_CREDENTIALS=/path/to/google-credentials.json
16+
# Firebase Web API key (for identity toolkit / auth token exchange)
17+
FIREBASE_API_KEY=
18+
19+
# ─── AI ──────────────────────────────────────────────────────────────
20+
GEMINI_API_KEY=
21+
22+
# ─── Encryption ──────────────────────────────────────────────────────
23+
# Used to decrypt user data with enhanced protection level
24+
ENCRYPTION_SECRET=
25+
26+
# ─── Redis ───────────────────────────────────────────────────────────
27+
# Used for conversation visibility, task sharing, app install counts
28+
REDIS_DB_HOST=
29+
REDIS_DB_PORT=6379
30+
REDIS_DB_PASSWORD=
31+
32+
# ─── Pinecone (vector embeddings) ────────────────────────────────────
33+
PINECONE_API_KEY=
34+
PINECONE_HOST=
35+
36+
# ─── AgentVM (GCE provisioning) ─────────────────────────────────────
37+
# All optional — defaults derived from FIREBASE_PROJECT_ID
38+
# GCE_PROJECT_ID= # defaults to FIREBASE_PROJECT_ID
39+
# GCE_SOURCE_IMAGE= # defaults to projects/{project}/global/images/family/omi-agent
40+
# AGENT_GCS_BUCKET= # defaults to based-hardware-agent
41+
42+
# ─── OAuth (optional, for desktop sign-in) ───────────────────────────
43+
# BASE_API_URL=
44+
# APPLE_CLIENT_ID=
45+
# APPLE_TEAM_ID=
46+
# APPLE_KEY_ID=
47+
# APPLE_PRIVATE_KEY=
48+
# GOOGLE_CLIENT_ID=
49+
# GOOGLE_CLIENT_SECRET=
50+
51+
# ─── Observability (optional) ───────────────────────────────────────
52+
# RUST_LOG=debug
53+
# POSTHOG_PERSONAL_API_KEY=
54+
# POSTHOG_PROJECT_ID=302298
55+
# SENTRY_WEBHOOK_SECRET=
56+
# SENTRY_AUTH_TOKEN=
57+
# SENTRY_ADMIN_UID=
58+
59+
# ─── Crisp (optional, customer support) ─────────────────────────────
60+
# CRISP_PLUGIN_IDENTIFIER=
61+
# CRISP_PLUGIN_KEY=
62+
# CRISP_WEBSITE_ID=

desktop/Backend-Rust/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/target
22
.env
3+
!.env.example
34
*.log
45
.DS_Store

0 commit comments

Comments
 (0)