Skip to main content

slopmeter

Example heatmap

English | 简体中文

Local usage heatmaps and a web viewer for AI coding tools.

Install

Use this when you want to install the released version directly from PyPI. This is the easiest way to get started.

uv tool install slopmeter

Upgrade later with:

uv tool upgrade slopmeter

Option 2: Run from this repo

Use this when you are developing locally or just want to try the project from source.

uv sync

Then run commands through uv run:

uv run slopmeter

Option 3: Install the CLI into your current Python environment

Use this when you want the slopmeter command available inside an existing virtualenv.

uv pip install .

Option 4: Install it as a standalone CLI tool from source

Use this when you want slopmeter available on your shell PATH, built from a local checkout.

uv tool install .

After installing with uv pip install . or uv tool install ., you can run slopmeter directly without uv run.

Quick Start

Start the local web UI:

slopmeter

This starts a local HTTP server on 127.0.0.1:8000 by default and prints the final URL in the terminal. If port 8000 is already in use, it automatically picks the next available port.

Common variants:

slopmeter --codex --dark
slopmeter --provider all,claude,codex
slopmeter serve --host 127.0.0.1 --port 9000
slopmeter export --format html --output ./out/heatmap.html
slopmeter export --codex --format json --output ./out/codex.json
slopmeter export --provider all,claude,codex --format png --output ./out/custom.png
slopmeter export --all --dark --format png --output ./out/all.png

CLI Behavior

  • slopmeter Starts the local web server.
  • slopmeter serve Explicit form of the same local server command.
  • slopmeter export Writes a file to disk instead of starting a server.

When you run slopmeter or slopmeter serve:

  • the app scans provider data once at startup
  • it renders one HTML snapshot in memory
  • it serves that snapshot over HTTP
  • it shows all first, then all available provider cards
  • provider cards can be drag-sorted in the page
  • the current page order and export selection are saved in local browser storage
  • the page can export the currently selected cards as one PNG
  • it does not save an HTML file unless you explicitly use slopmeter export --format html

Ordered provider selection can be used with either slopmeter or slopmeter export:

slopmeter --provider all,claude,codex
slopmeter export --provider all,opencode,codex --format png --output ./out/custom.png

Legacy provider flags are still supported:

slopmeter --claude
slopmeter --codex
slopmeter export --cursor --format svg --output ./out/cursor.svg

Selection Notes

  • all always means the aggregate of every detected provider that currently has data. It does not mean “the sum of the other providers named in the same command”.
  • If you pass --provider with a mix of existing and missing providers, missing providers are skipped. The command fails only when none of the selected providers have usable data.
  • In the web UI, drag sorting starts from the Drag handle, and the current order plus checked cards are what Export PNG uses.

Parameters

slopmeter / slopmeter serve

These options control the local web server.

  • --host Bind address for the local HTTP server. Default: 127.0.0.1 Example: slopmeter serve --host 0.0.0.0

  • --port Port for the local HTTP server. Default: 8000 Behavior: If you do not pass --port, slopmeter starts from 8000 and automatically moves to the next free port if needed. If you do pass --port, that exact port is required; if it is already in use, the command fails. Example: slopmeter serve --port 9000

  • --dark Render the web UI in dark mode. Example: slopmeter --dark

  • --provider, -p Add one provider or one ordered provider list to the render/export selection. You can pass a single provider such as --provider codex, or a comma-separated list such as --provider all,claude,codex. Repeating --provider still works and appends more providers in order. Supported values: all, amp, claude, codex, cursor, gemini, opencode, pi If any --provider is passed, it takes priority over the legacy --all and per-provider boolean flags. Example: slopmeter --provider all,claude,codex

  • --all Legacy compatibility flag. Merge all detected providers into a single combined heatmap. Use --provider all when you want all to appear alongside other providers and participate in ordering. all always means the total across every detected provider with data, not just the other providers named in the same command. Example: slopmeter --all

  • --amp Only render Amp usage. Example: slopmeter --amp

  • --claude Only render Claude Code usage. Example: slopmeter --claude

  • --codex Only render Codex usage. Example: slopmeter --codex

  • --cursor Only render Cursor usage. Example: slopmeter --cursor

  • --gemini Only render Gemini CLI usage. Example: slopmeter --gemini

  • --opencode Only render Open Code usage. Example: slopmeter --opencode

  • --pi Only render Pi Coding Agent usage. Example: slopmeter --pi

