The invention relates to a plug device for a battery having a battery housing, in particular of an electrically driven vehicle, with a main connection body with at least two plug contours formed thereon which are each provided to receive a plug counter-contour of a plug element, with a number of power rails that are received into the main connection body and that each have at least two connection contacts, of which one connection contact is provided for the electrical connection within the housing to a battery connection and the other connection contact is seated in one of the plug contours for plug contacting on the outside of the housing with the assigned plug element, and with a sealing element for sealing the main connection body on the battery housing in a liquid- and gas-tight manner. Furthermore, the invention relates to a battery with such a plug device as well as a vehicle with such a battery.