Gnosticism

Gnosticism is a religious tradition which focuses primarily on escaping entrapment.

Mani was not a gnostic but was in similar spheres. Gnosis is a goal of gnosticism