Red pitaya (Hylocereus costaricensis) is a promising species, with high cultivation potential due to the organoleptic and functional qualities of its fruits. However, irrigation water salinity can affect the crop yield. Therefore, materials rich in organic substances can minimize the damage caused by excess salts in soil and/or water. Thus, the objective of this study was to evaluate the influence of organic matter sources as attenuators of salt stress on the production and biochemical responses of red pitaya seedlings. A completely randomized design in 4 × 5 factorial scheme, with five sources of organic matter (humus, sheep manure, biofertilizer, organic compost and sand + soil) and four salinities (0.6, 2.6, 4.6 and 6.6 dS m-1) with four replicates and two plants per plot was used. The shoot length, root length, cladode diameter, number of cladodes, number of sprotus, root volume, shoot dry mass, root dry mass and total dry mass, root and shoot dry mass ratio, chlorophyll a, b and total, amino acids and soluble sugars were evaluated at 120 days after the treatments began to be applied. Red pitaya is moderately tolerant to salinity (ECw from 4.0 to 6.0 dS m-1). Organic compost and sheep manure attenuate the harmful effects of salinity on red pitaya seedlings. Under salt stress conditions, red pitaya plants increase their levels of proline, amino acids and total sugars.