High-temperature self-lubricating materials are an appropriate choice to solve the problem of friction and wear for elevated temperature mechanical systems. In this study, NiCrAlYTa-Ag self-lubricating coatings used in a wide temperature range were prepared by the detonation gun spraying method. According to the findings, NiCrAlYTa-Ag coatings are composed of γ/γ', β-NiAl and Ag phases. The hardness and bonding strength of the coating decrease with the addition of Ag, and the coating with 20 % Ag has a high bonding strength of 43 MPa and a hardness of 303 Hv. The coating exhibited a friction coefficient of 0.35–0.47 and a wear rate of 4 × 10−5–6 × 10−5 mm3/N m From room temperature to 900 °C. At low temperatures, lubrication behavior was mainly attributed to the formation of Ag films. Excitingly, the AgTaO3 with good lubrication performance was created at high temperatures by a tribo-chemical reaction, which plays a synergistic lubrication role with Ta2O5, NiO, and Cr2O3.