I read some potentially conflicting claims:
Hajj permits are allocated to countries on a quota system and Saudi Arabia requires each pilgrim to acquire one of the 1.8 million available licenses to legally access Mecca.
But as the cost of one of these licences costs several thousand US dollars, many pilgrims try to access the site illegally and typically don’t travel in organized tour buses with air conditioning or easy access to water and food supplies.
https://visaindex.com/visa/saudi-arabia-visa/hajj-visa/:
Hajj visas are free of charge. However, there will certainly be other costs for accommodation and services during the trip to Saudi Arabia.
How much does a Hajj visa/permit cost, and is a Hajj permit the same as a Hajj visa?