Bowe Bergdahl, the Army deserter who walked off his base in Afghanistan, is whining that the US treated him worse than the Taliban.

The 31-year-old sergeant told British TV journalist Sean Langan in an interview reported in the Sunday Times of London: “At least the Taliban were honest enough to say, ‘I’m the guy who’s gonna cut your throat.’ ”

That got him less upset than the “administrative duties” the Army assigned him while awaiting trial, he said.

“Here, it could be the guy I pass in the corridor who’s going to sign the paper that sends me away for life,’’ he said.

“We may as well go back to kangaroo courts and lynch mobs.”

During his nearly five years as an unwilling guest of the Taliban, he said, he was kept in a steel cage and tortured.

Bergdahl complained to Langan — who himself was held by the Taliban for three months in 2008 — about the “endless weeks, months, years on my own.’’

There are conflicting reports that six soldiers died searching for him.

He was traded for five Taliban officials freed from Guantanamo Bay.

He faces a possible life sentence.