AgML is a centralized, open-source framework for agricultural machine learning that simplifies access to public datasets, benchmarks, and pretrained models tailored to agricultural tasks. It supports both PyTorch and TensorFlow backends and includes tools for loading, preprocessing, and augmenting imagery and annotations for deep learning. AgML provides out-of-the-box loaders for segmentation, classification, and detection datasets (e.g., apple flower segmentation), and features modules for synthetic data generation and standard ML pipelines. Designed for research and reproducibility, it also includes experiment tracking and reproducible benchmarks.