# ---------------------------------------------------------------------------
# TMDBW environment
# Copy this file to ".env" (never commit .env) and fill in your credentials.
# Get a key at https://www.themoviedb.org/settings/api
# ---------------------------------------------------------------------------

# The TMDB credential. BOTH forms are accepted — the server detects which:
#   • v3 "API Key"               (32-char hex)      -> sent as ?api_key=
#   • v4 "API Read Access Token" (long JWT, "ey…")  -> sent as Authorization: Bearer
TMDB_API_KEY=3c9c6a81c34be9c86bd9a3066f33cfbe

# Port the Express server listens on (optional, defaults to 3000)
PORT=3333

# Upstream TMDB host the proxy forwards to (optional, defaults to https://api.themoviedb.org)
# TMDB_BASE_URL=https://api.themoviedb.org

# ---------------------------------------------------------------------------
# OpenRouter — powers the "+Section" AI curator. Get a key at
# https://openrouter.ai/keys . Kept server-side; never sent to the browser.
# ---------------------------------------------------------------------------
OPENROUTER_API_KEY=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
# Tool-calling model. Any OpenRouter model that supports tools works here.
OPENROUTER_MODEL=deepseek/deepseek-v4.1-flash
# Optional: OpenRouter base URL and referer header
# OPENROUTER_BASE_URL=https://openrouter.ai/api/v1
# OPENROUTER_REFERER=http://localhost:3333
# Max agent iterations before it force-finalizes the list
# AI_MAX_ITERS=14
