I'm a xanax and codiene addict myself.
My experience with xanax is that I can't sleep without it.
The one time I quit......I used ambien for about a week, then tappered to over the counter sleep syrup. I quit for a few weeks and stupid me......got back on them again.