A device for providing a medicament from capsules, where the device is integrated into an inhaler and comprises a capsule receiver comprising a capsule chamber, which extends along a first direction (X) in the manner of a tube and in which a capsule can be arranged, and a puncture device for opening the capsules, where the puncture device is arranged in a second direction (Y) radial to the capsule chamber, the puncture device having at least one needle which is moveable in sections into the capsule chamber in the second direction (Y) by means of an actuating button. A respective rear portion of the at least one needle of the puncture device is received in part in a needle receiver. The capsule receiver comprises at least one guide channel extending along the second direction (Y), wherein the needle receiver is arranged in the guide channel in such a moveable manner.