Objective. Determining and verifying the number of monitor units is crucial to achieving the desired dose distribution in radiotherapy and maintaining treatment efficacy. However, current commercial treatment planning system(s) dedicated to ocular passive eyelines in proton therapy do not provide the number of monitor units for patient-specific plan delivery. Performing specific pre-treatment field measurements, which is time and resource consuming, is usually gold-standard practice. This proof-of-concept study reports on the development of a multi-institutional-based generalized model for monitor units determination in proton therapy for eye melanoma treatments. Approach. To cope with the small number of patients being treated in proton centers, three European institutes participated in this study. Measurements data were collected to address output factor differences across the institutes, especially as function of field size, spread-out Bragg peak modulation width, residual range, and air gap. A generic model for monitor units prediction using a large number of 3748 patients and broad diversity in tumor patterns, was evaluated using six popular machine learning algorithms: (i) decision tree; (ii) random forest, (iii) extra trees, (iv) K-nearest neighbors, (v) gradient boosting, and (vi) the support vector regression. Features used as inputs into each machine learning pipeline were: Spread-out Bragg peak width, range, air gap, fraction and calibration doses. Performance measure was scored using the mean absolute error, which was the difference between predicted and real monitor units, as collected from institutional gold-standard methods. Main results. Predictions across algorithms were accurate within 3% uncertainty for up to 85.2% of the plans and within 10% uncertainty for up to 98.6% of the plans with the extra trees algorithm. Significance. A proof-of-concept of using machine learning-based generic monitor units determination in ocular proton therapy has been demonstrated. This could trigger the development of an independent monitor units calculation tool for clinical use.