The Cosmic Puppets (original title: A Glass of Darkness) is a science fiction novel by American author Philip K. Dick, published in 1957.
Ted Barton, having left Millgate, Virginia several years ago, returns with his wife Peg to find his hometown strangely transformed.
While in Millgate, Barton meets three sympathetic locals: Doctor Meade, a family physician; his daughter, Mary; and William Christopher, a town drunk.
At the denouement, Millgate finds itself in the crossfire of a battle between the twin but diametrically opposed demigods, Ahriman (the "destructive spirit") and Ormazd (the "creator") of Zurvanism.
The former Millgate returns to solidity, Christopher resumes his career as an electrician forgetting the Change ever occurred, and Barton leaves the town, having restored the "true" nature of the community to what it was.