# OpenClaw Environment Configuration
# Copy this file to .env and configure the values

# Timezone (default: UTC)
TZ=UTC

# Global container registry prefix (optional)
# Examples: docker.io/, ghcr.io/, your-registry.com/
GLOBAL_REGISTRY=

# OpenClaw Version
# Use 'main' for latest, or specific version tag like 'v2026.2.3'
OPENCLAW_VERSION=2026.2.3

# === Gateway Configuration ===
# Gateway access token (REQUIRED - generate a secure random token)
# Example: openssl rand -hex 32
OPENCLAW_GATEWAY_TOKEN=your-secure-token-here

# Gateway bind address
# Options: loopback (127.0.0.1), lan (0.0.0.0 for LAN access)
OPENCLAW_GATEWAY_BIND=lan

# Gateway internal port (default: 18789)
OPENCLAW_GATEWAY_PORT=18789

# Gateway host port override (default: 18789)
OPENCLAW_GATEWAY_PORT_OVERRIDE=18789

# Bridge port override (default: 18790)
OPENCLAW_BRIDGE_PORT_OVERRIDE=18790

# === Model API Keys (Optional - if not using OAuth) ===
# Anthropic Claude API Key
ANTHROPIC_API_KEY=

# OpenAI API Key
OPENAI_API_KEY=

# Claude AI Session Keys (for web session auth)
CLAUDE_AI_SESSION_KEY=
CLAUDE_WEB_SESSION_KEY=
CLAUDE_WEB_COOKIE=

# === Resource Limits ===
# Gateway service resource limits
OPENCLAW_CPU_LIMIT=2.0
OPENCLAW_MEMORY_LIMIT=2G
OPENCLAW_CPU_RESERVATION=0.1
OPENCLAW_MEMORY_RESERVATION=1G

# CLI service resource limits
OPENCLAW_CLI_CPU_LIMIT=1.0
OPENCLAW_CLI_MEMORY_LIMIT=512M