How do you get past Kniles the Flenser in Divinity: Original Sin 2?

Quick answer: Kill Kniles and use the key on his body to open the gate to the sewer. If you carry Atusa’s Leg, you can give it to him and he lets you pass.
Show walkthrough (quest spoilers)
Fight him
Kill Kniles the Flenser in his area of the prison. Take the key from his body and use it on the sewer gate to get out of the fort. The fight is hard, so go in with a full party and good positioning.
Give him Atusa’s Leg
If you have Atusa’s Leg when you talk to him, give it to him. He ignores you and the way to the sewer pipe opens. This skips the fight completely.
Fight tips
Split his group up before you commit, and open with your strongest crowd control. The Gloves of Teleportation are useful for pulling enemies apart. Rest and heal before you start.
Avoid him
If he is too hard, go up the prison stairs instead. Sneak past High Judge Orivand’s ritual on the ground floor to the ladder at the broken wall. That route also leads out of the fort.
