GitHub's docs say maintainers of popular open source projects may be eligible (opens in new tab) for free access to Copilot Pro, which otherwise costs $10 USD per month. Verified teachers can get it too.
GitHub does not publish a threshold for "popular". If your account qualifies, the Copilot settings page (opens in new tab) shows that you are eligible and lets you claim it. GitHub reevaluates eligibility every month.
Per the plans page (opens in new tab), Copilot Pro includes a monthly allowance of GitHub AI Credits (1,000 base plus 500 flex), agent mode, MCP support and Copilot in the cloud. If you don't qualify, you can use Copilot Free or pay for Pro.