There's a free tier, and various paid tiers: https://github.com/features/copilot/plans
If you are a student or maintain a popular open source project, they give it to you for free. I’m guessing you might fall under that category.
Re:Claude Sonnet Will Ship in Xcode
by rajnathani on Saturday August 30, 2025 @12:34AM
(#45071940)
Besides the sibling replies to your comment, GitHub’s Copilot free plan (not the specifically free for just OSS and students) was also launched relatively later: https://github.blog/news-insights/product-news/github-copilo...
I've been getting monthly emails that my free access for GitHub Copilot has been renewed for another month… for years. I've never used it, I thought that all GitHub users got it for free.