Nature Electronics, Published online: 24 July 2026; doi:10.1038/s41928-026-01679-0 Artificial intelligence (AI) agents can be used to calculate the carbon footprint of electronic devices, potentially helping to address the increasing environmental impact of electronics and AI.