A promising class of materials for applications that rely on electron transfer for signal generation are the n-type semiconducting polymers. Here we demonstrate the integration of an n-type conjugated polymer with a redox enzyme for the autonomous detection of glucose and power generation from bodily fluids. The reversible, mediator-free, miniaturized glucose sensor is an enzyme-coupled organic electrochemical transistor with a detection range of six orders of magnitude. This n-type polymer is also used as an anode and paired with a polymeric cathode in an enzymatic fuel cell to convert the chemical energy of glucose and oxygen into electrical power. The all-polymer biofuel cell shows a performance that scales with the glucose content in the solution and a stability that exceeds 30 days. Moreover, at physiologically relevant glucose concentrations and from fluids such as human saliva, it generates enough power to operate an organic electrochemical transistor, thus contributes to the technological advancement of self-powered micrometre-scale sensors and actuators that run on metabolites produced in the body.