PurposeThe managerial questions of this paper are as follows, and the authors are trying to solve them: How revenue sharing contract (CSR) degree and government subsidy affect the agri-food quality? What kind of model (WPC, revenue-sharing contract [RSC] and cooperative) would be more effective in motivating manufacturers and retailer to increase effort and improve agri-food quality? What kind of model (WPC, RSC and cooperative) would make manufacturer and retailer better off?Design/methodology/approachConsidering the jointing quality effort and contract decision in green agri-food supply chain, this paper proposes six models that consider CSR of manufacturer and retailer, and then the obtained optimal solutions are compared and analyzed. At the same time, the impact of government subsidies is analyzed, and corresponding conclusions are drawn.FindingsThe results show that, first of all, whether the increasing CSR of the manufacturer or the retailer can motivate both parties to improve the agri-food quality effort investment. Second, the WPC and RSC contract may play different role in different cases. Finally, under the model with government subsidies, regarding positive influence of government subsidies on efforts of manufacturer and retailer, quality and profits of members is investigated. Based on these conclusions, this study puts forward the following policy suggestions. Firstly, governments should formulate reasonable subsidy policies to support manufacturer and retailer to improve the agri-food quality, thereby promoting green industries' development. Secondly, manufacturer and retailer should actively improve CSR and strengthen the effort of agri-food so as to advance quality. Finally, manufacturer and retailer can choose cooperative model or WPC contract.Research limitations/implicationsIn this paper, one manufacturer and one retailer are considered. Since the agri-food supply chain structure in reality is more complicated, the future research direction can consider the supply chain structure with one manufacturer and multiple retailers. In addition, this paper only considers the subsidy, and future research can classify the subsidy into different types.Originality/valueThe study makes two substantive contributions to the body of knowledge in the field of sustainable operations:(1) incorporating quality-based demand function in supply chain and dynamic process of agri-food quality; (2) exploring the impact of CSR awareness of members and subsidy of government on agri-food quality, and comparing the influence in different models.