DEV Community

Cover image for I built EcoPrompt: Track the real-time CO2, water & energy cost of your AI prompts
IB2M_Official
IB2M_Official

Posted on

I built EcoPrompt: Track the real-time CO2, water & energy cost of your AI prompts

Every time we send a query to ChatGPT, Google Gemini, or Claude, high-density GPU clusters consume electricity and water for cooling. While the productivity gain is immense, the environmental footprint remains invisible.

I built EcoPrompt — an open-source, lightweight Chrome extension (Manifest V3) that calculates the CO₂, water, energy, and API cost of your AI prompts in real time, 100% locally with zero prompt tracking.

EcoPrompt Live Toast on Gemini

🔗 Quick Links


🌿 Key Features & Architecture

  • 📊 4 Live Metrics: Real-time in-page toasts estimating COâ‚‚e (g), water evaporation (mL), active energy draw (Wh), and API cost equivalents.
  • 🎯 Daily Quotas & Smart Reminders: Set custom thresholds with progressive alerts (+1, +2 extra queries) to encourage prompt batching.
  • 📈 Native SVG Analytics: Interactive timelines across Days, Weeks, Months, and Years without external charting libraries.
  • 🔒 100% Local & Private: No backend, no telemetry. Prompt text is never read, stored, or transmitted — character count is evaluated in memory only for length weighting.
  • 🪶 Zero Dependencies: Pure vanilla JS and lightweight CSS (total bundle size < 150 KB).

EcoPrompt Analytics Dashboard


🚀 Try it out

The project is open-source under the CC BY-NC-SA 4.0 license. Feel free to check out the repo, star it if you find it useful, and share your feedback or benchmark ideas in the comments!

EcoPrompt Analytics Dashboard

Top comments (0)