# ═══════════════════════════════════════════════════════════════════════════ # ForensiX AI — Multi-Agent System Environment Configuration # ═══════════════════════════════════════════════════════════════════════════ # # Copy this file to .env.local and fill in your API keys. # The system works with ANY combination — missing keys = that agent uses fallback. # # ═══════════════════════════════════════════════════════════════════════════ # ───────────────────────────────────────────────────────────────────────── # GEMINI (Google AI) — Powers: Autopsy Agent, CCTV Agent, Validation # ───────────────────────────────────────────────────────────────────────── # Get key: https://aistudio.google.com/apikey # Free tier: 15 RPM / 1M TPM # GEMINI_API_KEY= GEMINI_BASE_URL=https://generativelanguage.googleapis.com/v1beta GEMINI_MODEL_PRO=gemini-2.5-pro GEMINI_MODEL_FLASH=gemini-2.5-flash GEMINI_MODEL_LITE=gemini-2.5-flash-lite # ───────────────────────────────────────────────────────────────────────── # FEATHERLESS (LLM) — Powers: Toxicology, Correlation, Explainability # ───────────────────────────────────────────────────────────────────────── # Get key: https://featherless.ai # Premium plan recommended for unlimited usage # FEATHERLESS_API_KEY= FEATHERLESS_BASE_URL=https://api.featherless.ai/v1 FEATHERLESS_MODEL=meta-llama/Meta-Llama-3.1-70B-Instruct # ───────────────────────────────────────────────────────────────────────── # HUGGINGFACE (ML Models) — Powers: NER, Classification, Embeddings # ───────────────────────────────────────────────────────────────────────── # Get token: https://huggingface.co/settings/tokens # Free tier: 30K characters/month # HF_TOKEN= HF_BASE_URL=https://api-inference.huggingface.co/models HF_MODEL_NER=dbmdz/bert-large-cased-finetuned-conll03-english HF_MODEL_ZERO_SHOT=facebook/bart-large-mnli HF_MODEL_EMBEDDINGS=sentence-transformers/all-MiniLM-L6-v2 # ───────────────────────────────────────────────────────────────────────── # ALTERNATIVE LLM PROVIDER (Optional — replaces Featherless if set) # ───────────────────────────────────────────────────────────────────────── # Works with ANY OpenAI-compatible API: # - OpenAI: https://api.openai.com/v1 # - Together: https://api.together.xyz/v1 # - Groq: https://api.groq.com/openai/v1 # - DeepSeek: https://api.deepseek.com/v1 # - OpenRouter: https://openrouter.ai/api/v1 # - Mistral: https://api.mistral.ai/v1 # - Ollama: http://localhost:11434/v1 # - LM Studio: http://localhost:1234/v1 # - vLLM: http://localhost:8000/v1 # - Any custom: https://your-server.com/v1 # # LLM_BASE_URL= # LLM_API_KEY= # LLM_MODEL= # ───────────────────────────────────────────────────────────────────────── # DATABASE # ───────────────────────────────────────────────────────────────────────── DATABASE_URL="file:./dev.db" # ───────────────────────────────────────────────────────────────────────── # APPLICATION # ───────────────────────────────────────────────────────────────────────── NEXT_PUBLIC_APP_NAME=ForensiX AI NEXT_PUBLIC_APP_VERSION=2.0.0