Gamma Cephei (γ Cep / γ Cephei) is a star in the constellationCepheus. It also has the traditional name Alrai, also known as Errai (or Er Rai).
Gamma Cephei is a binary star approximately 50 light years from Earth, with an apparent magnitude of 3.22. The larger and brighter star is a stellar class K1 IV orange subgiant star. The smaller is a red dwarf in a poorly studied orbit: the current best guess is that it orbits eccentrically from 10 to 29 AU over the course of 70 yrs ± 16 yrs, with an eccentricity of 0.439 ± 0.06 (Cochran et al 2002).
The traditional name derives from the Arabicالراعيar-rā‘ī, meaning "the shepherd". Confusingly, the star β Ophiuchi is sometimes also called Alrai, but it is more commonly known as Cebalrai or Kelb Alrai, meaning "shepherd's dog".
A planet orbiting Gamma Cephei A was tentatively identified by a Canadian team of Bruce Campbell, Gordon Walker, and Stephenson Yang in 1988. Its existence was also announced by Anthony Lawton and P. Wright in 1989. This would have been the first confirmed extrasolar planet, and it was hypothesized based on the same radial velocity technique later used successfully by others. However, the claim was retracted in 1992 due to the quality of the data not being good enough to make a solid discovery. But in 2002, evidence of the planet was considerably strengthened by the new measurements by Artie Hatzes and his collaborators at the McDonald Observatory.