Counterterrorism police have charged a 13-year-old boy under Queensland's new hate speech laws.

The 13-year-old boy was initially arrested over reports he had entered a service station with a knife in Maryborough last week.

Counterterrorism police have charged a 13-year-old boy under Queensland's new hate speech laws.