CoDEx is a Mathematica^{textregistered } package that calculates the Wilson coefficients (WCs) corresponding to effective operators up to mass dimension 6. Once the part of the Lagrangian involving single and multiple degenerate heavy fields, belonging to some beyond standard model (BSM) theory, is given, the package can then integrate out propagators from the tree and 1-loop diagrams of that BSM theory. It then computes the associated WCs up to 1-loop level, for two different bases: and . "CoDEx" requires only very basic information as regards the heavy field(s), e.g., color, isospin, hypercharge, mass, and spin. The package first calculates the WCs at the high scale (mass of the heavy field(s)). We then have an option to perform the renormalization group evolutions (RGEs) of these operators in basis, a complete one (unlike ), using the anomalous dimension matrix. Thus, one can get all effective operators at the electro-weak scale, generated from any such BSM theory, containing heavy fields of spin 0, 1/2, and 1. We provide many example models (both here and in the package documentation) that more or less encompass different choices of heavy fields and interactions. Relying on the status of the present day precision data, we restrict ourselves up to dimension-6 effective operators. This will be generalized for any dimensional operators in a later version.