# =============================================================================
# Aleph Environment Configuration
# =============================================================================
# Copy this file to .env and fill in your values:
# cp .env.example .env
#
# These variables configure sub-query functionality for RLM-style reasoning.
# =============================================================================
# Sub-Query API Configuration (for RLM-style recursive reasoning)
# =============================================================================
# Required if no CLI backend (claude/codex/aider) is available.
#
# Default: Xiaomi MiMo Flash V2 - FREE public beta until Jan 20, 2026
# A strong reasoning model with chain-of-thought capabilities.
#
# Get your free API key at: https://xiaomimimo.com (Console -> API Keys)
MIMO_API_KEY=your_mimo_api_key_here
OPENAI_BASE_URL=https://api.xiaomimimo.com/v1
# Model to use for sub-queries (default: mimo-v2-flash)
# ALEPH_SUB_QUERY_MODEL=mimo-v2-flash
# Force a specific backend: "auto", "claude", "codex", "aider", or "api"
# ALEPH_SUB_QUERY_BACKEND=auto
# =============================================================================
# Alternative: Use any OpenAI-compatible API
# =============================================================================
# Aleph uses the OpenAI API format, so you can point to any compatible service:
#
# OpenAI: OPENAI_BASE_URL=https://api.openai.com/v1
# Groq: OPENAI_BASE_URL=https://api.groq.com/openai/v1
# Together: OPENAI_BASE_URL=https://api.together.xyz/v1
# Ollama: OPENAI_BASE_URL=http://localhost:11434/v1
# LM Studio: OPENAI_BASE_URL=http://localhost:1234/v1
# =============================================================================
# CLI Backend Priority (no API key needed!)
# =============================================================================
# If you have any of these CLI tools installed, Aleph will use them first:
#
# 1. claude - Claude Code CLI (uses your Claude subscription)
# 2. codex - OpenAI Codex CLI (uses your OpenAI subscription)
# 3. aider - Aider CLI
#
# The API is only used as a fallback if none of these are available.