dclichang2022/dsh-green-meter--packages-green-meter ↗★ 1
dsh-green-meter
Token-profile energy and carbon estimation for agentic sessions
AI Analysis
核心用途是在后台计算并记录智能体任务的电力消耗与碳排放。适合需要对 AI 算力消耗进行绿色审计或设置能耗预算上限的系统管理员。支持通过环境变量或配置文件调整参数。
Install
This plugin has no verified bundle, or compatibility checks failed. Read the repository notes first. Read the full README ↗
README
Read the full README ↗Configuration
| Key | Default | Meaning |
|---|---|---|
profile | proxy | calibration profile (proxy, qwen-h20-*, gemma-h20-*, qwen3-4b-*) |
carbonFactorKgPerKwh | 0.5777 | grid carbon intensity |
electricityPriceCnyPerKwh | 0.56 | electricity price (CNY/kWh) |
dir | /green-meter | ledger directory |
budgetJ | 0 (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