With T-Mobile you can call customer service to have your phone unlocked. They email you the "unlock" code. It sometimes takes several days to receive, but in my recent experience it only took 24 hours.