# ── Required ────────────────────────────────────────────────────────────────── TELEGRAM_BOT_TOKEN=your_telegram_bot_token_here GROQ_API_KEY=your_groq_api_key_here # ── MongoDB ──────────────────────────────────────────────────────────────────── # Free options (no credit card required): # Atlas M0 (512MB, forever free): cloud.mongodb.com → Create → M0 Free # OVHcloud Discovery (512MB, forever free): mongodb.ovhcloud.com # # Leave empty to run without persistence (reminders/tasks/history lost on restart) MONGO_URI=mongodb+srv://user:pass@cluster0.xxxxx.mongodb.net/?retryWrites=true&w=majority MONGO_DB=mikachu # ── Web Search (Serper.dev) ─────────────────────────────────────────────────── WEB_SEARCH_KEY=your_serper_api_key_here WEB_SEARCH_URL=https://google.serper.dev/search # ── Admin ───────────────────────────────────────────────────────────────────── # Your personal Telegram user ID — receives /feedback messages forwarded here ADMIN_CHAT_ID= # ── Access control ──────────────────────────────────────────────────────────── # Comma-separated Telegram user IDs allowed to use the bot. Leave empty for open access. ALLOWED_USERS= # ── Rate limiting ───────────────────────────────────────────────────────────── RATE_LIMIT_REQUESTS=10 RATE_LIMIT_WINDOW=60 # ── History ─────────────────────────────────────────────────────────────────── MAX_HISTORY_TURNS=10 # ── Timezone ────────────────────────────────────────────────────────────────── DEFAULT_TIMEZONE=Asia/Kolkata # ── Image ───────────────────────────────────────────────────────────────────── MAX_IMAGE_BYTES=10485760 # ── MemoryOS (leave MEMORYOS_URL empty to use the built-in MongoDB memory) ──── # # Tier 1 — Built-in (default, no extra services needed) # Leave MEMORYOS_URL empty. # Uses llama-3.1-8b to extract facts → stored in MongoDB memories collection. # # Tier 2 — MemoryOS microservice (Qdrant + Neo4j, richer retrieval) # Set MEMORYOS_URL to your running MemoryOS instance. # Run `docker-compose --profile memoryos up` to start the full stack locally. # MEMORYOS_URL= # http://localhost:8000 ← local dev # https://memory.yourbot.com ← production # Auth modes: # Empty (dev mode) → Bearer = str(telegram_user_id) — each user gets isolated memory # Key set → Bearer = this key — all users share one MemoryOS identity MEMORYOS_API_KEY= # false → memories wait in MemoryOS review queue (human approval via UI) # true → memories written instantly (good for fully automated bots) MEMORYOS_AUTO_APPROVE=false # ── Webhook (leave WEBHOOK_URL empty to use long-polling / dev mode) ────────── WEBHOOK_URL= WEBHOOK_PORT=8443 WEBHOOK_PATH=/webhook