Current Session Energy
current_session_energyEstimates energy and CO2eq for your current Claude Code session. Calculates locally from logs to show environmental impact without telemetry.
Instructions
Estimated energy (kWh) and CO2eq for the calling Claude Code session.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Absolute path to the session's local log file that was parsed. | |
| provider | Yes | Coding-agent provider this session belongs to ('claude' or 'codex'). | |
| session_id | Yes | Claude Code session ID or Codex thread ID being reported on. | |
| comparisons | Yes | Everyday-activity equivalents for this session's estimated CO2eq. | |
| estimated_kwh | Yes | Estimated energy used by this session, in kilowatt-hours. | |
| request_count | Yes | Number of deduplicated API requests/turns in this session. | |
| estimated_kg_co2 | Yes | Estimated CO2-equivalent emissions for this session, in kilograms. |