Salehi joined the White House in 2015 as a technology advisor in the Office of the US CIO.[1] Under the Obama Administration, he led the development of the nation's first-ever Federal Source Code Policy,[3] which was officially published on August 8, 2016.[4] The policy cuts wasteful taxpayer spending on software acquisitions by mandating that government-funded software be shared across all federal agencies.[3][5][6] It also requires that a portion of government code be released to the public as open source software to maximize the economic benefits associated with code sharing and reuse.[3][5][7] The draft of the Federal Source Code Policy was recorded as one of the most highly commented White House policies in history.[8][9]

On November 3, 2016, Salehi launched Code.gov with US CIO Tony Scott.[10][11] Since then, Code.gov has become the nation's primary platform for sharing and improving government code, boasting a large collection of reusable software projects from dozens of federal agencies and organizations.[12] Notable examples include a reusable Facebook Messenger bot[13] built by the Executive Office of the President, a comprehensive web analytics tool[14] built by GSA, and an intuitive tracking application[15] built by the Pentagon for a NATO mission in Afghanistan[16][17]—all of which Salehi has discussed in keynote presentations around the country.[5][12][18][19]

Prior to joining the White House, Salehi helped "lead the State Department’s efforts to expand Internet access to Africa and improve global market access for US technology companies. He also served at the Advanced Research Projects Agency, which invests in transformative, cutting-edge technologies on behalf of the federal government."[22][23]

In November 2017, Salehi was named to Forbes 30 Under 30.[24][25]Forbes recognized Salehi for his tech policy work architecting the Federal Source Code Policy and launching the US government's Code.gov platform.[25]

In April 2018, Salehi was appointed as a Millennium Fellow at the Atlantic Council.[27] Since joining, he has met with Syrian refugees and political leaders in Turkey and Greece to discuss pathways toward resolving the refugee crisis in Europe and the Middle East.[28] Additionally, he has taken an active role in determining how technology can be used most effectively to resolve humanitarian crises, calling for increased cross-country collaboration and global crowdsourcing as a means to identifying solutions quickly.[28][29] In July 2018, Salehi spoke at the NATO Summit in Brussels, stating that “sharing and collaboration is the key to remaining competitive in the digital age.”[28][29]

On May 2, 2016, Salehi made headlines in the Washington Post for stopping a robbery near the White House.[1] According to the article, Salehi was en route to a meeting when he saw a man violently wrestle a woman to the ground and steal her purse. Salehi immediately charged at the man, forcing him to retreat and run toward the fence surrounding the White House. The man scaled the fence and jumped into the complex in an attempt to escape.[1] As Secret Service officers made their arrest, Salehi retrieved the purse and handed it back to the woman.[30]