We exploit the critical structure on the Quot scheme Quot 3 ( ⊕r , n), in particular the associated symmetric obstruction theory, in order to define rank r K-theoretic Donaldson-Thomas invariants of the Calabi-Yau 3-fold 3 . We compute the associated partition function as a plethystic exponential, proving a conjecture proposed in string theory by Awata-Kanno and Benini-Bonelli-Poggi-Tanzini. A crucial step in the proof is the fact that the invariants do not depend on the equivariant parameters of the framing torus ( * ) r .Reducing from K-theoretic to cohomological invariants, we compute the corresponding DT invariants, proving a conjecture of Szabo. Reducing further to enumerative DT invariants, we solve the higher rank DT theory of a pair (X , F ), where F is an equivariant exceptional vector bundle on a projective toric 3-fold X .We give a mathematical definition of the chiral elliptic genus studied in physics by Benini-Bonelli-Poggi-Tanzini. This allows us to define elliptic DT invariants of 3 in arbitrary rank, and to study their first properties.