Non-US citizens can file a class action lawsuit against the US government, but there are certain limitations and exceptions that apply. The Federal Tort Claims Act (FTCA) allows individuals to sue the federal government for certain types of claims, including personal injury or property damage caused by the negligent or wrongful acts of federal employees. However, non-US citizens may only sue the US government in the US Court of Federal Claims if their home country grants US citizens the same right to sue their government in its courts. Additionally, while US courts are generally open to foreign litigants, it is almost always the case that a person must be a US resident in order to join or take part in a class action lawsuit filed in the United States.

Also worth reading: How does Trump's $10 billion lawsuit against BBC face legal challenges? · Why did the DOJ drop the lawsuit against California over ballot withholding? · What is the defamation lawsuit against Republican Yee seeking from Norton?