Two senses, both widely used: (1) the original Hong Kong/Cantonese sense of 'gay friend', derived from the transliteration
基 for English 'gay'; (2) the mainstream extension to 'close male buddy', often used jokingly between straight male friends, especially in gaming contexts.