# =============================================================================
# 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 (OpenAI-compatible endpoints)
# =============================================================================
# Required if no CLI backend (claude/codex) is available.
#
# Aleph uses OpenAI-compatible APIs. Configure with these variables:
#   - ALEPH_SUB_QUERY_API_KEY: Your API key (fallback: OPENAI_API_KEY)
#   - ALEPH_SUB_QUERY_URL: Base URL (fallback: OPENAI_BASE_URL)
#   - ALEPH_SUB_QUERY_MODEL: Model name (required)

# OpenAI
# ALEPH_SUB_QUERY_API_KEY=sk-...
# ALEPH_SUB_QUERY_MODEL=gpt-5.2-codex

# =============================================================================
# Provider Examples (all use OpenAI-compatible API)
# =============================================================================

# Groq (fast inference):
#   ALEPH_SUB_QUERY_API_KEY=gsk_...
#   ALEPH_SUB_QUERY_URL=https://api.groq.com/openai/v1
#   ALEPH_SUB_QUERY_MODEL=llama-3.3-70b-versatile

# Together AI:
#   ALEPH_SUB_QUERY_API_KEY=...
#   ALEPH_SUB_QUERY_URL=https://api.together.xyz/v1
#   ALEPH_SUB_QUERY_MODEL=meta-llama/Llama-3-70b-chat-hf

# DeepSeek:
#   ALEPH_SUB_QUERY_API_KEY=...
#   ALEPH_SUB_QUERY_URL=https://api.deepseek.com/v1
#   ALEPH_SUB_QUERY_MODEL=deepseek-chat

# Ollama (local):
#   ALEPH_SUB_QUERY_API_KEY=ollama
#   ALEPH_SUB_QUERY_URL=http://localhost:11434/v1
#   ALEPH_SUB_QUERY_MODEL=llama3.2

# LM Studio (local):
#   ALEPH_SUB_QUERY_API_KEY=lm-studio
#   ALEPH_SUB_QUERY_URL=http://localhost:1234/v1
#   ALEPH_SUB_QUERY_MODEL=local-model

# =============================================================================
# Advanced Configuration
# =============================================================================

# Force a specific backend: "auto", "claude", "codex", "gemini", or "api"
# ALEPH_SUB_QUERY_BACKEND=auto

# =============================================================================
# CLI Backend Priority (no API key needed!)
# =============================================================================
# If you have any of these CLI tools installed, Aleph will use them first
# (when no API credentials are set):
#
#   1. claude  - Claude Code CLI (uses your Claude subscription)
#   2. codex   - OpenAI Codex CLI (uses your OpenAI subscription)
#   3. gemini  - Google Gemini CLI (free tier available)
#
# The API is only used as a fallback if none of these are available.
