There are multiple reasons why the Islamic Republic doesn't like the US and the West in general. Usually the role CIA played in the 1953 coup is considered as the main reason, but it isn't. The Islamic Republic doesn't like Mossadeq and the National Front either. Before the revolution they worked together to topple the Shah, after the revolution, some members of the National Front(the party that was implicated in the 1953 coup), were in the government but they were soon marginalized.
Pahlavi dynasty:
Pahlavi dynasty reigned in Iran from 1925 to 1979 and had two monarchs: Reza shah(1925-1941) and Muhammad Reza shah(1941-1979). Reza shah, the founder of the dynasty was removed from power in 1941 when Iran was occupied by Allies during the WWII and his son Muhammad Reza became the monarch and he was a close ally of the US and the West. There were two main opposition groups under Pahlavis: communists and Islamists, communists represented intellectuals of the time and Islamists represented the mass, the majority of Iranians in a traditional conservative country.
- 1941-1963 : At the beginning, communists were the main opposition groups, they had also a political party: Tudeh Party, the party was banned in 1949, because they were implicated in some assassinations. However the party continued its underground activity. In fact the shah thought that communists were the main threat, because there were many communist revolutions in 1950s such as in Cuba, Egypt and China and he underestimated the religious groups(who were also restricted under his father). The anti-American sentiment in Iran began here: the communist and left wing groups that were intellectuals and wanted to found a communist country, they talked about equality and justice and blamed the US as imperialist power.
Another factor that contributed to the anti-American sentiment was the 1953 coup. In 1953 Mossadeq, the then prime minister wanted to restrict the power of the Shah(the monarch), things were going on well for Mossadeq and even they thought that everything was finished, but a group of Iranian generals with the support of CIA managed to change the situation, Mossadeq's government fell only after three days and he was put under house arrest. This coup intensified the anti-American sentiment among Iranian intellectuals(mainly communists).
- 1963-1979: After 1953, political activity was restricted in Iran and Iran became a one party country. Opposition groups continued their clandestine activity, but they were not as influential, during this period, the second group- the clergy- became the main opposition in Iran. They were supported by many conservative Iranians and weren't restricted till 1963 where Khomeini started his activity as an opponent. The clergy didn't like communists, but they decided to work with them because they needed them, they needed someone to be able to analyse the world and speak with foreigners, so since then the opposition included the clergy(and the mass)and communists(intellectuals).
Anyway, they toppled the Pahlavi dynasty in 1979, and the interim government was composed of both groups: Islamists and leftists, during this period Khomeini needed those intellectuals to communicate with the world and form a new government.
After the revolution:
A year after the victory of the revolution, the system was working and they didn't need leftist and intellectuals any more(those who saw the US as imperialist power). They were dismissed and marginalized and were purged in 1988. The Islamic Republic formed a homogenous conservative government. During this period left wing groups, main reason of anti-Americanism, weren't in the government any more, but they remained anti-American, probably because they need an enemy to blame for their failure. Anyway they need a pretext to convince their supporters. Now those who still support the Islamic Republic in Iran blame the US for economic problems caused by sanctions without knowing that the animosity began in 1979 after the hostage crisis by the Islamic Republic.
Besides, the Islamic Republic has other reasons to hate the US and the West: they talk about democracy, they finance media outside Iran that provide information to Iranians(who otherwise were limited to the regime's media), they give political asylum to opponents and finally they have contributed to the overthrow of regimes in many neighbouring countries such as in Afghanistan, Iraq and Libya.
In short, the anti-American sentiment in Iran began by left wing groups and communists in 1940s, it was intensified by the coup in 1953 and was adopted by the Islamic Republic that, like all authoritarian regimes is afraid of the free world.