XR is the robotic Space Ranger and a major character from the Disney/Pixar television series Buzz Lightyear of Star Command. His name stands for "experimental ranger." He was introduced in the movie Buzz Lightyear of Star Command: The Adventure Begins when he was built by the LGM's as a possible partner for Buzz Lightyear because, being a robot, he could be rebuilt if destroyed. Originally he had a very absent personality, and was only programed to learn from Buzz. On his first mission with Buzz, to try to protect the LGM's Unimind from Zurg, he was destroyed. He was rebuilt by the LGM's, but since Zurg captured the Unimind, the LGM's ability to rebuild him was inhibited. Therefore he was rebuilt with many character flaws, by the LGM's standard he was almost human.
He was voiced by Neil Flynn, who also played the janitor on Scrubs, and Larry Sullivan, who also played Theodore Peus on Scandal. In the Japanese dub from the series and movie, he was voiced by Kenyu Horiuchi.