-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
80 lines (61 loc) · 3.51 KB
/
.env.example
File metadata and controls
80 lines (61 loc) · 3.51 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
# ============================================================
# AI Command Center — Environment Variables
# ============================================================
# RENAME THIS FILE TO: .env (in project root or backend root)
# The FastAPI backend reads these at startup via python-dotenv.
# The React frontend reads API keys from localStorage (Settings page).
# ============================================================
# ── Core Paths ────────────────────────────────────────────────
# Root directory where all AI tools are installed
AI_ROOT=C:\path\to\your\AI_tools
# Backend server config
BACKEND_HOST=127.0.0.1
BACKEND_PORT=8000
# Frontend dev server (for CORS allowlist — don't change unless you change Vite config)
FRONTEND_PORT=5173
# Tauri dev port (for CORS allowlist)
TAURI_DEV_PORT=1420
# ── API Keys (Backend-side, optional) ─────────────────────────
# These are only needed if you run the AI Proxy (Task 9).
# Without these, AI features still work via direct browser calls
# using keys stored in the frontend Settings page (localStorage).
# OpenRouter API key (for AI chat/analysis proxy)
# Get yours at: https://openrouter.ai/keys
OPENROUTER_API_KEY=
# ── Optional: Community API Keys (for backend-proxied requests) ─
# The frontend already calls these directly from the browser.
# Backend proxying is an optional upgrade for rate limit avoidance.
# GitHub Personal Access Token (public repos, no special scopes needed)
# Create at: https://github.com/settings/tokens
GITHUB_TOKEN=
# HuggingFace API token (read access)
# Create at: https://huggingface.co/settings/tokens
HUGGINGFACE_TOKEN=
# CivitAI API key
# Create at: https://civitai.com/user/account (API Keys section)
CIVITAI_API_KEY=
# ── GPU / CUDA Settings ──────────────────────────────────────
# These are typically set system-wide by RTX5090_FULL_SETUP.bat
# via `setx /M`. Listed here for reference only.
# CUDA_HOME=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.8
# NVIDIA_TF32_OVERRIDE=1
# PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True,garbage_collection_threshold:0.8
# ── Per-Session Performance Flags ─────────────────────────────
# Set by LAUNCH_*.bat launchers (not persisted system-wide).
# Listed here for reference if you need to debug launch issues.
# CUDA_MODULE_LOADING=LAZY
# HF_HUB_ENABLE_HF_TRANSFER=1
# TORCH_CUDNN_V8_API_ENABLED=1
# ── AI Model Default ─────────────────────────────────────────
# Default model for AI features. Users can override in Settings.
# This is only used by the backend AI proxy (Task 9).
DEFAULT_AI_MODEL=anthropic/claude-sonnet-4-20250514
# ── Tool Installation Paths (auto-detected, override if non-standard) ─
# Uncomment and set only if your tools are installed in non-default locations.
# COMFYUI_PATH=C:\path\to\your\AI_tools\ComfyUI
# SWARMUI_PATH=C:\path\to\your\AI_tools\SwarmUI
# KOHYA_PATH=C:\path\to\your\AI_tools\kohya_ss
# MUSUBI_PATH=C:\path\to\your\AI_tools\musubi-tuner
# ── Logging ───────────────────────────────────────────────────
# Set to "debug" for verbose FastAPI logging during development
LOG_LEVEL=info