A California journalist is accusing cops of raiding his home and shackling him after he published information from a confidential police report.

Freelance reporter Bryan Carmody said officers descended Friday on his San Francisco home and office, confiscating dozens of items including his cellphone, computer, hard drives and cameras, the Los Angeles Times reported.

Carmody, 49, said he declined to name his source when the San Francisco Police Department asked him a few weeks earlier to identify who provided him details about the Feb. 22 death of public defender Jeff Adachi.

“Of course, I politely declined,” Carmody told the LA Times.

Adachi’s death initially was reported as a heart attack, but the reporter revealed that cocaine and alcohol were contributing factors, citing a leaked police report.

When Carmody refused to give up his source, authorities obtained a search warrant to investigate him for “stolen or embezzled” property, according to the LA Times.

Carmody said he was handcuffed for about seven hours while officers searched his property and took the leaked documents.

“It’s designed to intimidate,” said Carmody’s attorney Thomas Burke. “It’s essentially the confiscation of a newsroom.”

With Post wires