India’s airports (and some train stations) have booths for prepaid taxis that operate under a government-set fare chart. The trick, though, is they are invariably inside the terminal somewhere between baggage claim and the exit, and if you miss them and exit, you have virtually no chance of getting past security to backtrack. And then you are at the mercy of the swarming touts outside.
Prepaid Taxis can be booked for short and long-distance trips, and there are usually at least options for non-A/C and A/C. The Rapid Traveler once booked for a layover in Chennai (MAA) for a half-day roundrip to Mahabalipuram. The driver was chill and did not mind extra waiting time. The fare was peanuts compared to tout rates.
The booking agent collects payment and gives passengers a ticket, noting the fare and destination. Upon exit a security guard or employee handles assignment of the taxi based on the ticket. Stick tight to that person in the scrum until you reach your taxi. And then roll off without the hassle of haggling.
What to do about taxis everywhere else? Hotels can help, but otherwise it is up to haggling skills and perseverance.