In a secret chat last November, according to court filings, two associates of a violent white supremacist group discussed whether drug use was in line with their political beliefs.

“Psychedelic Nazis . . . There’s nothing more Aryan than entheogenic drug use,” Andrew Thomasberg, 21, texted a friend, according to prosecutors, referencing plants that have psychedelic effects. But, he added, “Drug addiction is untermensch” – a Nazi term for people considered subhuman.

His friend replied: “That’s debatable. But I still have a bunch of shrooms anyway.”

Thomasberg was arrested at his home in McLean, Virginia, on Thursday, according to court filings, accused of possessing guns as a drug user and illegally buying an AK-47 in 2017 for that friend, who is cooperating with authorities.

In Alexandria federal court on Friday, FBI Special Agent Shawn Matthews, who testified that his focus is domestic terrorism, said Thomasberg took part in the deadly “United the Right” rally in Charlottesville, Virginia in 2017 with a neo-Nazi group called Vanguard America.

Far-right extremist engulfed by fireball as he torches synagogue Show all 9 1 /9 Far-right extremist engulfed by fireball as he torches synagogue Far-right extremist engulfed by fireball as he torches synagogue Far-right extremist Tristan Morgan, 52, has been locked up in hospital indefinitely after torching an 18th-century grade II-listed synagogue in Exeter, Devon, on 21 July 2018. Devon and Cornwall Police Far-right extremist engulfed by fireball as he torches synagogue Devon and Cornwall Police Far-right extremist engulfed by fireball as he torches synagogue Devon and Cornwall Police Far-right extremist engulfed by fireball as he torches synagogue Devon and Cornwall Police Far-right extremist engulfed by fireball as he torches synagogue Devon and Cornwall Police Far-right extremist engulfed by fireball as he torches synagogue Devon and Cornwall Police Far-right extremist engulfed by fireball as he torches synagogue Devon and Cornwall Police Far-right extremist engulfed by fireball as he torches synagogue Devon and Cornwall Police Far-right extremist engulfed by fireball as he torches synagogue Far-right extremist Tristan Morgan, 52, has been locked up in hospital indefinitely after torching an 18th-century grade II-listed synagogue in Exeter, Devon, on 21 July 2018. Devon and Cornwall Police

After Charlottesville, Matthews said Thomasberg gravitated to another neo-Nazi group called the Atomwaffen Division that is “distinct in that it advocates for violence or violent acts to start a racial war in the United States.”

Prosecutors produced records of group chats in which Thomasberg said he was probably under investigation because he is “on record at shooting at people.” Thomasberg said he had shouted the n-word at a group of African Americans at the mall, according to the chat logs, talked about a coming “racial holy war” and described racially-motivated mass shooters as “saints.”

Matthews said law enforcement found 20 guns in the home Thomasberg shared with his mother, stepfather and sister. Six of the guns were in Thomasberg’s bedroom, most were loaded. There was also a Glock pistol in his car.

Marijuana was found in his home, although Thomasberg’s family said it belonged to his stepfather.

One person close to Thomasberg told the FBI last year that he had three or four firearms and regularly carried a handgun. He has bought two rifles, a pistol and a handgun in the past four years, according to court records.

The case is one of several brought recently in federal court charging people linked to far-right groups with gun or drug crimes. A DC man who glorified violence against minorities on social media was sentenced last week to 10 months’ time served on a gun charge.

Judge Theresa Buchanan declined to grant bail for Thomasberg, calling the evidence “extremely concerning.”

Thomasberg’s mother, who declined to give her name, said there were “a lot of discrepancies” and “lies” in the case against her son. She said he is active in the Greek Orthodox Church.

“The United States seeking out a rich, white kid – not cool,” she said.

An attorney for Thomasberg, Elita Amato, declined to comment. In court, she emphasised that there was no evidence that Thomasberg was using drugs while buying guns.

CCTV: Far-right racist attacks neighbour’s home with baseball bat before stabbing Bulgarian man

A 2013 conviction was referenced in court by the judge – Thomasberg would have been a juvenile at the time and those records are not accessible.

In June, he texted the friend who is now cooperating, known in court papers as BB, that he was “carrying enough gear and supplies to set the new high score and wouldn’t want to have to explain that to a cop.”

According to Matthews in his affidavit, “high score” is a reference to mass shootings.

Thomasberg bought the AK-47 for BB in October 2017 at the Sterling, Virginia, gun store where he worked in violation of store policy, according to Matthews.

The gun was found when police searched BB’s home this year as part of a separate investigation. Matthews said Thomasberg described the gun in an interview Thursday as a “straw purchase.” BB said the pair made up a bill of sale for the gun as a “joke” with the price $14.14; the number 14 is a reference to a white supremacist slogan.

Along with LSD and mushrooms, according to prosecutors, Thomasberg and BB discussed using marijuana, opium and the prescription stimulant Modafinil.

In July, Thomasberg applied for a concealed carry permit in Fairfax, Virginia and was denied.

Eric Clingan, a defence attorney, said he considered calling Thomasberg as a witness during the murder trial of a man who was eventually convicted of shooting and killing another man at a Fairfax County shopping centre last year.

Mr Clingan said his client, Manvinder Aulakh, was friends with Thomasberg and had learned some self-defence techniques from him.

But Mr Clingan said he dropped those plans after a background check revealed that Thomasberg had talked about marching in Charlottesville with white supremacist groups.

“My client and I determined that we didn’t want Mr. Thomasberg to testify in any manner,” Mr Clingan said.