This release is a pre-release and may not be stable for production use.
SessionCost
See where every token of your AI coding chat went, and what to fix to send fewer.
Every message you send makes the agent send the whole chat again. SessionCost shows each turn on one path, the calls inside it, and the fixes that would have sent less, measured from your own chat.
Tokens: exact, from the agent's own log. Money: an estimate at list prices; your bill may differ (plan, contract rates, batch, cloud provider). Cursor and Copilot Chat keep no token counts, so for them tokens are estimated from the size of the text.
📖 Help and guides · ▶ Take the report tour · 1-minute video · pictures use a made-up demo chat
Install
One line adds /sessioncost to every agent on your computer: Claude Code, Codex, Cursor and Antigravity. It needs
neither Python nor Git. Open a terminal, paste the line for your computer, and press Enter:
| Windows (PowerShell) | irm https://raw.githubusercontent.com/kish21/sessioncost/main/install.ps1 | iex |
|---|---|
| Mac / Linux | curl -fsSL https://raw.githubusercontent.com/kish21/sessioncost/main/install.sh | sh |
It ends with /sessioncost added for each agent it found. Then restart your agent.
Prefer PyPI (python -m pip install -U sessioncost, then python -m sessioncost setup), npm (npx sessioncost,
then npx sessioncost setup) or your agent's plugin list
(Claude Code: /plugin marketplace add kish21/sessioncost)? Every way, step by step:
Install SessionCost.
Use it
Open any chat and type /sessioncost (or ask: "run sessioncost"). The report opens in your browser.
How much was sent, and how much the fixes would cut
What to fix: each fix with its saving and the rule to paste to your agent.
New to the report? Your first report walks through it in five minutes, and every section of the report has a ? that opens its help page.
Commands
| In a chat | What it does |
|---|---|
/sessioncost |
Builds the report of this chat and gives you its link |
/sessioncost clean |
Deletes old reports, keeps the latest |
/sessioncost update |
Updates SessionCost, then restart your agent |
/sessioncost version |
Shows which SessionCost version this agent uses |
/livesession |
Claude Code: the guard checks each step before it runs, blocks the dangerous ones and asks before the risky ones, in every chat until /livesession off |
Terminal commands, report options and the guard's settings: Commands.
Private
- Reads your agent's log on your computer. No AI model is called.
- Nothing is sent anywhere: the report is one file on your computer.
More: Privacy and security.
More
- Which agents, and how exact
- How the money is counted
- Fix a problem, including updating
MIT license · made by kish21
Metadata
Release files for sessioncost 0.6.0rc7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sessioncost-0.6.0rc7.tar.gz | 260.9 kB | Without provenance | Details for sessioncost-0.6.0rc7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sessioncost-0.6.0rc7-py3-none-any.whl | Python 3 | none | any | Details for sessioncost-0.6.0rc7-py3-none-any.whl |
Total release size: 538.5 kB
Release files / sessioncost-0.6.0rc7.tar.gz
| Download URL | sessioncost-0.6.0rc7.tar.gz |
|---|---|
| Size | 260.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
12cdd9b7b784d2ccecc251f46984f8ca7b5c6d19e2020fc53f90eda7f2c4ecc7
|
|
BLAKE2b-256 checksum How to use checksums |
d5edd669ceaf53219c53db1f51403ad7636fe56df209d8e245566ef5a4c267b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.16 {"installer":{"name":"uv","version":"0.12.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / sessioncost-0.6.0rc7-py3-none-any.whl
| Download URL | sessioncost-0.6.0rc7-py3-none-any.whl |
|---|---|
| Size | 277.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e03823c531645ccc2bc004d29224e775ca92b85c999ac91a8c90640d07a18726
|
|
BLAKE2b-256 checksum How to use checksums |
dbae66f2b5c85a33801044668fb394da026e383bde938025d7ab24480676ef45
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.16 {"installer":{"name":"uv","version":"0.12.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for sessioncost 0.6.0rc7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.