saadpie commited on
Commit
ba6928c
Β·
verified Β·
1 Parent(s): fd0d62e

Create .env

Browse files
Files changed (1) hide show
  1. .env +100 -0
.env ADDED
@@ -0,0 +1,100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ============================================================================
2
+ # HuggingMes - Hermes Agent on Hugging Face Spaces
3
+ # Configuration Reference
4
+ # ============================================================================
5
+
6
+ # ── REQUIRED: Core Configuration ──
7
+ # Your LLM provider API key
8
+ LLM_API_KEY=your_api_key_here
9
+
10
+ # LLM model to use (e.g. google/gemini-2.0-flash, openai/gpt-4o)
11
+ LLM_MODEL=google/gemini-2.0-flash
12
+
13
+ # Bearer token for the proxied Hermes API routes and Dashboard
14
+ # Generate: openssl rand -hex 32
15
+ GATEWAY_TOKEN=your_gateway_token_here
16
+
17
+ # ── OPTIONAL: Chat Integrations ──
18
+ # Get bot token from: https://t.me/BotFather
19
+ # TELEGRAM_BOT_TOKEN=your_bot_token_here
20
+
21
+ # Allowed Telegram User IDs (comma-separated numeric IDs)
22
+ # TELEGRAM_ALLOWED_USERS=123456789,987654321
23
+
24
+ # Telegram mode: "webhook" (default, requires Cloudflare proxy) or "polling"
25
+ # TELEGRAM_MODE=webhook
26
+
27
+ # Telegram webhook URL (auto-set via Cloudflare Worker; override only if manual)
28
+ # TELEGRAM_WEBHOOK_URL=https://your-webhook.workers.dev
29
+
30
+ # ── OPTIONAL: Cloudflare Proxy & Keep-Alive ──
31
+ # Cloudflare API token for automatic Worker proxy and KeepAlive setup
32
+ # CLOUDFLARE_WORKERS_TOKEN=your_cloudflare_token_here
33
+
34
+ # Alternatively, manual proxy config:
35
+ # CLOUDFLARE_PROXY_URL=https://your-proxy.workers.dev
36
+ # CLOUDFLARE_PROXY_SECRET=your_proxy_secret_here
37
+
38
+ # Extra domains to proxy, comma-separated. Set to "*" to proxy all.
39
+ # CLOUDFLARE_PROXY_DOMAINS=api.sendgrid.com,slack.com
40
+
41
+ # ── OPTIONAL: Workspace Backup to HF Dataset ──
42
+ # HF token with write access for private Dataset backup
43
+ HF_TOKEN=hf_your_token_here
44
+
45
+ # Dataset name (default: huggingmes-backup)
46
+ # BACKUP_DATASET_NAME=huggingmes-backup
47
+
48
+ # Backup interval in seconds (default: 180)
49
+ SYNC_INTERVAL=180
50
+
51
+ # Include .env in backups (default: false)
52
+ # SYNC_INCLUDE_ENV=false
53
+
54
+ # ── OPTIONAL: Startup Scripts & Package Install ──
55
+ # Run arbitrary bash on every boot (before Hermes gateway launches).
56
+ # Supports base64: prefix for quote-heavy scripts.
57
+ # HUGGINGMES_RUN="""
58
+ # sudo apt-get install -y ffmpeg
59
+ # pip install pandas
60
+ # """
61
+
62
+ # Install packages from day one (before terminal is opened)
63
+ # HUGGINGMES_APT_PACKAGES=ffmpeg,git-lfs
64
+ # HUGGINGMES_PIP_PACKAGES=pandas,requests
65
+ # HUGGINGMES_NPM_PACKAGES=typescript
66
+
67
+ # ── OPTIONAL: Gateway Restart Behavior ──
68
+ # Seconds to wait between gateway restarts (default: 5)
69
+ # GATEWAY_RESTART_DELAY=5
70
+
71
+ # Max gateway restarts before container exits (default: unlimited)
72
+ # GATEWAY_MAX_RESTARTS=10
73
+
74
+ # ── OPTIONAL: API Key Rotation ──
75
+ # Comma-separated key pools per provider for round-robin rotation.
76
+ # The first key in a pool is also promoted to the singular env var.
77
+ # ANTHROPIC_API_KEYS=sk-ant-key1,sk-ant-key2,sk-ant-key3
78
+ # OPENAI_API_KEYS=sk-openai-key1,sk-openai-key2
79
+ # GEMINI_API_KEYS=AIza-key1,AIza-key2
80
+ # DEEPSEEK_API_KEYS=key1,key2
81
+ # GROQ_API_KEYS=gsk_key1,gsk_key2
82
+ # MISTRAL_API_KEYS=key1,key2
83
+ # OPENROUTER_API_KEYS=sk-or-key1,sk-or-key2
84
+ # XAI_API_KEYS=key1,key2
85
+ # NVIDIA_API_KEYS=key1,key2
86
+ # COHERE_API_KEYS=key1,key2
87
+ # TOGETHER_API_KEYS=key1,key2
88
+ # CEREBRAS_API_KEYS=key1,key2
89
+
90
+ # ── OPTIONAL: Terminal (JupyterLab) ──
91
+ # Terminal is ON by default when GATEWAY_TOKEN is set.
92
+ # Set DEV_MODE=false to disable it entirely.
93
+ # DEV_MODE=false
94
+
95
+ # Override terminal password (optional β€” defaults to GATEWAY_TOKEN)
96
+ # JUPYTER_TOKEN=your_separate_terminal_token_here
97
+
98
+ # ── OPTIONAL: Advanced ──
99
+ # Webhook URL for restart/backup-failure notifications
100
+ # WEBHOOK_URL=https://your-webhook-endpoint.com/notify