A top-ranking member of Bill Clinton's administration endorsed Bernie Sanders for president late Friday, according to a Twitter post.

Robert Reich, who served as Labor Secretary under Clinton and in various roles in the Gerald Ford and Jimmy Carter administrations, said he chose to endorse Sanders over Democratic rival Hillary Clinton.

"I have the deepest respect and admiration for Hillary Clinton, and if she wins the Democratic primary I'll work my heart out to help her become president. But I believe Bernie Sanders is the agent of change this nation so desperately needs," Reich wrote later in a Facebook post.

Reich cited Sanders' plans for a "political revolution" as the only way Americans can take the country back from "moneyed interests that now control so much of our economy and democracy."

Reich had been supportive of both Democrats up until this point and is among the first of Democratic administration officials to pledge support to the avowed democratic socialist Vermont senator.