# ── Trooper V2 Configuration ────────────────────────────────────────────────── # Trooper sits between your app and your cloud LLM. # When cloud fails — Ollama catches it locally. # Set at least one cloud provider key to get started. # ── Cloud Providers (set at least one) ─────────────────────────────────────── # Claude (recommended primary) CLAUDE_API_KEY=sk-ant-... # Gemini — uncomment to add to chain # GEMINI_API_KEY=AIza... # OpenAI — uncomment to add to chain # OPENAI_API_KEY=sk-... # ── Local Fallback (always available) ──────────────────────────────────────── FALLBACK_URL=http://localhost:11434/api/chat OLLAMA_MODEL=# ── Trooper V2 Configuration ────────────────────────────────────────────────── # Trooper sits between your app and your cloud LLM. # When cloud fails — Ollama catches it locally. # Set at least one cloud provider key to get started. # ── Cloud Providers (set at least one) ─────────────────────────────────────── # Claude (recommended primary) CLAUDE_API_KEY=sk-ant-... # Gemini — uncomment to add to chain # GEMINI_API_KEY=AIza... # OpenAI — uncomment to add to chain # OPENAI_API_KEY=sk-... # ── Local Fallback (always available) ──────────────────────────────────────── FALLBACK_URL=http://localhost:11434/api/chat OLLAMA_MODEL=llama3.1:8b # ── SITREP Extraction Model ─────────────────────────────────────────────────── # Separate model for SITREP distillation — runs async, doesn't block requests. # Llama 3.1 8b gives better SITREP quality than qwen2.5:3b. # Defaults to OLLAMA_MODEL if not set. # SITREP_MODEL=llama3.1:8b # ── Fluff Filter ────────────────────────────────────────────────────────────── # Strip pleasantries and filler from prompts before sending to LLM. # TROOPER_REMOVE_FLUFF=true # ── Trigger Config ──────────────────────────────────────────────────────────── QUOTA_STATUS_CODES=429,402,529,400 # ── Server ──────────────────────────────────────────────────────────────────── TROOPER_PORT=3000 # ── Features ───────────────────────────────────────────────────────────────── # AUTO_RECOVERY=true # enable auto recovery to best available provider # TROOPER_BIND=0.0.0.0 # uncomment only if you need network access (not recommended) # ── SITREP Extraction Model ─────────────────────────────────────────────────── # Separate model for SITREP distillation — runs async, doesn't block requests. # Llama 3.1 8b gives better SITREP quality than qwen2.5:3b. # Defaults to OLLAMA_MODEL if not set. # SITREP_MODEL=llama3.1:8b # ── Fluff Filter ────────────────────────────────────────────────────────────── # Strip pleasantries and filler from prompts before sending to LLM. # TROOPER_REMOVE_FLUFF=true # ── Trigger Config ──────────────────────────────────────────────────────────── QUOTA_STATUS_CODES=429,402,529,400 # ── Server ──────────────────────────────────────────────────────────────────── TROOPER_PORT=3000 # ── Features ───────────────────────────────────────────────────────────────── # AUTO_RECOVERY=true # enable auto recovery to best available provider # TROOPER_BIND=0.0.0.0 # uncomment only if you need network access (not recommended)