# {{project_name}} — environment variables (template)
# Copy to .env and fill in. .env is gitignored.

# ── LeafMesh license (required for production) ─────────────────
LEAFMESH_LICENSE_KEY=

# ── LLM provider (pick one or more) ────────────────────────────
OPENAI_API_KEY=
ANTHROPIC_API_KEY=

# ── Redis ──────────────────────────────────────────────────────
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=

# ── ERP integration ────────────────────────────────────────────
# Which ERP this deployment posts to:
#   netsuite | sap | quickbooks | xero | dynamics
ERP_TYPE=netsuite
# Production credentials per ERP — see DAY_0_SETUP.md

# ── Enterprise system connectors (MCP) ─────────────────────────
# MCP server in front of your ERP — powers the month-end close sweep
# (close_cycle_orchestrator_agent). Enable its cron in
# configs/config.yaml after wiring.
ERP_MCP_URL=
ERP_MCP_TOKEN=
# MCP server in front of your treasury / payment-run system
# (Kyriba / SAP TRM / NetSuite payment runs / Bill.com) — powers
# payment_scheduler_agent.
TREASURY_MCP_URL=
TREASURY_MCP_TOKEN=

# ── Approval matrix ────────────────────────────────────────────
# The dollar-threshold matrix lives as explicit conditions on
# gl_coding_agent's outbound wires in configs/config.yaml:
#   AP clerk up to $5K · Controller up to $50K · CFO above ·
#   dual sign-off above $500K · GL-confidence floor 0.7
# Tune by editing those wire conditions — they ARE the policy.

# ── Escalation channels ────────────────────────────────────────
PAGER_WEBHOOK=
SLACK_BOT_TOKEN=
SLACK_SIGNING_SECRET=
SLACK_FIN_OPS_CHANNEL=

# ── Observability (auto-enables with LEAFMESH_LICENSE_KEY) ────
LEAFMESH_ENV_TOKEN=development
