AI can benefit society in many ways, but given the energy needed to support the computing behind AI, these benefits can come at a high environmental price. Use Code Carbon to track and reduce your CO2 output.
A single datacenter can consume large amounts of energy to run computing code. An innovative new tracking tool is designed to measure the climate impact of artificial intelligence. Kana Lottick, Silvia Susai, Sorelle Friedler, and Jonathan Wilson. Energy Usage Reports: Environmental awareness as part of algorithmic accountability. NeurlPS Workshop on Tackling Climate Change with Machine Learning, 2019.
Download package
Embed the code
Run and track
Visualize results
Emissions for individual code repositories based on infraestructure and power consumption.
Exemplary equivalents to put emissions in context.
Recommends compute regions with lower carbon intensity for major cloud providers – AWS, Azure, and GCP.
We look forward to developers and researchers using the tool and sharing their feedback
We look forward to developers contributing to CodeCarbon development <3<3<3
Spread the word about CodeCarbon among your colleagues, peers, conferences, and developer forums
Here's the team that helped build Code Carbon
Data Scientist
Deep Learning Engineer
Researcher
Hugging Face
Software Developer
© 2025 Codecarbon. All rights reserved.