If you do not pass any provider selector, slopmeter shows all available cards in this order:

  1. all
  2. Claude Code
  3. Codex
  4. Open Code
  5. Cursor
  6. then the remaining available providers

slopmeter export

These options control file export.

  • --output, -o Output file path. If omitted, a default file name is used such as ./heatmap-last-year.png or ./heatmap-last-year_codex.json. Example: slopmeter export --format html --output ./out/heatmap.html

  • --format, -f Export format. Supported values: png, svg, json, html If omitted, the format is inferred from the output extension when possible; otherwise it defaults to png. Example: slopmeter export --format svg --output ./out/heatmap.svg

  • --dark Export using dark theme colors. Example: slopmeter export --dark --format png --output ./out/dark.png

  • --provider, -p Add one provider or one ordered provider list to the export selection. You can pass a single provider such as --provider codex, or a comma-separated list such as --provider all,opencode,codex. Repeating --provider still works and appends more providers in order. Supported values: all, amp, claude, codex, cursor, gemini, opencode, pi Missing providers are skipped as long as at least one requested provider has data. Example: slopmeter export --provider all,opencode,codex --format png --output ./out/custom.png

  • --all Legacy compatibility flag. Merge all detected providers into one combined export. Use --provider all when you want all to be exported together with other providers. all always means the total across every detected provider with data, not just the other providers named in the same command. Example: slopmeter export --all --format html --output ./out/all.html

  • --amp Export Amp usage only.

  • --claude Export Claude Code usage only.

  • --codex Export Codex usage only.

  • --cursor Export Cursor usage only.

  • --gemini Export Gemini CLI usage only.

  • --opencode Export Open Code usage only.

  • --pi Export Pi Coding Agent usage only.

Examples:

slopmeter export --codex --format json --output ./out/codex.json
slopmeter export --cursor --format svg --output ./out/cursor.svg
slopmeter export --provider all,opencode,codex --format png --output ./out/custom.png
slopmeter export --all --dark --format png --output ./out/all.png
slopmeter export --claude --format html --output ./out/claude.html

Output Formats

  • png
  • svg
  • json
  • html

The HTML export is self-contained and includes hover tooltips for each day cell.

Help

slopmeter --help
slopmeter serve --help
slopmeter export --help

Credits

This project is a Python adaptation of JeanMeijer/slopmeter. Credit to the original author for the idea and implementation.

Roadmap

  • Privacy-first multi-device usage aggregation for the same user, without requiring a central server.
    • The intended direction is explicit, user-controlled sync only: for example encrypted export/import bundles or merge through a user-owned sync folder.
    • Default behavior should remain local-only, with no background sync, no telemetry, and no automatic upload to any server.
    • The main challenges are deduplication, clock skew, and keeping a stable merge format across providers and devices.

Metadata

Release files for slopmeter 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for slopmeter 0.1.3
File Size Uploaded Provenance Actions
slopmeter-0.1.3.tar.gz 417.1 kB Without provenance Details for slopmeter-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for slopmeter 0.1.3
File Interpreter ABI Platform Actions
slopmeter-0.1.3-py3-none-any.whl Python 3 none any Details for slopmeter-0.1.3-py3-none-any.whl

Total release size: 478.9 kB

Release files / slopmeter-0.1.3.tar.gz

Download URL slopmeter-0.1.3.tar.gz
Size 417.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b66ac8dfdfdc8d5c8bdd7810e2083e8f9754a7706f258ba778718c3a11948a57
BLAKE2b-256 checksum
How to use checksums
d098f4d08750d8e3149c1e23da66d6f6ca241c84b8ae65ff0b519baf2714d0da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.18 {"installer":{"name":"uv","version":"0.11.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / slopmeter-0.1.3-py3-none-any.whl

Download URL slopmeter-0.1.3-py3-none-any.whl
Size 61.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
842ca2c04f6303603e4d46ca0a80ca12d20b0e6034b9091974917b766024cfe1
BLAKE2b-256 checksum
How to use checksums
3dc55ce8ed15aa3c8652564041b3d213086c1b2de4b92f35bd9915226ad13e05
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.18 {"installer":{"name":"uv","version":"0.11.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for slopmeter 0.1.3

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page