A biogas compression and treatment system comprised of an oil-injected rotary screw gas compressor coupled directly to an electric motor through a flexible coupling controlled by a transducer. Compressed gas is supplied to cogeneration power plants, purification systems, filters, or for direct use in heating areas. The regulatory system may be tailored to the demands of the customer.