To unlock T.T., you need to collect all four pieces of the T.T. Amulet. After that, you must beat him in every Time Trial race using every available vehicle on each course. It takes patience, but completing those challenges allows you to add T.T. to your roster.