My preferred device for top-rope solo climbing is the Petzl Mini Traxion, used with an anti-cross-loading carabiner :
Here is my basic anchor setup (note that the end of the climbing rope is weighted and that a second strand of rope is used as a back-up and a rappel line):
The system at work: