Spaces:
Running
Running
File size: 3,558 Bytes
0f02e7f 1428d20 0f02e7f 43301b6 0f02e7f 1428d20 0f02e7f 43301b6 | 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 | # ============================================================================
# HuggingMes - Hermes Agent on Hugging Face Spaces
# Configuration Reference
# ============================================================================
# ββ REQUIRED: Core Configuration ββ
# Your LLM provider API key
LLM_API_KEY=your_api_key_here
# LLM model to use (e.g. google/gemini-2.0-flash, openai/gpt-4o)
LLM_MODEL=google/gemini-2.0-flash
# Bearer token for the proxied Hermes API routes and Dashboard
# Generate: openssl rand -hex 32
GATEWAY_TOKEN=your_gateway_token_here
# ββ OPTIONAL: Chat Integrations ββ
# Get bot token from: https://t.me/BotFather
# TELEGRAM_BOT_TOKEN=your_bot_token_here
# Allowed Telegram User IDs (comma-separated numeric IDs)
# TELEGRAM_ALLOWED_USERS=123456789,987654321
# Telegram mode: "webhook" (default, requires Cloudflare proxy) or "polling"
# TELEGRAM_MODE=webhook
# Telegram webhook URL (auto-set via Cloudflare Worker; override only if manual)
# TELEGRAM_WEBHOOK_URL=https://your-webhook.workers.dev
# ββ OPTIONAL: Cloudflare Proxy & Keep-Alive ββ
# Cloudflare API token for automatic Worker proxy and KeepAlive setup
# CLOUDFLARE_WORKERS_TOKEN=your_cloudflare_token_here
# Alternatively, manual proxy config:
# CLOUDFLARE_PROXY_URL=https://your-proxy.workers.dev
# CLOUDFLARE_PROXY_SECRET=your_proxy_secret_here
# Extra domains to proxy, comma-separated. Set to "*" to proxy all.
# CLOUDFLARE_PROXY_DOMAINS=api.sendgrid.com,slack.com
# ββ OPTIONAL: Workspace Backup to HF Dataset ββ
# HF token with write access for private Dataset backup
HF_TOKEN=hf_your_token_here
# Dataset name (default: huggingmes-backup)
# BACKUP_DATASET_NAME=huggingmes-backup
# Backup interval in seconds (default: 180)
SYNC_INTERVAL=180
# Include .env in backups (default: false)
# SYNC_INCLUDE_ENV=false
# ββ OPTIONAL: Startup Scripts & Package Install ββ
# Run arbitrary bash on every boot (before Hermes gateway launches).
# Supports base64: prefix for quote-heavy scripts.
# HUGGINGMES_RUN="""
# sudo apt-get install -y ffmpeg
# pip install pandas
# """
# Install packages from day one (before terminal is opened)
# HUGGINGMES_APT_PACKAGES=ffmpeg,git-lfs
# HUGGINGMES_PIP_PACKAGES=pandas,requests
# HUGGINGMES_NPM_PACKAGES=typescript
# ββ OPTIONAL: Gateway Restart Behavior ββ
# Seconds to wait between gateway restarts (default: 5)
# GATEWAY_RESTART_DELAY=5
# Max gateway restarts before container exits (default: unlimited)
# GATEWAY_MAX_RESTARTS=10
# ββ OPTIONAL: API Key Rotation ββ
# Comma-separated key pools per provider for round-robin rotation.
# The first key in a pool is also promoted to the singular env var.
# ANTHROPIC_API_KEYS=sk-ant-key1,sk-ant-key2,sk-ant-key3
# OPENAI_API_KEYS=sk-openai-key1,sk-openai-key2
# GEMINI_API_KEYS=AIza-key1,AIza-key2
# DEEPSEEK_API_KEYS=key1,key2
# GROQ_API_KEYS=gsk_key1,gsk_key2
# MISTRAL_API_KEYS=key1,key2
# OPENROUTER_API_KEYS=sk-or-key1,sk-or-key2
# XAI_API_KEYS=key1,key2
# NVIDIA_API_KEYS=key1,key2
# COHERE_API_KEYS=key1,key2
# TOGETHER_API_KEYS=key1,key2
# CEREBRAS_API_KEYS=key1,key2
# ββ OPTIONAL: Terminal (JupyterLab) ββ
# Terminal is ON by default when GATEWAY_TOKEN is set.
# Set DEV_MODE=false to disable it entirely.
# DEV_MODE=false
# Override terminal password (optional β defaults to GATEWAY_TOKEN)
# JUPYTER_TOKEN=your_separate_terminal_token_here
# ββ OPTIONAL: Advanced ββ
# Webhook URL for restart/backup-failure notifications
# WEBHOOK_URL=https://your-webhook-endpoint.com/notify
|