|
| 1 | +# HermesShell environment variables. |
| 2 | +# Copy to .env and fill in: |
| 3 | +# cp .env.example .env |
| 4 | +# |
| 5 | +# .env is gitignored — your secrets stay on your machine. |
| 6 | + |
| 7 | +# ── Model ───────────────────────────────────────────────────────────────────── |
| 8 | +# Filename inside models/ to load |
| 9 | +MODEL_FILE=your-model-name.gguf |
| 10 | + |
| 11 | +# ── GPU / compute ───────────────────────────────────────────────────────────── |
| 12 | +# Number of model layers to offload to GPU. |
| 13 | +# 0 = CPU only (works anywhere, no NVIDIA required) |
| 14 | +# 99 = all layers on GPU (fast, requires VRAM) |
| 15 | +# Mac Metal: use 99 — llama.cpp handles Metal automatically |
| 16 | +N_GPU_LAYERS=0 |
| 17 | + |
| 18 | +# Context window size in tokens (llama-server only — ignored by Ollama). |
| 19 | +# Passed as --ctx-size to llama-server. Ollama manages its own context via |
| 20 | +# num_ctx in the Modelfile or at request time. |
| 21 | +# IMPORTANT: Must be >= 32768. Hermes system prompt + skills list is ~11k tokens. |
| 22 | +# Values below 32768 cause "context length exceeded" on every query. |
| 23 | +# NOTE: This does NOT tell Hermes the context size. Hermes auto-detects from |
| 24 | +# /v1/models, or you can set model.context_length in config.yaml explicitly. |
| 25 | +CTX_SIZE=32768 |
| 26 | + |
| 27 | +# ── Ports ───────────────────────────────────────────────────────────────────── |
| 28 | +# llama.cpp listen port (default: 8080) |
| 29 | +LLAMA_PORT=8080 |
| 30 | + |
| 31 | +# HermesShell gateway webhook port (default: 8090) |
| 32 | +HERMESSHELL_PORT=8090 |
| 33 | + |
| 34 | +# ── Messaging gateway tokens ─────────────────────────────────────────────────── |
| 35 | +# Obtain from: |
| 36 | +# Telegram: https://t.me/BotFather |
| 37 | +# Discord: https://discord.com/developers/applications |
| 38 | +# Slack: https://api.slack.com/apps |
| 39 | +# |
| 40 | +# Leave blank to disable that platform's gateway. |
| 41 | +TELEGRAM_BOT_TOKEN= |
| 42 | +DISCORD_BOT_TOKEN= |
| 43 | +SLACK_BOT_TOKEN= |
| 44 | + |
| 45 | +# ── Privacy and safety ──────────────────────────────────────────────────────── |
| 46 | +# Sensitivity-based inference routing threshold. |
| 47 | +# 0.0 = always route to local model (most private, default) |
| 48 | +# 0.7 = route low-sensitivity queries to cloud, high-sensitivity to local |
| 49 | +# 1.0 = always route to cloud model (least private) |
| 50 | +HERMES_PRIVACY_THRESHOLD=0.0 |
| 51 | + |
| 52 | +# Dangerous command approval mode. |
| 53 | +# manual — always prompt for approval (safest for unattended gateway mode) |
| 54 | +# smart — uses LLM to assess risk, auto-approves safe commands (default) |
| 55 | +# off — disable approval checks entirely (not recommended) |
| 56 | +HERMES_APPROVAL_MODE=smart |
0 commit comments