Ukrainian People's Army
After the October Revolution went to serve in the General Staff of the Ukrainian People's Army (UNR). In 1918 was promoted to Quartermaster General. During the Hetmanate and the Directorate he continued to serve in the General Staff, playing an important role in capture of Kiev from Bolsheviks in 1919. At the end of 1919 became Chief of General Staff. In 1920 headed Ukrainian delegation in negotiations with Poland, which resulted in the Treaty of Warsaw.