ag-tokens-inspector
A command line tool that scans your local machine and reports how many tokens Antigravity has consumed.
Requirements
- uv
- Antigravity (CLI and/or IDE) with existing conversations on this machine
Installation
uv tool install ag-tokens-inspector
To upgrade later:
uv tool upgrade ag-tokens-inspector
To uninstall:
uv tool uninstall ag-tokens-inspector
Usage
Report the usage of all conversations:
ag-tokens-inspector
Limit the report to a date range (both bounds are inclusive and optional):
ag-tokens-inspector --from 2026-01-01 --to 2026-01-31
ag-tokens-inspector --from 20260101
ag-tokens-inspector --to 2026/01/31
Options
| Option | Description |
|---|---|
--from DATE |
Start date, inclusive. Formats: yyyyMMdd, yyyy-MM-dd, yyyy/MM/dd |
--to DATE |
End date, inclusive. Same formats as --from |
-h, --help |
Show the help message and exit |
--from must not be later than --to.
How it works
The tool looks for conversations under your home directory in:
~/.gemini/antigravity/conversations~/.gemini/antigravity-cli/conversations~/.gemini/antigravity-ide/conversations~/.antigravity-ide/conversations
Then it:
- Reads model call records directly from SQLite (
.db) conversation databases. - For legacy encrypted (
.pb) conversations that have no.db, queries the local Antigravity Language Server over RPC. - Prints a summary report of token usage.
Metadata
Release files for ag-tokens-inspector 0.2.0
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 |
|---|---|---|---|---|
| ag_tokens_inspector-0.2.0.tar.gz | 17.1 kB | Without provenance | Details for ag_tokens_inspector-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ag_tokens_inspector-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for ag_tokens_inspector-0.2.0-py3-none-any.whl |
Total release size: 29.1 kB
Release files / ag_tokens_inspector-0.2.0.tar.gz
| Download URL | ag_tokens_inspector-0.2.0.tar.gz |
|---|---|
| Size | 17.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f0ce3a99324aecd93d5ae12c82cec6b71dc4f3d8cca5be3f6ca77234c59fdf8d
|
|
BLAKE2b-256 checksum How to use checksums |
4cd15ce1258af55c62f71f902244d0ba858c21810c66e5768dede69d7d4a6944
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / ag_tokens_inspector-0.2.0-py3-none-any.whl
| Download URL | ag_tokens_inspector-0.2.0-py3-none-any.whl |
|---|---|
| Size | 12.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dcbdbf7cc0e61811351b14cae0e6bf3ae13e6216190b0a58b2e64e9c28b16ca5
|
|
BLAKE2b-256 checksum How to use checksums |
a62b5bd7c32a3ff932c32a721fdd12a327cb7f98035763450b628845b02525ae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for ag-tokens-inspector 0.2.0
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.