A drug delivery device that includes a capsule for implantation into the body the capsule further includes a reservoir for containing a substance such as a therapeutic agent, at least one port for allowing the substance to diffuse from or otherwise exit the reservoir, and a nanopore membrane in communication with the capsule at or near the exit port for controlling the rate of diffusion of the substance from the exit port. The device also includes an optional screen for providing structural stability to the nanopore membrane and for keeping the pores of the nanopore membrane clear. One embodiment of the drug delivery device includes an osmotic engine internal to the device for creating fluid flow through the device.