CreVar is a toolkit that measures and manages credit portfolio risk by calculating credit exposures, unexpected losses, and credit value-at-risk (VaR). It provides a consistent framework that calculates economic capital needed to support the business. CreVar calculates credit VaR starting from Pillar I of Basel II and extends the analysis to include Pillar II risks like granularity adjustment, sectoral concentration, and contagion risk. The outputs include a total credit VaR and its decomposition into components to meet regulatory requirements.