The present invention relates to new medical uses of morphinans such as naltrexone nalmefene and their related derivatives. The present invention relates to Toll like receptor 4 (TLR4) antagonist compounds and pharmaceutical formulations thereof and use thereof for prevention and treatment of autoimmune liver diseases including but not limited to autoimmune hepatitis.