The rapper-turned-politician, who came to power following a wave of youth-led anti-corruption protests in September 2025, is on his first trip to a neighbouring country since taking office in March.
Shah, 36, wearing his trademark sunglasses and dressed in black, gripped the hand of Modi, 76, dressed all in white.
Nepal, a landlocked Himalayan nation of 30 million people, has long had to balance its relations with its two giant neighbours India and China.
India is Nepal's largest trading partner, accounting for more than 60% of its imports, worth US$8.6 billion, while China accounts for 13%, or US$1.8 billion, according to World Bank figures.
Shah was given a military honour guard parade at the presidential palace in New Delhi.
India's foreign ministry has said Shah's visit will provide an opportunity to "further strengthen" ties between New Delhi and Kathmandu.
Shah arrived in India on Sunday and met Foreign Minister Subrahmanyam Jaishankar to discuss "trade, transit commerce, energy", Nepal's foreign ministry said.
Unlike his predecessors, Shah had initially refrained from foreign visits since becoming prime minister.
His first overseas trip was to New York in September, where he addressed the United Nations General Assembly, as Nepal reeled from a deadly tsunami-like flood triggered by a high-altitude glacial mountain collapse that killed more than 1,400 people and left 5,000 missing.
Nepal, a largely rural country that contributes little to global greenhouse gas emissions, estimates reconstruction will cost US$4.78 billion.
Uploaded by Liza Shireen Koshy
_Nepali_counterpart_Balendra_Shah_in_New_Delhi_AFP_APP.jpg&w=1920&q=75)