dclichang2022/dsh-green-meter--packages-green-meter1

dsh-green-meter

Token-profile energy and carbon estimation for agentic sessions

AI Analysis

核心用途是在后台计算并记录智能体任务的电力消耗与碳排放。适合需要对 AI 算力消耗进行绿色审计或设置能耗预算上限的系统管理员。支持通过环境变量或配置文件调整参数。

Package
dsh-green-meter
Version
1.0.1
License
MIT
Last updated
Aug 14, 2026

Install

This plugin has no verified bundle, or compatibility checks failed. Read the repository notes first. Read the full README ↗

Configuration

KeyDefaultMeaning
profileproxycalibration profile (proxy, qwen-h20-*, gemma-h20-*, qwen3-4b-*)
carbonFactorKgPerKwh0.5777grid carbon intensity
electricityPriceCnyPerKwh0.56electricity price (CNY/kWh)
dir/green-meterledger directory
budgetJ0 (off)session energy budget in joules

Environment fallbacks: DSH_GREEN_PROFILE, DSH_GREEN_CARBON_FACTOR, DSH_GREEN_PRICE_CNY, DSH_GREEN_DIR, DSH_GREEN_BUDGET_J.

- insert:
    - id: green-meter
      name: 'dsh-green-meter'
      config:
        profile: proxy
        carbonFactorKgPerKwh: 0.5777
        budgetJ: 0