Does the US have a totalization agreement with India?
Yes, in force since October 1, 2011. It stops double Social Security contributions for detached workers and lets you combine US and Indian credits for benefits.
Yes. The United States and India have a Social Security agreement that took effect on October 1, 2011 (SSA, International programs: India). It does two things: it keeps a worker sent from one country to the other from paying into both systems for a limited time, and it lets a person combine credits earned in both countries to qualify for a benefit.
Detached workers
A worker sent by an employer in one country to work temporarily in the other, for up to five years, generally stays covered only by the home country system, and the host country's contributions do not apply. The worker needs a certificate of coverage from the home country's agency, and gives a copy to the employer in the host country. For an Indian employee sent to a US office, the Indian provident fund agency issues the certificate, and that employee is exempt from US Social Security and Medicare taxes while the certificate lasts. The Indian employer's coverage continues.
This is not the case for a worker hired locally in the US by a US employer, such as most H-1B workers whose petition is with a US company. That worker pays US Social Security and Medicare in the normal way.
Combining credits
A person needs 40 credits, about ten years of work, for US retirement benefits. Under the agreement, someone who has fewer than 40 credits but at least six US credits can use Indian periods of coverage to meet the requirement, and the US then pays a partial benefit in proportion to the US time worked. The Indian side applies similar rules to its own pension scheme. So a worker with seven US years and years of Indian provident fund coverage may qualify for a partial US benefit that they would otherwise lose.
How to claim
The claim is made to the agency of the country where you live, which forwards it to the other. A person who lives in India contacts the Indian provident fund office, and a person living in the United States contacts SSA. SSA's page for the India agreement describes the process, and SSA's international office handles inquiries.
A worked case
An engineer worked six years in the US on H-1B, then returned to India. They have 24 US credits, below the 40 needed on US work alone. With Indian coverage counted under the agreement, they may be eligible for a partial US retirement benefit at retirement age, based on the 24 credits. Without the agreement they would have none.
What it does not do
It does not refund Social Security taxes already paid (see the related FAQ), and it does not change tax liability on income. It also does not cover every scheme, and its rules on coverage are specific to the programs listed in the pamphlet.
What goes wrong
No certificate of coverage. The employer pays both taxes until it arrives.
Assuming benefits are automatic. You file a claim.
Mixing it up with the income tax treaty. They are separate agreements.
A person near retirement or an employer sending staff abroad can ask SSA's international program office to confirm the rules for their facts.