In this paper, a system based on concepts of Multi-Agent Cooperative Systems is designed. It allows synchronizing inverters from two consensus Algorithms. This approach is made to designing smart devices (Smart inverters) through communicating the state among all the inverters by the Multi-Agent network in order to maintain stable frequency, phase, and voltage. The inverter is controlled by a deadbeat strategy that integrates a full observer of voltage and current, a resonator to eliminate the harmonics to obtain the desired signal.