# OpenCode WebUI Configuration # Copy this file to .env and customize as needed # ============================================ # Backend Server (Hono API) # ============================================ PORT=5001 HOST=0.0.0.0 # ============================================ # OpenCode Server # ============================================ OPENCODE_SERVER_PORT=5551 # ============================================ # Database # ============================================ DATABASE_PATH=./data/opencode.db # ============================================ # Workspace Configuration # ============================================ # Local workspace path for repositories and configs WORKSPACE_PATH=~./workspace # ============================================ # Timeouts (milliseconds) # ============================================ PROCESS_START_WAIT_MS=2000 PROCESS_VERIFY_WAIT_MS=1000 HEALTH_CHECK_INTERVAL_MS=5000 HEALTH_CHECK_TIMEOUT_MS=30000 # ============================================ # File Upload Limits # ============================================ # File size limits in MB MAX_FILE_SIZE_MB=50 MAX_UPLOAD_SIZE_MB=50 # ============================================ # Logging # ============================================ DEBUG=false # ============================================ # Frontend Configuration (REQUIRED) # ============================================ # Backend API URL - frontend connects to this # Must include full URL with port (e.g., http://localhost:8080) VITE_API_URL=http://localhost:8080