# OpenClaw Configuration Template
# Generated by Ansible on {{ ansible_date_time.iso8601 }}
#
# For full documentation, visit: https://docs.openclaw.ai/configuration

# Connection Provider
# Options: whatsapp, telegram, signal
provider: whatsapp

# WhatsApp Configuration (if using whatsapp provider)
whatsapp:
  # Phone number in international format (e.g., +4366412345678)
  phone: ""

# Telegram Configuration (if using telegram provider)
telegram:
  # Telegram bot token from @BotFather
  token: ""

# Signal Configuration (if using signal provider)
signal:
  # Signal phone number
  phone: ""

# AI Model Configuration
ai:
  # Model provider: anthropic, openai
  provider: anthropic

  # API Keys (set as environment variables or here)
  # anthropic_api_key: ""
  # openai_api_key: ""

  # Model selection
  model: claude-3-5-sonnet-20241022

  # Max tokens per response
  max_tokens: 4096

# Gateway Settings
gateway:
  # Port for web interface
  port: {{ openclaw_port }}

  # Enable web UI
  web_ui: true

# Logging
logging:
  # Log level: debug, info, warn, error
  level: info

  # Log file location
  file: {{ openclaw_config_dir }}/openclaw.log

# Security
security:
  # Allowed phone numbers (whitelist)
  # Leave empty to allow all
  allowed_numbers: []

  # Rate limiting
  rate_limit:
    enabled: true
    max_requests_per_minute: 10

# Advanced Settings
advanced:
  # Session timeout in minutes
  session_timeout: 60

  # Auto-reconnect on disconnect
  auto_reconnect: true

  # Keep-alive interval in seconds
  keep_alive_interval: 30
