Skip to main content

Enhanced status line for Claude Code

Project description

ccsl

CI PyPI

Enhanced status line for Claude Code showing context usage, session time, and weekly budget.

screenshot

[Fable 5] | ๐Ÿ“ statusline | ๐ŸŒฟ main | $7.36 | Ext 23% $11.50/$50
Context:    โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–’โ–’โ–’โ–’โ–’โ–’โ–’โ–’โ–’โ–’โ–’โ–’ [49%] 98.4K/200.0K
Session:    โ–…โ–ˆโ–ƒโ–โ–‚โ–„โ–โ–โ–โ–โ–โ–โ–โ–โ–โ–โ–โ–โ–โ– [7%] 67.7M token (5am-10am) $12
Weekly:     โ–…โ–ƒโ–โ–‡โ–‚โ–‡โ–โ–โ–„โ–โ–†โ–ˆโ–โ–โ–โ–โ–โ–โ–โ– [42%] 3d0h24m, $34, Ext: 23% $11.50/$50

Install

brew install usedhonda/tap/ccsl
ccsl --setup

Restart Claude Code. Done.

Other install methods

pip

pip install ccsl
ccsl --setup

From source

git clone https://github.com/usedhonda/statusline.git
cd statusline
python3 install.py

What it shows

  • Line 1 โ€” Model, directory, git branch. Metered-billing models (e.g. Fable 5) add the cost of the latest turn and extra-usage credit consumption (Ext)
  • Line 2 โ€” Context window token usage with progress bar and cache ratio
  • Line 3 โ€” Session sparkline with 5-hour utilization, token count, time range, and the 5-hour window's metered spend
  • Line 4 โ€” Weekly sparkline with 7-day token distribution, remaining time, the 7-day window's metered spend, extra usage

Supports 1M context โ€” the context line scales to the active window size (e.g. 122K/1.0M).

Features

  • Metered-model cost tracking โ€” models billed via usage credits (Fable 5) show what the latest turn cost, computed per-message so mixed-model sessions only count the metered share
  • Context window progress bar with color warnings (yellow 80%, red 90%)
  • 5-hour session sparkline (20 segments, 15min each)
  • Weekly usage sparkline with remaining time and budget tracking
  • Responsive layout adapting to terminal width and height
  • Agent team support with single-line format and dead agent warnings
  • Schedule integration showing upcoming calendar events

Customize

Control which lines to display:

ccsl --show all      # All 4 lines (default)
ccsl --show simple   # Lines 2 and 3 only
ccsl --show 1,2      # Specific lines

Requirements

  • Python 3.9+
  • Claude Code

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ccsl-1.0.22.tar.gz (48.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ccsl-1.0.22-py3-none-any.whl (47.0 kB view details)

Uploaded Python 3

File details

Details for the file ccsl-1.0.22.tar.gz.

File metadata

  • Download URL: ccsl-1.0.22.tar.gz
  • Upload date:
  • Size: 48.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ccsl-1.0.22.tar.gz
Algorithm Hash digest
SHA256 6756a89ea8485d0706213e471a6b67c1a45e1f57133b192f265447a212283645
MD5 4f5521ac0d41173b3d0b1410a5b25bfd
BLAKE2b-256 b09acfc6743222351b2c21dcac22ab7cc577c1e78b3cf951b8d16e6146fccd3b

See more details on using hashes here.

Provenance

The following attestation bundles were made for ccsl-1.0.22.tar.gz:

Publisher: publish.yml on usedhonda/statusline

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ccsl-1.0.22-py3-none-any.whl.

File metadata

  • Download URL: ccsl-1.0.22-py3-none-any.whl
  • Upload date:
  • Size: 47.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ccsl-1.0.22-py3-none-any.whl
Algorithm Hash digest
SHA256 550536fd65519bda877491c0d8989e44eaf381dd6a7c619a2f4e8a426d84f5c3
MD5 0a530da4a12221429c12de4e88b9fa00
BLAKE2b-256 d936c56cfd64187a1de284d6948c4dbd4fa352b118b1b25b4882679b19143847

See more details on using hashes here.

Provenance

The following attestation bundles were made for ccsl-1.0.22-py3-none-any.whl:

Publisher: publish.yml on usedhonda/statusline

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page